Base URL: https://api.amplience.net/v2/content
GET /events/{eventId}
https://api.amplience.net/v2/content/events/{eventId}
Get an Event by ID
Parameters
Name In Type Required Description eventIdpath string ✓ Event ID Example: 00112233445566778899aabb projectionquery string (withEditions) Include related Editions
Responses
Status Description 200 The requested Event, including corresponding Editions if projection=withEditions was supplied
Response example (200): Single event { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } }
Response example (200): With edition projection { "id" : "00112233445566778899aabb" , "name" : "Event2" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "editions" : [ { "id" : "00112233445566778899aabb" , "name" : "My Edition" , "comment" : "This is an example edition." , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "DRAFT" , "slotsRemaining" : 200 , "schedulingErrors" : null , "activeEndDate" : false , "publishingJobId" : null , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "schedulingUser" : null , "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" , "stagedDate" : null , "slotCollisions" : false } ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } }
DELETE /events/{eventId}
https://api.amplience.net/v2/content/events/{eventId}
Delete an Event by ID
Parameters
Name In Type Required Description eventIdpath string ✓ Event ID Example: 00112233445566778899aabb
Responses
Status Description 204 No Content
PATCH /events/{eventId}
https://api.amplience.net/v2/content/events/{eventId}
Update an Event by ID
Parameters
Name In Type Required Description eventIdpath string ✓ Event ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description namestring Name commentstring Comment startstring The Event start date endstring The Event end date briefstring Brief - external URI that related to this Event localesLocales
Request example { "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] }
Responses
Status Description 200 The requested Event
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "update" : { "href" : "https://api.amplience.net/..." } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" , "templated" : true } } }
POST /events/{eventId}/archive
https://api.amplience.net/v2/content/events/{eventId}/archive
Archiving an event is irreversible, you cannot unarchive. Archiving an event will also archive all editions contained within the event.
Parameters
Name In Type Required Description eventIdpath string ✓ Event ID Example: 00112233445566778899aabb
Responses
Status Description 200 Archived Event
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "status" : "ARCHIVED" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" , "templated" : true } } }
GET /events/search/findByDateRange
https://api.amplience.net/v2/content/events/search/findByDateRange
List all of the Events for a given date
Parameters
Name In Type Required Description hubIdquery string ✓ Hub ID Example: 00112233445566778899aabb rangeStartquery string ✓ The start date to search from Example: 2019-01-01T00:00:00.000Z rangeEndquery string The end date to search to Example: 2019-01-01T00:00:00.000Z projectionquery string (withEditions) Include child Editions boundedquery integer Find events that have either started or ended within the date range Example: 1 sizequery integer Set the number of results per page Example: 10
Responses
Status Description 200 Paginated Event List
Response example (200): Paginated event list { "_embedded" : { "events" : [ { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } } ] } , "_links" : { "self" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "first" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "last" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "search" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events/search" } , "page" : { "size" : 20 , "totalElements" : 5 , "totalPages" : 1 , "number" : 0 } }
Response example (200): With editions projection { "_embedded" : { "events" : [ { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "editions" : [ { "id" : "00112233445566778899aabb" , "name" : "My Edition" , "comment" : "This is an example edition." , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "DRAFT" , "slotsRemaining" : 200 , "schedulingErrors" : null , "activeEndDate" : false , "publishingJobId" : null , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "schedulingUser" : null , "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" , "stagedDate" : null , "slotCollisions" : false } ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } } ] } , "_links" : { "self" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "first" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "last" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "search" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events/search" } , "page" : { "size" : 20 , "totalElements" : 5 , "totalPages" : 1 , "number" : 0 } }
Search events by date range and slotsLink copied!
GET /events/search/findByDateRangeAndSlots
https://api.amplience.net/v2/content/events/search/findByDateRangeAndSlots
List all of the Events for a given date range and slot ID
Parameters
Name In Type Required Description hubIdquery string ✓ Hub ID Example: 00112233445566778899aabb rangeStartquery string ✓ The start date to search from Example: 2019-01-01T00:00:00.000Z rangeEndquery string The end date to search to Example: 2019-01-01T00:00:00.000Z projectionquery string (withEditions) Include child Editions boundedquery integer Find events that have either started or ended within the date range Example: 1 slotsquery string ✓ Slot ID Example: 00112233-4455-6677-8899-aabbccddeeff localesquery string Locale to match Example: en-GB sizequery integer Set the number of results per page Example: 10
Responses
Status Description 200 Paginated Event List
Response example (200): Paginated event list { "_embedded" : { "events" : [ { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } } ] } , "_links" : { "self" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "first" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "last" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "search" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events/search" } , "page" : { "size" : 20 , "totalElements" : 5 , "totalPages" : 1 , "number" : 0 } }
Response example (200): With editions projection { "_embedded" : { "events" : [ { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "editions" : [ { "id" : "00112233445566778899aabb" , "name" : "My Edition" , "comment" : "This is an example edition." , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "DRAFT" , "slotsRemaining" : 200 , "schedulingErrors" : null , "activeEndDate" : false , "publishingJobId" : null , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "schedulingUser" : null , "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" , "stagedDate" : null , "slotCollisions" : false } ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "hub" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" } , "editions" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?page,size,sort}" } } } ] } , "_links" : { "self" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "first" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "last" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" , "search" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events/search" } , "page" : { "size" : 20 , "totalElements" : 5 , "totalPages" : 1 , "number" : 0 } }
GET /hubs/{hubId}/events
https://api.amplience.net/v2/content/hubs/{hubId}/events
List all of the Events created for a hub
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb
Responses
Status Description 200 Paginated Event List
Response Example (200) { "_embedded" : { "events" : [ { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "update" : { "href" : "https://api.amplience.net/..." } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" , "templated" : true } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events?page=0&size=20" } , "search" : { "href" : "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/events/search" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
POST /hubs/{hubId}/events
https://api.amplience.net/v2/content/hubs/{hubId}/events
Create a new Event for a particular Hub.
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description namestring ✓ Name commentstring Comment startstring ✓ The Event start date endstring ✓ The Event end date briefstring Brief - external URI that related to this Event localesLocales
Request example { "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] }
Responses
Status Description 200 The created Event
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Event" , "comment" : "This is an example Event" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "brief" : "http://external.doc/mybrief" , "locales" : [ "en-GB" , "it" ] , "_links" : { "update" : { "href" : "https://api.amplience.net/..." } , "delete" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/archive" } , "create-edition" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb/editions{?sourceEditionId}" , "templated" : true } } }
GET /editions/{editionId}
https://api.amplience.net/v2/content/editions/{editionId}
Get Edition
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Responses
Status Description 200 Get Edition response
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Edition" , "comment" : "This is an Edition comment" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "DRAFT" , "slotsRemaining" : 200 , "activeEndDate" : false , "publishingJobId" : "00112233445566778899aabb" , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "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" , "stagedDate" : "2019-01-01T00:00:00.000Z" , "slotCollisions" : false , "_links" : { "slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots" } , "copy-slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots{?sourceEditionsSlotId}" , "templated" : true } , "list-slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots{?includedSlots}" , "templated" : true } , "schedule" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/schedule{?ignoreWarnings}" , "templated" : true } , "update" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } } }
PATCH /editions/{editionId}
https://api.amplience.net/v2/content/editions/{editionId}
Update Edition
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description namestring Edition Name commentstring Edition Comment activeEndDateboolean Active End Date
Request example { "name" : "Edition" , "comment" : "This is an Edition comment" , "activeEndDate" : false }
Responses
Status Description 200 Update Edition response
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Edition" , "comment" : "This is an Edition comment" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "DRAFT" , "slotsRemaining" : 200 , "activeEndDate" : false , "publishingJobId" : "00112233445566778899aabb" , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "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" , "stagedDate" : "2019-01-01T00:00:00.000Z" , "slotCollisions" : false , "_links" : { "slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots" } , "copy-slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots{?sourceEditionsSlotId}" , "templated" : true } , "list-slots" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slots{?includedSlots}" , "templated" : true } , "schedule" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/schedule{?ignoreWarnings}" , "templated" : true } , "update" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } } }
DELETE /editions/{editionId}
https://api.amplience.net/v2/content/editions/{editionId}
Delete Edition
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Responses
Status Description 204 Delete Edition response
POST /editions/{editionId}/archive
https://api.amplience.net/v2/content/editions/{editionId}/archive
Archiving an edition is irreversible, you cannot unarchive.
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Responses
Status Description 200 Archive Edition response
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "Edition" , "comment" : "This is an Edition comment" , "start" : "2019-01-01T00:00:00.000Z" , "end" : "2019-01-01T00:00:00.000Z" , "eventId" : "00112233445566778899aabb" , "publishingStatus" : "PUBLISHED" , "slotsRemaining" : 200 , "activeEndDate" : false , "publishingJobId" : "00112233445566778899aabb" , "statusUpdated" : "2019-01-01T00:00:00.000Z" , "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" , "stagedDate" : "2019-01-01T00:00:00.000Z" , "slotCollisions" : false , "status" : "ARCHIVED" , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "create-preview" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/preview" } , "preview" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/preview" } , "event" : { "href" : "https://api.amplience.net/v2/content/events/00112233445566778899aabb" } , "edition-conflicts" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflicts" } , "edition-conflict" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflicts/findByIdAndVersion{?id,version}" , "templated" : true } , "slot-collisions" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/slot-collisions" } } }
GET /editions/{editionId}/conflicts
https://api.amplience.net/v2/content/editions/{editionId}/conflicts
Get Edition Conflicts
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Responses
Status Description 200 Get Edition Conflicts response
Response Example (200) { "conflictedItems" : [ { "contentItemId" : "00112233445566778899aabb" , "contentItemLabel" : "Banner Ad Homepage" , "versions" : [ { "version" : 1 , "instances" : 1 , "slots" : 1 } ] } ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflict" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "edition-conflict" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflicts/findByIdAndVersion{?id,version}" , "templated" : true } } }
Resolve edition conflictsLink copied!
PUT /editions/{editionId}/conflicts
https://api.amplience.net/v2/content/editions/{editionId}/conflicts
Resolve Edition Conflicts
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description commentstring Comment lastModifiedDatestring Last Modified Date resolutionsarray ✓
Request example { "comment" : "Comment" , "lastModifiedDate" : "2019-01-01T00:00:00.000Z" , "resolutions" : [ { "contentItemId" : "00112233445566778899aabb" , "version" : 1 } ] }
Responses
Status Description 200 Resolve Edition Conflicts response
Get edition conflict by id and versionLink copied!
GET /editions/{editionId}/conflicts/findByIdAndVersion
https://api.amplience.net/v2/content/editions/{editionId}/conflicts/findByIdAndVersion
Get Edition Conflict by Id and Version
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb versionquery number ✓ Version Example: 1 idquery string ✓ Id Example: 00112233445566778899aabb
Responses
Status Description 200 Edition Conflict by Id and Version response
Response Example (200) { "editionId" : "00112233445566778899aabb" , "contentItemId" : "00112233445566778899aabb" , "version" : 1 , "instances" : [ { "snapshot" : { "snapshotId" : "00112233445566778899aabb" , "createdBy" : "00112233-4455-6677-8899-aabbccddeeff" , "createdDate" : "2019-01-01T00:00:00.000Z" , "comment" : "Comment" , "slotId" : "00112233445566778899aabb" , "slotLabel" : "Slot Label" , "itemHierarchy" : [ { "contentItemId" : "00112233445566778899aabb" , "version" : 1 , "label" : "Label" } ] } } ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflicts/findByIdAndVersion?id=00112233445566778899aabb&version=1" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } , "edition-conflict" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/conflicts" } } }
POST /editions/{editionId}/edition-contents
https://api.amplience.net/v2/content/editions/{editionId}/edition-contents
Create Edition Content
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb
Responses
Status Description 200 Create Edition Content Response
Response example (200): Create edition content { "id" : "00112233445566778899aabb" , "eventId" : "00112233445566778899aabb" , "editionId" : "00112233445566778899aabb" , "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" , "content" : { "body" : { "_meta" : { "schema" : "http://deliver.bigcontent.io/schema/hierarchy/hierarchy-schema.json" , "name" : "Name" } } } , "status" : "Active" , "label" : "Banner Ad Homepage" , "conflicts" : false , "empty" : true , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents" } , "edition-contents" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } } }
GET /editions/{editionId}/edition-contents
https://api.amplience.net/v2/content/editions/{editionId}/edition-contents
List Edition Contents
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb pagequery integer page to retrieve Example: 1 sizequery integer page size to retrieve Example: 20
Responses
Status Description 200 List Edition Content Response
Response Example (200) { "_embedded" : { "edition-contents" : [ { "id" : "00112233445566778899aabb" , "eventId" : "00112233445566778899aabb" , "editionId" : "00112233445566778899aabb" , "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" , "content" : "" , "label" : "Banner Ad Homepage" , "conflicts" : false , "empty" : true , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb" } , "edition-content" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents?page=0&size=20" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }
GET /editions/{editionId}/edition-contents/{editionContentsId}
https://api.amplience.net/v2/content/editions/{editionId}/edition-contents/{editionContentsId}
Get Edition Content
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb editionContentIdpath string ✓ Edition Content ID Example: 00112233-4455-6677-8899-aabbccddeeff
Responses
Status Description 200 Edition Content Response
Response Example (200) { "id" : "00112233445566778899aabb" , "eventId" : "00112233445566778899aabb" , "editionId" : "00112233445566778899aabb" , "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" , "content" : "" , "label" : "Banner Ad Homepage" , "conflicts" : false , "empty" : true , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb" } , "edition-content" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb/edition-contents/00112233445566778899aabb" } , "edition" : { "href" : "https://api.amplience.net/v2/content/editions/00112233445566778899aabb" } } }
DELETE /editions/{editionId}/edition-contents/{editionContentsId}
https://api.amplience.net/v2/content/editions/{editionId}/edition-contents/{editionContentsId}
Delete Edition Content
Parameters
Name In Type Required Description editionIdpath string ✓ Edition Id Example: 00112233445566778899aabb editionContentIdpath string