Collections: Webflow Collections
insert delete REST
- Katalog:
Webflow - Schema:
Cms - Primärnycklar:
id - Label: Collections
Man kan hämta och ändra data med hjälp av insert och delete.
Sammanfattning
The CMS collections of the sites. Each one is also a table of its own in the schemas Collections and LiveCollections. An insert creates an empty collection with its name and slug fields; a delete removes the collection and every item in it.
API-källa
- Slutpunkt:
/sites/{site_id}/collections
Prestandakarakteristika
| Egenskap | Värde |
|---|---|
| Genomsnittlig åtkomstfördröjning (ms) | 350 |
| Antal rader per minut vid fullskanning | 58 |
| Skriv rader per minut | 58 |
Tabellkolumner
Tabellens kolumner Collections visas nedan. Varje kolumn har en SQL-datatyp. Ett nytt värde som inte är null måste alltid anges för varje obligatorisk kolumn vid insättning och uppdatering.
| Namn | Datatyp | Etikett | Nödvändigt | Betyg | Dokumentation |
|---|---|---|---|---|---|
created_ |
datetime |
Skapad den | filtreras på plattformen, skrivbar | When the collection was created, UTC. | |
display_ |
varchar2 |
Visningsnamn | filtreras på plattformen, skrivbar | The name of the collection, such as Blog Posts. | |
id |
varchar2 |
ID | filtreras på plattformen, skrivbar | The id of the collection. | |
last_ |
datetime |
Senast uppdaterad | filtreras på plattformen, skrivbar | When the collection was last changed, UTC. | |
singular_ |
varchar2 |
Singularform | filtreras på plattformen, skrivbar | The name of one item, such as Blog Post. | |
site_ |
varchar2 |
Webbplats-ID | filtreras på plattformen, skrivbar | The site. | |
slug |
varchar2 |
Snigel | filtreras på plattformen, skrivbar | The slug of the collection in the addresses of its items; also the name of its table. |
Nycklar
| Nyckel | Kolumn | Avser för referens | Typ | Beskrivning |
|---|---|---|---|---|
Collections_ |
site_ |
Sites.id |
Nyckel |
Refereras till av
- CollectionFields
collection_id(Key) - CollectionItems
collection_id(Key) - LiveCollectionItems
collection_id(Key) - InvantiveTestAuthors
collection_id(Key) - InvantiveTestPosts
collection_id(Key) - InvantiveTestAuthors
collection_id(Key) - InvantiveTestPosts
collection_id(Key) - Pages
collection_id(Key)
Exempel på Query-frågor
select cln.display_name collection_name
, itm.name
, itm.last_updated
from Webflow.Cms.CollectionItems itm
join Webflow.Cms.Collections cln
on cln.id = itm.collection_id
where itm.last_updated >= sysdateutc - 7
select pge.title page_title
, cln.display_name template_of_collection
from Webflow.Pages.Pages pge
join Webflow.Cms.Collections cln
on cln.id = pge.collection_id