Entity List | Baack docs
Entity List
Endpoints
CreatePOST/n/v1/entitylist/
Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.
Baack allocates the URN and returns it in the response.
Request body: Entity List
Responses
- 201 Created
- returns Entity List
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/entitylist/{urn}
Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.
Notes
- The listed entity references are returned according to the sort order of the references
- When duplicate sort order values are provided the specific ordering is undetermined
- The list of entities is intended to be bounded to a reasonable number e.g. a collection size that would be sensible to post in bounded time. Practically this means the representation of the list would not typically exceed a few hundred KB. No restriction is currently enforced but as the list is not intended to be paged please consider this when constructing lists. For dynamic / calculated lists prefer searches.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Entity List
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/entitylist/{urn}UpdatePUT/n/v1/entitylist/{urn}
Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Entity List
Responses
- 202
- returns Entity List
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
DeleteDELETE/n/v1/entitylist/{urn}
Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: ENTITY_LIST
Webhook for changes to an entity list e.g. adding a new item to a list (like blogpost listing)
Use the entity list webhook to integrate custom logic like implementing customised ordering for the entity list e.g. when a new item is added, it could be ranked according to its historical delivery volume.
Note that the entity list, unlike most of the API endpoints at Baack uses a collection list to maintain the membership list, this can however mean that the list can become long however should not become overly long to avoid costly transfer.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| entities | array of Entity List Item | Required on create. . |
| name | string | Required on create. . |
| url | string (uri) |
Used by: Search Item
Entity List Item
Entity list item reference and sorting order
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| sortOrder | integer (int32) | |
| entity | Entity | Required on create. . |
Used by: Entity List