Collections: Webflow Collections
insert delete REST
- Luettelo:
Webflow - Kaavio:
Cms - Ensisijaiset avaimet:
id - Label: Collections
Voit hakea ja muokata tietoja käyttämällä insert ja delete.
Yhteenveto
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-lähde
- Päätepiste:
/sites/{site_id}/collections
Suorituskykyominaisuudet
| Ominaisuus | Arvo |
|---|---|
| Keskimääräinen yhteysviive (ms) | 350 |
| Täysskannausrivit minuutissa | 58 |
| Kirjoita rivejä minuutissa | 58 |
Taulukon sarakkeet
Taulukon Collections sarakkeet on esitetty alla. Jokaisella sarakkeella on oma SQL-tietotyyppinsä. Jokaiselle pakolliselle sarakkeelle on annettava uusi, nollasta poikkeava arvo aina, kun suoritetaan lisäys- tai päivitystoiminto.
| Nimi | Tietotyyppi | Etiketti | Tarvitaan | Merkit | Dokumentaatio |
|---|---|---|---|---|---|
created_ |
datetime |
Luotu | suodattimet alustalla, kirjoitettavissa | When the collection was created, UTC. | |
display_ |
varchar2 |
Näytönimi | suodattimet alustalla, kirjoitettavissa | The name of the collection, such as Blog Posts. | |
id |
varchar2 |
ID | suodattimet alustalla, kirjoitettavissa | The id of the collection. | |
last_ |
datetime |
Viimeisin päivitys | suodattimet alustalla, kirjoitettavissa | When the collection was last changed, UTC. | |
singular_ |
varchar2 |
Yksikön nimi | suodattimet alustalla, kirjoitettavissa | The name of one item, such as Blog Post. | |
site_ |
varchar2 |
Sivuston tunnus | suodattimet alustalla, kirjoitettavissa | The site. | |
slug |
varchar2 |
Etana | suodattimet alustalla, kirjoitettavissa | The slug of the collection in the addresses of its items; also the name of its table. |
Avaimet
| Avain | Sarake | Viittaa | Laji | Kuvaus |
|---|---|---|---|---|
Collections_ |
site_ |
Sites.id |
Avain |
Viitattu seuraavissa lähteissä
- 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)
Esimerkkihakuyrityksiä
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