Entity | Baack docs
Entity
Endpoints
CreatePOST/n/v1/entity/
Content entity endpoint with support for multiple content types associated with an entity. An Entity is analogous to a web page or screen in an app. The entity holds all content associated with a specific scope to render all content in a view. Entities are addressed with a UNIX style path selector. Entities support localisation and variants to support A/B content splits. Entities with variants overlay the default variant when selected on rendering. Entities also support the concept of publication state. When created entities are in a pre-publication draft state. Publication is handled by setting the state and publication time to allow for content to be scheduled for publication in the future. See the rendered entity endpoints for rendered views including template item expansion. This endpoint and associated items are intended for managing entities and their items rather than rendering the content.
Baack allocates the URN and returns it in the response.
Request body: Entity
Responses
ReadGET/n/v1/entity/{urn}
Content entity endpoint with support for multiple content types associated with an entity. An Entity is analogous to a web page or screen in an app. The entity holds all content associated with a specific scope to render all content in a view. Entities are addressed with a UNIX style path selector. Entities support localisation and variants to support A/B content splits. Entities with variants overlay the default variant when selected on rendering. Entities also support the concept of publication state. When created entities are in a pre-publication draft state. Publication is handled by setting the state and publication time to allow for content to be scheduled for publication in the future. See the rendered entity endpoints for rendered views including template item expansion. This endpoint and associated items are intended for managing entities and their items rather than rendering the content.
Notes
- See rendering API for constructed entities.
- See conventions for details of how entities are transformed on rendering
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/entity/{urn}ReadGET/v/v1/entityview/{urn}
Endpoint used for viewing rendered content entities with content items transformed. This endpoint is intended to be used by content clients and supports access via roles. See the PermissionRole endpoint for details of creating a role with read access to the entity. Multiple clients can then be assigned the role which mustuse the CONTENT_READ permission label. This allows client access from installed apps using a restricted API Client as company level access tokens have admin permissions.
Notes
- The entity view endpoint is read only.
- Only content entities can be read via this endpoint.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/v/v1/entityview/{urn}UpdatePUT/n/v1/entity/{urn}
Content entity endpoint with support for multiple content types associated with an entity. An Entity is analogous to a web page or screen in an app. The entity holds all content associated with a specific scope to render all content in a view. Entities are addressed with a UNIX style path selector. Entities support localisation and variants to support A/B content splits. Entities with variants overlay the default variant when selected on rendering. Entities also support the concept of publication state. When created entities are in a pre-publication draft state. Publication is handled by setting the state and publication time to allow for content to be scheduled for publication in the future. See the rendered entity endpoints for rendered views including template item expansion. This endpoint and associated items are intended for managing entities and their items rather than rendering the content.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Entity
Responses
DeleteDELETE/n/v1/entity/{urn}
Content entity endpoint with support for multiple content types associated with an entity. An Entity is analogous to a web page or screen in an app. The entity holds all content associated with a specific scope to render all content in a view. Entities are addressed with a UNIX style path selector. Entities support localisation and variants to support A/B content splits. Entities with variants overlay the default variant when selected on rendering. Entities also support the concept of publication state. When created entities are in a pre-publication draft state. Publication is handled by setting the state and publication time to allow for content to be scheduled for publication in the future. See the rendered entity endpoints for rendered views including template item expansion. This endpoint and associated items are intended for managing entities and their items rather than rendering the content.
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
Webhook for updates related to content entities as well as company, membership group and other internal content entities.
Content entities are central to the platform and notifications on updates are critical to maintaining business continuity. Subscribe to updates for entities including changes in publication state, updated future publication time but also updates related the entities variant or language. While the API will allow operations like updating the variant monitoring this or other actions like renaming the entity can be critical to business continuity.
Note that the entity view (rendered) does not have a webhook as the results of the rendered entity are dynamic based execution.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| owner | Company | Required on create. . |
| jsons | array of JSON Item | Ignored on update. |
| images | array of Image Item | Ignored on update. |
| markdowns | array of Markdown Item | Ignored on update. |
| references | array of Reference Item | Ignored on update. |
| alternativeLanguages | array of Entity | Ignored on update. |
| templates | array of Template Item | Ignored on update. |
| latLongs | array of Latitude / Longitude item | Ignored on update. |
| language | string | Required on create. . One of: Up to 16 characters. |
| updatedTimestamp | string (date-time) | |
| url | string (uri) | |
| urn | string (uuid) | Up to 36 characters. |
| longs | array of Long item | Ignored on update. |
| dateTimes | array of Date Time Item | Ignored on update. |
| texts | array of Text Item | Ignored on update. |
| money | array of Money Item | Ignored on update. |
| doubles | array of Double Item | Ignored on update. |
| publishTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| variant | string | Up to 128 characters. |
| booleans | array of Boolean Item | Ignored on update. |
| links | array of Link Item | Ignored on update. |
| status | string | Required on create. . One of: |
Used by: Boolean Item, Company, Date Time Item, Deal, Double Item, Entity List Item, Group, Image Item, JSON Item, Latitude / Longitude item, Lead, Link Item, Long item, Message Thread, Money Item, Reference Item, Search Context, Search Item, Task, Template Item, Text Item