Content items | Baack docs
Content items
Boolean Item
A boolean content item associatedwith a content entity
Endpoints
CreatePOST/n/v1/booleanitem/
Boolean (truthy) value item endpoint with support for managing boolean content items associated with an entity.
Baack allocates the URN and returns it in the response.
Request body: Boolean Item
Responses
- 201 Created
- returns Boolean Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/booleanitem/{urn}
Boolean (truthy) value item endpoint with support for managing boolean content items associated with an entity.
Notes
- On creation of a new boolean item with (name, sortOrder) scope if the entity is already published then the new item will default to published.
- On creation of a boolean item when there is an existing (name, sortOrder) the value will be introduced as a draft.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Boolean Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/booleanitem/{urn}UpdatePUT/n/v1/booleanitem/{urn}
Boolean (truthy) value item endpoint with support for managing boolean content items associated with an entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Boolean Item
Responses
- 202
- returns Boolean Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/booleanitem/{urn}
Boolean (truthy) value item endpoint with support for managing boolean content items associated with an entity.
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: BOOLEAN_ITEM
Webhook for Boolean (truthy) content items.
Subscribe to receive webhook events when content items are updated. This can be useful for building custom automation logic e.g. creating a review task for a member of the content moderator group.
Note: as with other content items the update semantics are to insert a new draft value which is what will be returned rather than the original which is not updated.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Boolean item history | |
| value | boolean | Required on create. . |
| entity | Entity | Required on create. . |
| url | string (uri) |
Used by: Boolean item history, Entity
Boolean item history
Representation of the history of a boolean (truthy) content item value
Endpoints
ReadGET/n/v1/booleanitemhistory/{urn}
Endpoint for boolean (truthy) content item history access and live version selection
Notes
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Boolean item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/booleanitemhistory/{urn}UpdatePUT/n/v1/booleanitemhistory/{urn}
Endpoint for boolean (truthy) content item history access and live version selection
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Boolean item history
Responses
- 202
- returns Boolean item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Boolean Item | |
| pagination | Pagination | |
| history | array of Boolean Item | Ignored on update. |
| url | string (uri) |
Used by: Boolean Item
Date Time Item
Date time represented as ISO 8601 with milliseconds
Endpoints
CreatePOST/n/v1/datetimeitem/
Date time item endpoint with support for managing date time items associated with an entity.
Baack allocates the URN and returns it in the response.
Request body: Date Time Item
Responses
- 201 Created
- returns Date Time Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/datetimeitem/{urn}
Date time item endpoint with support for managing date time items associated with an entity.
Notes
- On creation of a new item with (name, sortOrder) scope if the associated entity is published then the item will default to published.
- On creation of an item where there is an existing (name, sortOrder) the value will be introduced as a new draft.
- Date time values are expressed as ISO 8601 formatted value with milliseconds always in UTC timezone. If the value should be expressed in a different timezone configure this in the rendered view of the content.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Date Time Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/datetimeitem/{urn}UpdatePUT/n/v1/datetimeitem/{urn}
Date time item endpoint with support for managing date time items associated with an entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Date Time Item
Responses
- 202
- returns Date Time Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/datetimeitem/{urn}
Date time item endpoint with support for managing date time items associated with an entity.
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: DATETIME_ITEM
Webhook events for date / time (timestamp) content item lifecycle.
Use the date / time content endpoint in your integration to keep updated with changes to the time of content like the end date of an offer.
Note that like other content items updates to date times will result in a new draft value being stored and the new draft is returned by the webhook.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Date / Time item history | |
| value | string | Required on create. . |
| url | string (uri) | |
| entity | Entity | Required on create. . |
Used by: Date / Time item history, Entity
Date / Time item history
Representation of a date / time timestamp (UTC) item value history
Endpoints
ReadGET/n/v1/datetimeitemhistory/{urn}
Endpoint for date/time timestamp content item history and live version selection
Notes
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Date / Time item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/datetimeitemhistory/{urn}UpdatePUT/n/v1/datetimeitemhistory/{urn}
Endpoint for date/time timestamp content item history and live version selection
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Date / Time item history
Responses
- 202
- returns Date / Time item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Date Time Item | |
| pagination | Pagination | |
| history | array of Date Time Item | Ignored on update. |
| url | string (uri) |
Used by: Date Time Item
Double Item
A double precision content item associated with a content entity
Endpoints
CreatePOST/n/v1/doubleitem/
Double precision floating point value endpoint for managing floating point values associated with an entity.
Baack allocates the URN and returns it in the response.
Request body: Double Item
Responses
- 201 Created
- returns Double Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/doubleitem/{urn}
Double precision floating point value endpoint for managing floating point values associated with an entity.
Notes
- On create of a new double item the (name, sortOrder) pair if the entity is published then the new (previously undefined pair will be automatically published.
- On creation of a double item when there is an existing (name, sortOrder) value then the new value will be introduced as a new draft value.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Double Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/doubleitem/{urn}UpdatePUT/n/v1/doubleitem/{urn}
Double precision floating point value endpoint for managing floating point values associated with an entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Double Item
Responses
- 202
- returns Double Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/doubleitem/{urn}
Double precision floating point value endpoint for managing floating point values associated with an entity.
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: DOUBLE_ITEM
Double content item webhook event for floating point value (double precision) representations
Use the double value updates to implement custom business logic like validation of values being in a specific range e.g. if you need to implement custom logic for an item collection that all values are in a specified range.
Note that as with other content items updates create a new draft value of the updated item and the new value will be returned as the target of the update.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Double Item History | |
| value | number (double) | Required on create. . |
| url | string (uri) | |
| entity | Entity | Required on create. . |
Used by: Double Item History, Entity
Double Item History
The history of values of a double item
Endpoints
ReadGET/n/v1/doubleitemhistory/{urn}
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Double Item History
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/doubleitemhistory/{urn}UpdatePUT/n/v1/doubleitemhistory/{urn}
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Double Item History
Responses
- 202
- returns Double Item History
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Double Item | |
| pagination | Pagination | |
| history | array of Double Item | Ignored on update. |
| url | string (uri) |
Used by: Double Item
Image Item
Object representing an image resource
Endpoints
CreatePOST/n/v1/imageitem/
Image item endpoint with support for creating image items with associated image assets. Images are posted separately via the imageitemfile endpoint once the image item is created. Files associated with the image item support multiple size formats.
Baack allocates the URN and returns it in the response.
Request body: Image Item
Responses
- 201 Created
- returns Image Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
CreatePOST/n/v1/imageitemfile
Endpoint for associating an image file with a image item in an entity. Use this endpoint to upload a file which will be distributed to content delivery edge points
Request body: Image Item
Responses
- 201 Created
- returns Image Item
CREATE_SUCCESS
ReadGET/n/v1/imageitem/{urn}
Image item endpoint with support for creating image items with associated image assets. Images are posted separately via the imageitemfile endpoint once the image item is created. Files associated with the image item support multiple size formats.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Image Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/imageitem/{urn}UpdatePUT/n/v1/imageitem/{urn}
Image item endpoint with support for creating image items with associated image assets. Images are posted separately via the imageitemfile endpoint once the image item is created. Files associated with the image item support multiple size formats.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Image Item
Responses
- 202
- returns Image Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/imageitem/{urn}
Image item endpoint with support for creating image items with associated image assets. Images are posted separately via the imageitemfile endpoint once the image item is created. Files associated with the image item support multiple size formats.
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: IMAGE_ITEM
Webhook events related to updates to an image item associated with an entity.
Listen to events to be notified when an image is updated to trigger experiences like cache invalidation for the image files. Other experiences may also be triggered like integrating a QA process for the created image.
As with other content items image updates result in a new draft item being created which is returned as the update.
Note that image file uploads to the associated image also trigger events on the same subject though the file name may not change dependent upon the uploaded file name normalisation.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| altText | string | Up to 1024 characters. |
| src | string (uri) | Up to 2048 characters. |
| mediumSrc | string (uri) | Up to 2048 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| largeSrc | string (uri) | Up to 2048 characters. |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Image item history | |
| url | string (uri) | |
| entity | Entity | Required on create. . |
Used by: Entity, Image item history
Image item history
Representation of the history of an image content item
Endpoints
ReadGET/n/v1/imageitemhistory/{urn}
Endpoint for image item content history retrieval and live version selection
Notes
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Image item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/imageitemhistory/{urn}UpdatePUT/n/v1/imageitemhistory/{urn}
Endpoint for image item content history retrieval and live version selection
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Image item history
Responses
- 202
- returns Image item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Image Item | |
| pagination | Pagination | |
| history | array of Image Item | Ignored on update. |
| url | string (uri) |
Used by: Image Item
JSON Item
Representation of a JSON content entity for arbitrary JSON values
Endpoints
ReadGET/n/v1/jsonitem/{urn}
Endpoint for managing JSON items associated with an entity.
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/jsonitem/{urn}UpdatePUT/n/v1/jsonitem/{urn}
Endpoint for managing JSON items associated with an entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: JSON Item
Responses
DeleteDELETE/n/v1/jsonitem/{urn}
Endpoint for managing JSON items associated with an entity.
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: JSON_ITEM
Webhook for JSON content item updates associated with a content entity
The JSON item webhook supports all CUD operations however it must be noted that like with other content items like text that update has special semantics.
NOTE: when updating a JSON value a new version of it is inserted into the head of the specified item and the new version will be returned by the webhook. This is because updates do not overwrite content item values
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Json item history | |
| value | object | Required on create. . Maximum length allowed for JSON string. |
| entity | Entity | Required on create. . |
| url | string (uri) |
Used by: Entity, Json item history
Json item history
Representation of the history of a JSON item
Endpoints
ReadGET/n/v1/jsonitemhistory/{urn}
Endpoint for reviewing and managing the history of JSON content item values
Notes
- Update PUT for one of the json items will set that item to be the live version
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Json item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/jsonitemhistory/{urn}UpdatePUT/n/v1/jsonitemhistory/{urn}
Endpoint for reviewing and managing the history of JSON content item values
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Json item history
Responses
- 202
- returns Json item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | JSON Item | |
| pagination | Pagination | |
| history | array of JSON Item | Ignored on update. |
| url | string (uri) |
Used by: JSON Item
Latitude / Longitude item
Latitude / Longitude content item associated with an entity
Endpoints
CreatePOST/n/v1/latlongitem/
Latitude / Longitude content endpoint used for creating points or lines with latitude longitude values.Creation of a polygon can be achieved by creating multiple points with a sort order for sequencing.
Baack allocates the URN and returns it in the response.
Request body: Latitude / Longitude item
Responses
- 201 Created
- returns Latitude / Longitude item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/latlongitem/{urn}
Latitude / Longitude content endpoint used for creating points or lines with latitude longitude values.Creation of a polygon can be achieved by creating multiple points with a sort order for sequencing.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Latitude / Longitude item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/latlongitem/{urn}UpdatePUT/n/v1/latlongitem/{urn}
Latitude / Longitude content endpoint used for creating points or lines with latitude longitude values.Creation of a polygon can be achieved by creating multiple points with a sort order for sequencing.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Latitude / Longitude item
Responses
- 202
- returns Latitude / Longitude item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/latlongitem/{urn}
Latitude / Longitude content endpoint used for creating points or lines with latitude longitude values.Creation of a polygon can be achieved by creating multiple points with a sort order for sequencing.
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: LATLONG_ITEM
Webhook events for Latitude / Longitude content items associated with a content entity.
Use the latitude longitude content update events to trigger experiences like updates to locations for a given content entity or new location information being associated with a content entity.
As with other content items updates to an existing item result in a new draft version of the item which will be returned by the webhook rather than the 'updated' item.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| latitude | number (double) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 128 characters. |
| history | Lat / Long item history | |
| url | string (uri) | |
| entity | Entity | Required on create. . |
| longitude | number (double) | Required on create. . |
Used by: Entity, Lat / Long item history
Lat / Long item history
Representation of the history of lat / long content item history
Endpoints
ReadGET/n/v1/latlongitemhistory/{urn}
Endpoint for accessing the history of a latitude / longitude item and picking the live version
Notes
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Lat / Long item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/latlongitemhistory/{urn}UpdatePUT/n/v1/latlongitemhistory/{urn}
Endpoint for accessing the history of a latitude / longitude item and picking the live version
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Lat / Long item history
Responses
- 202
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Latitude / Longitude item | |
| pagination | Pagination | |
| history | array of Latitude / Longitude item | Ignored on update. |
| url | string (uri) |
Used by: Latitude / Longitude item
Link Item
Representation of a link content item associated with a content entity. Links have specific type and attribute fields to support fully modelling links in different contexts
Endpoints
CreatePOST/n/v1/linkitem/
A link with support for href, text and rel e.g. nofollow or author links. This item is intended to make it easy to model links both as document links and other reference links like canonical links.
Baack allocates the URN and returns it in the response.
Request body: Link Item
Responses
ReadGET/n/v1/linkitem/{urn}
A link with support for href, text and rel e.g. nofollow or author links. This item is intended to make it easy to model links both as document links and other reference links like canonical links.
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/linkitem/{urn}UpdatePUT/n/v1/linkitem/{urn}
A link with support for href, text and rel e.g. nofollow or author links. This item is intended to make it easy to model links both as document links and other reference links like canonical links.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Link Item
Responses
- 202
- returns Link Item
UPDATE_SUCCESS
DeleteDELETE/n/v1/linkitem/{urn}
A link with support for href, text and rel e.g. nofollow or author links. This item is intended to make it easy to model links both as document links and other reference links like canonical links.
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: LINK_ITEM
Webhook for the link content item type
Use the Link Item webhook to keep track of notification for updates to link content associated with entities. Note that as with other content item webhooks the new version is returned on update.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| rel | string | |
| href | string (uri) | Required on create. . Up to 2048 characters. |
| text | string | Up to 1024 characters. |
| lang | string | One of: Up to 16 characters. |
| entity | Entity | Required on create.Ignored on update. . |
| target | string | Up to 256 characters. |
Used by: Entity, Link Item History
Link Item History
Representation of the history of a link content item
Endpoints
ReadGET/n/v1/linkitemhistory/{urn}
Endpoint for retrieving and managing the history of a link item
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Link Item History
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/linkitemhistory/{urn}UpdatePUT/n/v1/linkitemhistory/{urn}
Endpoint for retrieving and managing the history of a link item
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Link Item History
Responses
- 202
- returns Link Item History
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
Fields
| Field | Type | Description |
|---|---|---|
| item | Link Item | |
| pagination | Pagination | |
| history | array of Link Item | Ignored on update. |
| url | string (uri) |
Long item
Representation of a long integer item
Endpoints
ReadGET/n/v1/longitem/{urn}
Endpoint for managing long integer value items
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/longitem/{urn}UpdatePUT/n/v1/longitem/{urn}
Endpoint for managing long integer value items
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Long item
Responses
DeleteDELETE/n/v1/longitem/{urn}
Endpoint for managing long integer value items
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: LONG_ITEM
Webhook for Long (64 bit signed) integer values updates
Listen to events related to long value items to trigger experiences like when the long value is used for a customer visitor counter, when the counter reaches different values then the your product experience could change based on that value.
Counter / number values can also be used for logic related to driving personalisation experiences.
As with other content items, updates to long items result in a new draft of the item being created and the new draft is returned by the webhook.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Long item history | |
| value | number (int64) | Required on create. . |
| entity | Entity | Required on create. . |
| url | string (uri) |
Used by: Entity, Long item history, Template item history
Long item history
Representation of the history of a long integer content item. Note that history is returned from newest to oldest value
Endpoints
ReadGET/n/v1/longitemhistory/{urn}
Long integer content item history endpoint.
Notes
- The history is returned from newest item to oldest.
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Long item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/longitemhistory/{urn}UpdatePUT/n/v1/longitemhistory/{urn}
Long integer content item history endpoint.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Long item history
Responses
- 202
- returns Long item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Long item | |
| pagination | Pagination | |
| history | array of Long item | Ignored on update. |
| url | string (uri) |
Used by: Long item
Markdown Item
A markdown item value associated with a particular entity
Endpoints
CreatePOST/n/v1/markdownitem/
Endpoint for managing markdown items associated with an entity
Baack allocates the URN and returns it in the response.
Request body: Markdown Item
Responses
- 201 Created
- returns Markdown Item
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/markdownitem/{urn}
Endpoint for managing markdown items associated with an entity
Notes
- In the management API markdown items are not transformed into HTML. To render html please use the entity view endpoint.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Markdown Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/markdownitem/{urn}UpdatePUT/n/v1/markdownitem/{urn}
Endpoint for managing markdown items associated with an entity
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Markdown Item
Responses
- 202
- returns Markdown Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/markdownitem/{urn}
Endpoint for managing markdown items associated with an entity
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: MARKDOWN_ITEM
Webhook event for updates to markdown content items associated with an entity
Listen to markdown content changes to trigger custom experiences like content review task creation or QA review.
Note that like other content items, updates result in a new draft of the item being stored which will be returned by the webhook.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Markdown item history | |
| value | string | Required on create. . Up to 65535 characters. |
| entity | string (uuid) | Required on create. . |
| url | string (uri) |
Used by: Entity, Markdown item history, Money item history
Markdown item history
Representation of the markdown item history. Note that the history is ordered from newest to oldest and may be paginated.
Endpoints
ReadGET/n/v1/markdownitemhistory/{urn}
Endpoint for retrieving the history of markdown content items and picking the live version
Notes
- Read GET operations return the item and it's history. The item history may be paginated if too large to return in a single response.
- Update PUT operations on history 'update' the referenced content item to be the live version. The body of the request is currently ignored.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Markdown item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/markdownitemhistory/{urn}UpdatePUT/n/v1/markdownitemhistory/{urn}
Endpoint for retrieving the history of markdown content items and picking the live version
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Markdown item history
Responses
- 202
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Markdown Item | |
| pagination | Pagination | |
| history | array of Markdown Item | Ignored on update. |
| url | string (uri) |
Used by: Markdown Item
Money Item
A money value item in the context of a content entity
Endpoints
CreatePOST/n/v1/moneyitem/
Monetary value items endpoint used for creating money values associated with a content entity.
Baack allocates the URN and returns it in the response.
Request body: Money Item
Responses
- 201 Created
- returns Money Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/moneyitem/{urn}
Monetary value items endpoint used for creating money values associated with a content entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Money Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/moneyitem/{urn}UpdatePUT/n/v1/moneyitem/{urn}
Monetary value items endpoint used for creating money values associated with a content entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Money Item
Responses
- 202
- returns Money Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/moneyitem/{urn}
Monetary value items endpoint used for creating money values associated with a content entity.
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: MONEY_ITEM
Webhook event for updates to money items associated with content entities.
Use the money content item to receive notification when a price or cost related item is updated for example to re-calculate pricing or margin details for an item.
Note that like with other content items, updates are treated as a new draft value for the content item and the webhook will return the new value as an update.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| formattedValue | string | |
| currencySymbol | string | |
| currencyCode | string | Required on create. . One of: |
| url | string (uri) | |
| entity | Entity | Required on create. . |
| unitValue | number (int64) | Required on create. . |
Used by: Entity
Money item history
Representation of a money content item history
Endpoints
ReadGET/n/v1/moneyitemhistory/{urn}
Endpoint for accessing money content item historical values and pick the live version.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Money item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/moneyitemhistory/{urn}UpdatePUT/n/v1/moneyitemhistory/{urn}
Endpoint for accessing money content item historical values and pick the live version.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Money item history
Responses
- 202
- returns Money Item
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Markdown Item | |
| pagination | Pagination | |
| history | array of Markdown Item | Ignored on update. |
| url | string (uri) |
Reference Item
Content item used to refer to another content entity for example the author or another content entity for part of a page which is shared across multiple pages.
Endpoints
CreatePOST/n/v1/referenceitem/
Endpoint for managing references from one entity via a reference content item to another entity e.g. a reference to the author or the navigation content
Baack allocates the URN and returns it in the response.
Request body: Reference Item
Responses
- 201 Created
- returns Reference Item
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/referenceitem/{urn}
Endpoint for managing references from one entity via a reference content item to another entity e.g. a reference to the author or the navigation content
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Reference Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/referenceitem/{urn}UpdatePUT/n/v1/referenceitem/{urn}
Endpoint for managing references from one entity via a reference content item to another entity e.g. a reference to the author or the navigation content
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Reference Item
Responses
- 202
- returns Reference Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
DeleteDELETE/n/v1/referenceitem/{urn}
Endpoint for managing references from one entity via a reference content item to another entity e.g. a reference to the author or the navigation 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: REFERENCE_ITEM
Webhook for references from one entities content to another entity
This webhook allows monitoring of changes to the references from one entity to another. Note that as with other items the update webhook returns the new reference instance
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
Used by: Entity, Reference Item History
Reference Item History
Representation of the history of a reference item. Supports making an item live by UPDATE / POST of the item
Endpoints
ReadGET/n/v1/referenceitemhistory/{urn}
Endpoint for accessing entity reference item history and picking the live version.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Reference Item History
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/referenceitemhistory/{urn}UpdatePUT/n/v1/referenceitemhistory/{urn}
Endpoint for accessing entity reference item history and picking the live version.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Reference Item History
Responses
- 202
- returns Reference Item History
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Reference Item | |
| pagination | Pagination | |
| history | array of Reference Item | Ignored on update. |
Template Item
Object representing a template content item associated with a content entity
Endpoints
CreatePOST/n/v1/templateitem/
Template content item endpoint with support for managing templates which are translated on rendering endpoint calls using the entity context and other included resources.
Baack allocates the URN and returns it in the response.
Request body: Template Item
Responses
- 201 Created
- returns Template Item
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/templateitem/{urn}
Template content item endpoint with support for managing templates which are translated on rendering endpoint calls using the entity context and other included resources.
Notes
- On creation ofa new item with (name, sortOrder) scope if the associated entity is already published then the item will be created as also published.
- On creation of a template where there is an existing (name, sortOrder) the value will be introduces as a new draft.
- Template items support complex evaluation. See the guides for template item functionality support.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Template Item
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/templateitem/{urn}UpdatePUT/n/v1/templateitem/{urn}
Template content item endpoint with support for managing templates which are translated on rendering endpoint calls using the entity context and other included resources.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Template Item
Responses
- 202
- returns Template Item
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/templateitem/{urn}
Template content item endpoint with support for managing templates which are translated on rendering endpoint calls using the entity context and other included resources.
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: TEMPLATE_ITEM
Webhook for updates to template content items associated with an entity
Use the template item events to automate processes like draft review or content QA.
Note that like other content items template item updates result in a new draft of the item being created and it is the new version which is returned by the webhook.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| value | string | Required on create. . Up to 65535 characters. |
| entity | Entity | Required on create. . |
| url | string (uri) |
Used by: Entity
Template item history
Representation of the history of a template item values
Endpoints
ReadGET/n/v1/templateitemhistory/{urn}
Endpoint for accessing the template content item history
Notes
- Update PUT for one of the items in the history makes that version the live version (picked as live)
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Template item history
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/templateitemhistory/{urn}UpdatePUT/n/v1/templateitemhistory/{urn}
Endpoint for accessing the template content item history
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Template item history
Responses
- 202
- returns Template item history
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Long item | |
| pagination | Pagination | |
| history | array of Text Item | Ignored on update. |
| url | string (uri) |
Text Item
A text content item associated with a content entity
Endpoints
CreatePOST/n/v1/textitem/
Text content items endpoint with support for managing text items associated with an entity.
Baack allocates the URN and returns it in the response.
Request body: Text Item
Responses
ReadGET/n/v1/textitem/{urn}
Text content items endpoint with support for managing text items associated with an entity.
Notes
- On creation of a new name.sortOrder pair if the entity is published then the newly created item will also be published automatically.
- On creation of an item when there is an existing name.sortOrder value then the new value will be introduced as a new draft.
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/textitem/{urn}UpdatePUT/n/v1/textitem/{urn}
Text content items endpoint with support for managing text items associated with an entity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Text Item
Responses
DeleteDELETE/n/v1/textitem/{urn}
Text content items endpoint with support for managing text items associated with an entity.
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: TEXT_ITEM
Webhook for text content item updates associated with a content entity.
The text item webhook supports all CUD operations however it must be noted that like all content items update has special semantics.
Note: when updating a item a new version of it is inserted to the head of the specified item and the update will appear as a newly created item but with the new inserted URN rather than the URN of the updated item. This is because content items are always inserted and not updated.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | Up to 36 characters. |
| isPublished | boolean | |
| sortOrder | integer (int32) | Required on create. . |
| createdTimestamp | string (date-time) | |
| name | string | Required on create. . Up to 1024 characters. |
| history | Text Item History | |
| value | string | Required on create. . Up to 65535 characters. |
| entity | Entity | Required on create. . |
| url | string (uri) |
Used by: Entity, Template item history, Text Item History
Text Item History
Representation of the history of a text item including all of the revisions stored which may be paged if they exceed the maximum per response.
Endpoints
ReadGET/n/v1/textitemhistory/{urn}
Endpoint for accessing the text item content history and picking the live version
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Text Item History
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/textitemhistory/{urn}UpdatePUT/n/v1/textitemhistory/{urn}
Endpoint for accessing the text item content history and picking the live version
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Text Item History
Responses
- 202
- returns Text Item History
UPDATE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| item | Text Item | |
| pagination | Pagination | |
| history | array of Text Item | Ignored on update. |
| url | string (uri) |
Used by: Text Item