Base URL: https://api.amplience.net/v2/content
A simple query syntax is provided to allow full text search on content items. Several characters have special meaning and are reserved:
Reserved Search Characters
Description Symbol Negation Operator -Field Search Operator :Quote (for exact search) "Comma (list multiple search terms) ,
Please note that the text search is case insensitive, and will only display content items within the hub. See the following examples for an explanation of the query syntax:
Text Search Examples
Query Meaning appleFind all content items containing the word "apple" apple orangeFind all content items containing the words "apple" AND "orange" apple,orangeFind all content items containing either "apple" OR "orange" apple -orangeFind all content items that contain the word "apple" but NOT "orange" -apple-orangeFind all content items that don't contain "apple-orange" (hyphens in the middle of a word are not treated as negation) label:appleFind all content items that contain the word "apple" within the "label" field "apple:orange"Find all content items containing "apple:orange" (quotes must be used to search for a colon character) apple label:orangeFind all content items containing the word "apple" anywhere within them, AND the word "orange" in the label field
The publishingStatus field appears on all content item responses and describes the relationship between the current version and the last published version:
Value Meaning NONEThe content item has never been published EARLYThe content item has been published, but changes have been made since the last publish LATESTThe content item has been published and no changes have been made since. The published version is current UNPUBLISHEDThe content item was published and has since been unpublished
The workflow.state field on a content item response contains the ID of the assigned Workflow State resource. Use the Workflow States endpoints to list available states for a hub or retrieve a state by ID. The field is absent when no workflow state is assigned.
Content item response linksLink copied!
Most content item API responses include a standard set of HAL _links describing the actions and related resources available. The examples throughout this page show an abbreviated set of links for readability. The full set returned in a typical content item response looks like this:
"_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } , "unpublish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/unpublish" } , "linked-content" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "content-item-with-children" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item-with-parents" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithParents?id=00112233-4455-6677-8899-aabbccddeeff" } , "update" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?ignoreSchemaValidation}" , "templated" : true } , "restore-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/restore" } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-item-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{/version}" , "templated" : true } , "content-item-versions" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{?page,size,sort}" , "templated" : true } , "content-item-history" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/history{?page,size,sort}" , "templated" : true } , "copy" : { "href" : "https://api.amplience.net/v2/content/content-repositories/{id}/content-items?sourceContentItemId=00112233-4455-6677-8899-aabbccddeeff" , "templated" : true } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/unarchive" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/archive" } , "set-delivery-key" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/delivery-key" } , "set-locale" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/locale" } , "create-localizations" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/localize" } , "localizations" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/localizations{?page,size,sort}" , "templated" : true } , "localization-jobs" : { "href" : "https://api.amplience.net/v2/content/localization-jobs/search/findByRootContentItem?id=00112233-4455-6677-8899-aabbccddeeff{&page,size,sort}" , "templated" : true } , "edition-slot-associations" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/edition-slot-associations" } , "edit-workflow" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/workflow" } }
Which links you'll actually seeThe exact set of links returned can vary slightly by content item state. Endpoints that return a partial or list representation may include a smaller subset of these links rather than the full set shown above.
Update multiple content itemsLink copied!
PATCH /content-items
https://api.amplience.net/v2/content/content-items
Update Multiple Content Items
Request Body
Content-Type: application/json
Request example [ { "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" } , "heading" : "Heading" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Label" , "version" : 1 , "folderId" : "00112233445566778899aabb" , "assignees" : "00112233445566778899aabb" , "id" : "00112233-4455-6677-8899-aabbccddeeff" } ]
Responses
Status Description 207 Update Multiple Content Items response
Response Example (207) { "results" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "status" : 200 , "code" : "SUCCESS" , "level" : "INFO" } ] }
GET /content-items/{contentItemId}
https://api.amplience.net/v2/content/content-items/{contentItemId}
Get a Content Item
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
PATCH /content-items/{contentItemId}
https://api.amplience.net/v2/content/content-items/{contentItemId}
Update a Content Item. Please note that deliveryKey can only be set when Content Delivery v2 is enabled.
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff ignoreSchemaValidationquery boolean When true, the content item body is not validated against the content type schema. Use with caution. Invalid content may cause delivery errors.
Request Body
Content-Type: application/json
Field Type Required Description bodyobject labelstring Label folderIdstring Folder ID assigneesarray Assignees localestring Locale versioninteger ✓ The current version number of the content item. Must match the stored version to prevent overwriting concurrent edits. If the version supplied does not match the current version, a 400 error is returned.
Request example { "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "locale" : "en-GB" }
Responses
Status Description 200 Updated Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
POST /content-items/{contentItemId}/archive
https://api.amplience.net/v2/content/content-items/{contentItemId}/archive
Archive a Content Item
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description versioninteger ✓ Version to archive
Request example
Responses
Status Description 200 Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "status" : "ARCHIVED" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
Get content item associationsLink copied!
GET /content-items/{contentItemId}/associations
https://api.amplience.net/v2/content/content-items/{contentItemId}/associations
Get Content Item Associations
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 Get Content Item Associations response
Response Example (200) { "contentItemId" : "00112233-4455-6677-8899-aabbccddeeff" , "associations" : [ { "eventTitle" : "Test" , "eventId" : "00112233445566778899aabb" , "eventStart" : "2019-01-01T00:00:00.000Z" , "eventEnd" : "2019-01-01T00:00:00.000Z" , "editionTitle" : "Test" , "editionId" : "00112233445566778899aabb" , "editionStart" : "2019-01-01T00:00:00.000Z" , "editionEnd" : "2019-01-01T00:00:00.000Z" , "editionPubStatus" : "DRAFT" , "editionSlotTitle" : "Simple Slot" , "editionSlotId" : "00112233445566778899aabb" , "editionSlotLocked" : true , "editionSlotLastModifiedDate" : "2019-01-01T00:00:00.000Z" , "editionContentTitle" : null , "editionContentId" : null , "editionContentLocked" : null , "editionContentLastModifiedDate" : null , "editionContentMultiRoot" : false , "snapshotComments" : "This is an example snapshot." , "snapshotCreatedBy" : "user" , "snapshotCreatedDate" : "2019-01-01T00:00:00.000Z" , "snapshotId" : "00112233445566778899aabb" , "usageCount" : 1 , "snapshotLocale" : "en-GB" , "contentTypeSchema" : "http://deliver.bigcontent.io/schema/simple-slot-type.json" , "_links" : { "get-content" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots/00112233445566778899aabb" } , "update-content" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots/00112233445566778899aabb/content{?lastModifiedDate,page,size,sort}" , "templated" : true } } } , { "eventTitle" : "Test" , "eventId" : "00112233445566778899aabb" , "eventStart" : "2019-01-01T00:00:00.000Z" , "eventEnd" : "2019-01-01T00:00:00.000Z" , "editionTitle" : "Test" , "editionId" : "00112233445566778899aabb" , "editionStart" : "2019-01-01T00:00:00.000Z" , "editionEnd" : "2019-01-01T00:00:00.000Z" , "editionPubStatus" : "DRAFT" , "editionSlotTitle" : null , "editionSlotId" : null , "editionSlotLocked" : null , "editionSlotLastModifiedDate" : null , "editionContentTitle" : "Banner Ad Homepage" , "editionContentId" : "00112233445566778899aabb" , "editionContentLocked" : true , "editionContentLastModifiedDate" : "2019-01-01T00:00:00.000Z" , "editionContentMultiRoot" : true , "snapshotComments" : "This is an example snapshot." , "snapshotCreatedBy" : "user" , "snapshotCreatedDate" : "2019-01-01T00:00:00.000Z" , "snapshotId" : "00112233445566778899aabb" , "usageCount" : 1 , "snapshotLocale" : "en-GB" , "contentTypeSchema" : null , "_links" : { "get-editionContent" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb" } , "update-editionContent" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb/content{?lastModifiedDate,page,size,sort}" , "templated" : true } } } ] , "_links" : { "edition-slot-associations" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/edition-slot-associations" } , "content-item-associations" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/associations" } } }
PATCH /content-items/{contentItemId}/delivery-key
https://api.amplience.net/v2/content/content-items/{contentItemId}/delivery-key
Assign a delivery key to a content item or slot and replace any existing key. The delivery key must meet the validation rules and be unique within the hub.
The current version of the content item must be included in the request payload. If the version specified is not the current one, then a 400 error will be returned in the response.
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description deliveryKeystring ✓ Delivery key versionnumber ✓ Version
Request example { "deliveryKey" : "promo-page/main-banner" , "version" : 1 }
Responses
Status Description 200 Assign Content Item Delivery Key response
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
List content item historyLink copied!
GET /content-items/{contentItemId}/history
https://api.amplience.net/v2/content/content-items/{contentItemId}/history
List Content Item History
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 List Content Item History response
Response Example (200) { "_embedded" : { "content-item-history" : [ { "summary" : [ { "action" : { "code" : "UPDATED" } , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "historyEventId" : "00112233-4455-6677-8899-aabbccddeeff" } ] , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "version" : 1 , "_links" : { "content-item-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1" } , "content-item-version-history" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history{?page,sort,size}" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/history?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/history?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/history?page=0&size=20" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
POST /content-items/{contentItemId}/localize
https://api.amplience.net/v2/content/content-items/{contentItemId}/localize
Localize a Content Item. Creates new localized copies of the content item for each requested locale.
The source content item must have a locale set before localization can be triggered. Use Assigning locales to Content Items (POST /content-items/{contentItemId}/locale) to set the source locale (for example en-GB) first. Calling this endpoint without a source locale set will fail.
This operation is asynchronous and returns a 202 Accepted response immediately. To poll the status of the localization job, follow the findByRootContentItem link in the response. This points to the Localization Jobs endpoint. The job status field will be IN_PROGRESS until complete.
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description localesarray ✓ List of locales versioninteger ✓ Content item version number replicateFolderStructureboolean When true, the new localized content items will be placed into the same folder as the origin content item. If localizing across repositories then the folder structure of the origin content item will be replicated in the destination repository for the new localized content items.
Request example { "locales" : [ "fr-FR" , "de-DE" ] , "version" : 1 , "replicateFolderStructure" : true }
Responses
Status Description 202 Content Item
Response Example (202) { "status" : "IN_PROGRESS" , "rootContentItem" : { "label" : "l10n" , "locale" : "en-GB" , "id" : "00112233-4455-6677-8899-aabbccddeeff" } , "requestedLocale" : [ "fr-FR" , "de-DE" ] , "replicateFolderStructure" : true , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "_links" : { "content-root" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "findByRootContentItem" : { "href" : "https://api.amplience.net/v2/content/localization-jobs/search/findByRootContentItem?id=00112233-4455-6677-8899-aabbccddeeff{&page,size,sort}" , "templated" : true } } }
GET /content-items/{contentItemId}/planned
https://api.amplience.net/v2/content/content-items/{contentItemId}/planned
Find content items that are candidates for being published at a point in time.
Parameters
Name In Type Required Description epochquery number Epoch Time Example: 1546300800 timequery number Time Example: 2019-01-01T00:00:00.000Z
Responses
Status Description 200 Finding Content by Epoch response
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Heading" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1" } , "content-item-version-history" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history{?page,size,sort}" , "templated" : true } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "content-item-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{/version}" , "templated" : true } , "content-item-versions" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{?page,size,sort}" , "templated" : true } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-item-with-children" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item-with-parents" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithParents?id=00112233-4455-6677-8899-aabbccddeeff" } } }
POST /content-items/{contentItemId}/publish
https://api.amplience.net/v2/content/content-items/{contentItemId}/publish
Publish a Content Item. Publishing is asynchronous. The response body is empty, but the Location response header contains the URL of the created Publishing Job . Poll that URL to track the job state through CREATED → PREPARING → WAITING → PUBLISHING → COMPLETED (or FAILED). The job can be cancelled by sending PATCH to the same URL with {"state": "CANCELLED"}.
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Responses
Status Description 204 No Content. The Location response header contains the Publishing Job URL.
Response Headers (204) Location: https://api.amplience.net/v2/content/publishing-jobs/68a83ba8f0c94d9ab9b515e01ec70d28 Follow the Location URL to retrieve and poll the Publishing Job. See Get a Publishing Job .
Restore content by content version numberLink copied!
PUT /content-items/{contentItemId}/restore
https://api.amplience.net/v2/content/content-items/{contentItemId}/restore
Restore Content by Content Version Number
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description versionnumber ✓ Version restoreVersionnumber ✓ Restore Version
Request example { "version" : 2 , "restoreVersion" : 1 }
Responses
Status Description 200 List Content Item Versions
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Heading" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
POST /content-items/{contentItemId}/unarchive
https://api.amplience.net/v2/content/content-items/{contentItemId}/unarchive
Unarchive a Content Item
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description versioninteger ✓ Version to unarchive
Request example
Responses
Status Description 200 Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
POST /content-items/{contentItemId}/unpublish
https://api.amplience.net/v2/content/content-items/{contentItemId}/unpublish
Unpublish a Content Item
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Responses
Status Description 202 Accepted
List content item versionsLink copied!
GET /content-items/{contentItemId}/versions
https://api.amplience.net/v2/content/content-items/{contentItemId}/versions
List Content Item Versions
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 List Content Item Versions
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Main-Banner" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "deliveryKey" : "promo-page/main-banner" } } , "heading" : "Main-Banner" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } ] , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" } , "_links" : { "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1" } , "content-item-version-history" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history{?page,size,sort}" , "templated" : true } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "content-item-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{/version}" , "templated" : true } , "content-item-versions" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{?page,size,sort}" , "templated" : true } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-item-with-children" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item-with-parents" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithParents?id=00112233-4455-6677-8899-aabbccddeeff" } } }
Finding content by content version numberLink copied!
GET /content-items/{contentItemId}/versions/{version}
https://api.amplience.net/v2/content/content-items/{contentItemId}/versions/{version}
Finding Content by Content Version Number
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff versionquery number Version Example: 1
Responses
Status Description 200 List Content Item Versions
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Heading" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1" } , "content-item-version-history" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history{?page,size,sort}" , "templated" : true } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "content-item-version" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{/version}" , "templated" : true } , "content-item-versions" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions{?page,size,sort}" , "templated" : true } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-item-with-children" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item-with-parents" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithParents?id=00112233-4455-6677-8899-aabbccddeeff" } } }
List content item history for a versionLink copied!
GET /content-items/{contentItemId}/versions/{version}/history
https://api.amplience.net/v2/content/content-items/{contentItemId}/versions/{version}/history
List Content Item History for a Version
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff versionpath string ✓ Version Example: 1
Responses
Status Description 200 List Content Item History for a Version response
Response Example (200) { "_embedded" : { "content-item-version-history" : [ { "historyEventId" : "00112233-4455-6677-8899-aabbccddeeff" , "contentItemId" : "00112233445566778899aabb" , "version" : 1 , "createdDate" : "2019-01-01T00:00:00.000Z" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "action" : { "code" : "CREATED" } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/versions/1/history?page=0&size=20" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
Assigning a workflow stateLink copied!
PATCH /content-items/{contentItemId}/workflow
https://api.amplience.net/v2/content/content-items/{contentItemId}/workflow
Assign or unassign a Workflow State on a Content Item. To unassign the current workflow state, omit the state field or set it to null.
Parameters
Name In Type Required Description contentItemIdpath string ✓ Content Item ID Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description versioninteger ✓ Current version of the content item statestring Workflow State ID. Omit or set to null to remove the current workflow state.
Request example { "version" : 1 , "state" : "00112233445566778899aabb" }
Responses
Status Description 200 Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
Getting linked child content itemsLink copied!
GET /content-items/search/findByIdWithChildren
https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren
Get Linked Child Content Items
Parameters
Name In Type Required Description idquery string ✓ Id Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 Get Linked Child Content Items response
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/linked-content-validation/nestable.json" , "deliveryKey" : "promo-page/main-banner" } , "nested" : { "_meta" : { "schema" : "http://bigcontent.io/cms/schema/v1/core#/definitions/content-link" } , "contentType" : "http://deliver.bigcontent.io/schema/linked-content-validation/nestable.json" , "id" : "00112233-4455-6677-8899-aabbccddeeff" } } , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithChildren?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } } }
The _links object in this example is truncated for readability: it shows 4 of the 22 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
Getting linked parent content itemsLink copied!
GET /content-items/search/findByIdWithParents
https://api.amplience.net/v2/content/content-items/search/findByIdWithParents
Get Linked Parent Content Items
Parameters
Name In Type Required Description idquery string ✓ Id Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 Get Linked Parent Content Items response
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "Name" , "schema" : "http://deliver.bigcontent.io/schema/linked-content-validation/nestable.json" , "deliveryKey" : "promo-page/main-banner" } , "nested" : { "_meta" : { "schema" : "http://bigcontent.io/cms/schema/v1/core#/definitions/content-link" } , "contentType" : "http://deliver.bigcontent.io/schema/linked-content-validation/nestable.json" , "id" : "00112233-4455-6677-8899-aabbccddeeff" } } , "version" : 1 , "label" : "Label" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/search/findByIdWithParents?id=00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } } }
The _links object in this example is truncated for readability: it shows 4 of the 22 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
GET /content-repositories/{contentRepositoryId}/content-items
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/content-items
This lists all of the Content Items within this Content Repository
Parameters
Name In Type Required Description contentRepositoryIdpath string ✓ Content Repository ID Example: 00112233445566778899aabb projectionquery string (projection) "basic" - omits the body property from the return Content Items Example: basic pagequery integer Page number Example: 0 folderIdquery string Folder ID Example: 00112233445566778899aabb statusquery string Status excludeHierarchicalChildrenquery boolean Exclude hierarchical child items Example: True sizequery integer Page size Example: 20 sortquery string Sort paramter Example: createdDate,asc
Responses
Status Description 200 Content Repository
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233-4455-6677-8899-aabbccddeeff?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233-4455-6677-8899-aabbccddeeff?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233-4455-6677-8899-aabbccddeeff?page=0&size=20" } , "search" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233-4455-6677-8899-aabbccddeeff/search" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
POST /content-repositories/{contentRepositoryId}/content-items
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/content-items
Create a Content Item. Please note that deliveryKey can only be set when Content Delivery v2 is enabled. Copying a content item will not copy the deliveryKey.
Parameters
Name In Type Required Description contentRepositoryIdpath string ✓ Content Repository ID Example: 00112233445566778899aabb ignoreSchemaValidationquery boolean When true, the content item body is not validated against the content type schema. Use with caution. Invalid content may cause delivery errors.
Request Body
Content-Type: application/json
Field Type Required Description bodyobject ✓ labelstring ✓ Label folderIdstring Folder ID assigneesarray Assignees localestring Locale workflowobject
Request example: Create content item { "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "locale" : "en" , "assignees" : [ "a79f0b27-5934-4154-9cda-36399e011c68" , "cbda3aa3-ebc4-4bb1-84a5-d9b31990c703" ] }
Request example: Slot content item { "body" : { "_meta" : { "name" : "simple-slot" , "schema" : "http://example.com/simple-slot-type.json" } } , "label" : "Simple Slot" }
Responses
Status Description 201 Created Content Item
Response example (201): Create content item { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "version" : 1 , "label" : "Banner Ad Homepage" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "assignee" : "00112233-4455-6677-8899-aabbccddeeff" , "assignedDate" : "2019-01-01T00:00:00.000Z" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 21 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
POST /content-repositories/{contentRepositoryId}/content-items/{sourceContentItemId}
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/content-items/{sourceContentItemId}
Copy a Content Item. Please note that deliveryKey can only be set when Content Delivery v2 is enabled. Copying a content item will not copy the deliveryKey.
Parameters
Name In Type Required Description contentRepositoryIdpath string ✓ Content Repository ID Example: 00112233445566778899aabb sourceContentItemIdpath string ✓ Source Content Item ID (used to copy an existing Content Item) Example: 00112233-4455-6677-8899-aabbccddeeff
Request Body
Content-Type: application/json
Field Type Required Description bodyobject ✓ labelstring ✓ Label folderIdstring Folder ID assigneesarray Assignees localestring Locale workflowobject
Request example: Copy content item { "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "locale" : "en" }
Responses
Status Description 201 Created Content Item
Response example (201): Copy content item { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "version" : 1 , "label" : "Banner Ad Homepage" , "status" : "ACTIVE" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 21 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
Faceting content items with search by textLink copied!
POST /hubs/{hubId}/content-items/facet
https://api.amplience.net/v2/content/hubs/{hubId}/content-items/facet
Facet content items and search by text. See Text Search Query Syntax for a summary of the query syntax.
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb sortquery string Sort Example: createdDate createdDate.dirquery string (asc, desc) Direction of sort Example: desc
Request Body
Content-Type: application/json
Field Type Required Description fieldsarray ✓ Array of facet field definitions. Each entry defines one facet dimension. See field schema below. returnEntitiesboolean When true, matching content items are included in the response alongside facet counts.
Facet field schema
Each object in the fields array supports the following properties:
Property Type Required Description facetAsstring ✓ Facet type. ENUM groups results by distinct values; DATE groups by date ranges. fieldstring ✓ The content item field to facet on. Common values: schema, assignees, workflow.state, publishingStatus, locale, lastModifiedDate, createdDate. userFacingNamestring Display name for the facet filterobject For ENUM facets: pre-filters results to items matching this value. filter.typestring Filter operator. EQ matches a single value; IN matches any value in an array. filter.valuesstring or array The value(s) to filter by. Use an array with IN. rangeobject For DATE facets: defines the date range range.startstring Range start. ISO 8601 date, or a relative expression such as NOW, -7:DAYS, -30:DAYS, -60:DAYS. range.endstring Range end. Same format as range.start.
Request example { "fields" : [ { "facetAs" : "ENUM" , "filter" : { "type" : "EQ" , "values" : [ "http://deliver.bigcontent.io/schema/nested/nested-type.json" ] } , "field" : "schema" , "userFacingName" : "Schema" } ] , "returnEntities" : true }
Responses
Status Description 200 Content Item Facet response
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "version" : 1 , "status" : "ACTIVE" , "label" : "Label" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "_links" : { "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/..." } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } , "_facets" : { "schema" : [ { "_id" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "count" : 1 } ] } }
Filtering content items by collection keysLink copied!
POST /hubs/{hubId}/content-items/filter
https://api.amplience.net/v2/content/hubs/{hubId}/content-items/filter
Filter content items using Collection Keys.
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description collectionKeystring ✓ collectionKeyhubName:527c95fd10c77e96b5164633b445271ffc0392031b6c99448cbaec579767b76b sortByobject pageobject
Request example { "collectionKey" : "hubName:527c95fd10c77e96b5164633b445271ffc0392031b6c99448cbaec579767b76b" , "sortBy" : { "order" : "asc" } , "page" : { "cursor" : "SSBhbSBhIGhhdGNoZWQtZWFzdGVyLWVnZy4gUGxlYXNlIGRvbid0IGRlY29kZSBtZS4=" } }
Responses
Status Description 200 Content Item filter response
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } } ] } , "page" : { "cursor" : "SSBhbSBhIGhhdGNoZWQtZWFzdGVyLWVnZy4gUGxlYXNlIGRvbid0IGRlY29kZSBtZS4=" , "count" : 1 } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233-4455-6677-8899-aabbccddeeff/content-items/filter" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.
Search content items by textLink copied!
GET /hubs/{hubId}/content-items/find
https://api.amplience.net/v2/content/hubs/{hubId}/content-items/find
Text is the default search field. See Text Search Query Syntax for a summary of the query syntax.
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb queryquery string ✓ Query Example: uniondusk
Responses
Status Description 200 Search Content Items by Text response
Response Example (200) { "_embedded" : { "content-items" : [ { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "folderId" : "00112233445566778899aabb" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "schema" : "http://deliver.bigcontent.io/schema/nested/nested-type.json" , "version" : 1 , "status" : "ACTIVE" , "label" : "Label" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "_links" : { "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/..." } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
Finding content items by delivery keysLink copied!
GET /hubs/{hubId}/delivery-keys/content-item
https://api.amplience.net/v2/content/hubs/{hubId}/delivery-keys/content-item
Find content items using the Delivery Key.
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb keyquery string ✓ The delivery key Example: promo-page/main-banner
Responses
Status Description 200 Content Item
Response Example (200) { "id" : "00112233-4455-6677-8899-aabbccddeeff" , "contentRepositoryId" : "00112233445566778899aabb" , "body" : { "_meta" : { "name" : "main-banner" , "schema" : "http://example.com/banner.json" , "deliveryKey" : "promo-page/main-banner" } , "heading" : "Buy more stuff!!" , "link" : "http://anyafinn.com/buymore?campaign=shouting" } , "label" : "Banner Ad Homepage" , "folderId" : "00112233445566778899aabb" , "assignees" : [ "00112233445566778899aabb" ] , "assignedDate" : "2019-01-01T00:00:00.000Z" , "locale" : "en-GB" , "version" : 1 , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "lastModifiedBy" : "00112233-4455-6677-8899-aabbccddeeff" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedDate" : "2019-01-01T00:00:00.000Z" , "lastPublishedVersion" : 1 , "lastUnpublishedDate" : "2019-01-01T00:00:00.000Z" , "lastUnpublishedVersion" : 1 , "publishingStatus" : "NONE" , "deliveryId" : "00112233-4455-6677-8899-aabbccddeeff" , "workflow" : { "state" : "00112233445566778899aabb" } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff" } , "content-item" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff{?projection}" , "templated" : true } , "planned" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/planned{?epoch,time}" , "templated" : true } , "publish" : { "href" : "https://api.amplience.net/v2/content/content-items/00112233-4455-6677-8899-aabbccddeeff/publish" } } }
The _links object in this example is truncated for readability: it shows 4 of the 24 links the API actually returns. Every content item response includes the full standard set. See Content item response links for the complete list.