Base URL: https://api.amplience.net/v2/content
Assign content type to content repositoryLink copied!
POST /content-repositories/{contentRepositoryId}/content-types
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/content-types
Assign Content Type to a Content Repository
Parameters
Name In Type Required Description contentRepositoryIdpath string ✓ Content Repository ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description contentTypeIdstring ✓ Content Type ID
Request example { "contentTypeId" : "00112233445566778899aabb" }
Responses
Status Description 201 Updated Content Repository
Response Example (201) { "id" : "00112233445566778899aabb" , "name" : "inspiration" , "label" : "inspiration" , "status" : "ACTIVE" , "features" : [ "slots" ] , "type" : "CONTENT" , "contentTypes" : [ { "hubContentTypeId" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" } ] , "itemLocales" : [ "en_US" ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } } }
The _links object in this example is truncated for readability: it shows 4 of the 19 links the API actually returns. Every content repository response includes the full standard set. See Content repository response links for the complete list.
Remove content type from content repositoryLink copied!
DELETE /content-repositories/{contentRepositoryId}/content-types/{contentTypeId}
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/content-types/{contentTypeId}
Remove a Content Type from a Content Repository
Parameters
Name In Type Required Description contentRepositoryIdpath string ✓ Content Repository ID Example: 00112233445566778899aabb contentTypeIdpath string ✓ Content Type ID Example: 00112233445566778899aabb
Responses
Status Description 200 Updated Content Repository
Response Example (200) { "id" : "00112233445566778899aabb" , "name" : "inspiration" , "label" : "inspiration" , "status" : "ACTIVE" , "features" : [ "slots" ] , "type" : "CONTENT" , "contentTypes" : [ { "hubContentTypeId" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" } ] , "itemLocales" : [ "en_US" ] , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "content-repository" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "update" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } , "delete" : { "href" : "https://api.amplience.net/v2/content/content-repositories/00112233445566778899aabb" } } }
The _links object in this example is truncated for readability: it shows 4 of the 19 links the API actually returns. Every content repository response includes the full standard set. See Content repository response links for the complete list.
GET /content-types/{contentTypeId}
https://api.amplience.net/v2/content/content-types/{contentTypeId}
Get the request Content Type
Parameters
Name In Type Required Description contentTypeIdpath string ✓ Content Type ID Example: 00112233445566778899aabb
Responses
Status Description 200 Content Type
Response Example (200) { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ACTIVE" , "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } }
PATCH /content-types/{contentTypeId}
https://api.amplience.net/v2/content/content-types/{contentTypeId}
Update the Content Type
Parameters
Name In Type Required Description contentTypeIdpath string ✓ Content Type ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description settingsobject
Request example { "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } }
Responses
Status Description 200 Updated Content Type
Response Example (200) { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ACTIVE" , "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } }
POST /content-types/{contentTypeId}/archive
https://api.amplience.net/v2/content/content-types/{contentTypeId}/archive
Archive a Content Type
Parameters
Name In Type Required Description contentTypeIdpath string ✓ Content Type ID Example: 00112233445566778899aabb
Responses
Status Description 200 Archived Content Type
Response Example (200) { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ARCHIVED" , "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } }
POST /content-types/{contentTypeId}/unarchive
https://api.amplience.net/v2/content/content-types/{contentTypeId}/unarchive
Unarchive a Content Type
Parameters
Name In Type Required Description contentTypeIdpath string ✓ Content Type ID Example: 00112233445566778899aabb
Responses
Status Description 200 Unarchived Content Type
Response Example (200) { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ACTIVE" , "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } }
POST /hubs/{hubId}/content-types
https://api.amplience.net/v2/content/hubs/{hubId}/content-types
Create a new Content Type
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb
Request Body
Content-Type: application/json
Field Type Required Description contentTypeUristring ✓ Content Type URI settingsobject ✓
Request example { "contentTypeUri" : "http://example.com/content-type.json" , "settings" : { "icons" : [ ] , "visualizations" : [ ] } }
Responses
Status Description 201 Created Content Type
Response Example (201) { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ACTIVE" , "settings" : { "label" : "New Content Type" , "icons" : [ { "size" : 256 , "url" : "http://example.com/icon.png" } ] , "visualizations" : [ { "label" : "Desktop Website" , "templatedUri" : "http://example.com?vse={{vse}}" , "default" : true } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } }
GET /hubs/{hubId}/content-types
https://api.amplience.net/v2/content/hubs/{hubId}/content-types
List Content Types for a Hub
Parameters
Name In Type Required Description hubIdpath string ✓ Hub ID Example: 00112233445566778899aabb pagequery integer Page number Example: 0 sizequery integer Page size Example: 20 sortquery string Sort paramter Example: contentTypeUri,asc statusquery string Comma seperated list of statuses Example: ACTIVE,ARCHIVED
Responses
Status Description 200 Paginated Content Types
Response Example (200) { "_embedded" : { "content-types" : [ { "id" : "00112233445566778899aabb" , "contentTypeUri" : "http://example.com/content-type.json" , "status" : "ACTIVE" , "settings" : { "label" : "New Content Type" , "icons" : [ ] , "visualizations" : [ ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "archive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/archive" } , "unarchive" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/unarchive" } , "content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb" } , "effective-content-type" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/effective-content-type" } , "content-type-schema" : { "href" : "https://api.amplience.net/v2/content/content-types/00112233445566778899aabb/schema" } } } ] } , "_links" : { "self" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233445566778899aabb?page=0&size=20" } , "first" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233445566778899aabb?page=0&size=20" } , "last" : { "href" : "https://api.amplience.net/v2/content/content-type/00112233445566778899aabb?page=0&size=20" } } , "page" : { "size" : 20 , "totalElements" : 1 , "totalPages" : 1 , "number" : 0 } }