Content repositories
Base URL: https://api.amplience.net/v2/content
Authorization and status codes
For authorization and status codes see the API Reference overview.
Content repositoriesLink copied!
| Method | Endpoint | Summary |
|---|---|---|
GET | /content-repositories/{contentRepositoryId} | Get content repository |
PATCH | /content-repositories/{contentRepositoryId} | Update content repository |
GET | /content-repositories/{contentRepositoryId}/content-items | List content items |
POST | /content-repositories/{contentRepositoryId}/content-types | Assign content type to content repository |
DELETE | /content-repositories/{contentRepositoryId}/content-types/{contentTypeId} | Remove content type from content repository |
POST | /content-repositories/{contentRepositoryId}/features | Assign a feature |
DELETE | /content-repositories/{contentRepositoryId}/features | Remove a feature |
POST | /content-repositories/{contentRepositoryId}/share | Share a content repository |
POST | /hubs/{hubId}/content-repositories | Create content repository |
GET | /hubs/{hubId}/content-repositories | List content repositories |
GET | /hubs/{hubId}/content-repositories/search/findByFeaturesContaining | Find by feature |
Content repository response linksLink copied!
Most content repository 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 repository response looks like this:
Which links you'll actually see
The exact set of links returned can vary slightly by content repository state. Endpoints that return a partial or list representation may include a smaller subset of these links rather than the full set shown above.
Get content repositoryLink copied!
GET /content-repositories/{contentRepositoryId}
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}
Get a new Content Repository
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
Responses
| Status | Description |
|---|---|
| 200 | Content Repository |
Response Example (200)
Abbreviated response
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.
Update content repositoryLink copied!
PATCH /content-repositories/{contentRepositoryId}
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}
Update the Content Repository
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Name | |
label | string | Name |
Request example
Responses
| Status | Description |
|---|---|
| 200 | Updated Content Repository |
Response Example (200)
Abbreviated response
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.
List content itemsLink copied!
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 |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
projection | query | string (projection) | "basic" - omits the body property from the return Content Items Example: basic | |
page | query | integer | Page number Example: 0 | |
folderId | query | string | Folder ID Example: 00112233445566778899aabb | |
status | query | string | Status | |
excludeHierarchicalChildren | query | boolean | Exclude hierarchical child items Example: True | |
size | query | integer | Page size Example: 20 | |
sort | query | string | Sort paramter Example: createdDate,asc |
Responses
| Status | Description |
|---|---|
| 200 | Content Repository |
Response Example (200)
Abbreviated response
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.
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 |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
contentTypeId | string | ✓ | Content Type ID |
Request example
Responses
| Status | Description |
|---|---|
| 201 | Updated Content Repository |
Response Example (201)
Abbreviated response
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 |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
contentTypeId | path | string | ✓ | Content Type ID Example: 00112233445566778899aabb |
Responses
| Status | Description |
|---|---|
| 200 | Updated Content Repository |
Response Example (200)
Abbreviated response
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.
Assign a featureLink copied!
POST /content-repositories/{contentRepositoryId}/features
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/features
Assign a feature to a Content Repository
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
feature | query | string | ✓ | Feature Example: slots |
Responses
| Status | Description |
|---|---|
| 204 | No Content Response |
Remove a featureLink copied!
DELETE /content-repositories/{contentRepositoryId}/features
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/features
Remove a feature from a Content Repository
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
feature | query | string | ✓ | Feature Example: slots |
Responses
| Status | Description |
|---|---|
| 204 | No Content Response |
Share a content repositoryLink copied!
POST /content-repositories/{contentRepositoryId}/share
https://api.amplience.net/v2/content/content-repositories/{contentRepositoryId}/share
Share a Content Repository with another user
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contentRepositoryId | path | string | ✓ | Content Repository ID Example: 00112233445566778899aabb |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
user | string | ✓ | User ID |
additionalPermissions | array | ✓ | Additional Permissions |
Request example
Responses
| Status | Description |
|---|---|
| 204 | No Content Response |
Create content repositoryLink copied!
POST /hubs/{hubId}/content-repositories
https://api.amplience.net/v2/content/hubs/{hubId}/content-repositories
Create a new Content Repository
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
hubId | path | string | ✓ | Hub ID Example: 00112233445566778899aabb |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✓ | Name |
label | string | ✓ | Name |
Request example
Responses
| Status | Description |
|---|---|
| 201 | Created Content Repository |
Response Example (201)
Abbreviated response
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.
List content repositoriesLink copied!
GET /hubs/{hubId}/content-repositories
https://api.amplience.net/v2/content/hubs/{hubId}/content-repositories
List Content Repositories for a Hub
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
hubId | path | string | ✓ | Hub ID Example: 00112233445566778899aabb |
page | query | integer | Page number Example: 0 | |
size | query | integer | Page size Example: 20 | |
sort | query | string | Sort paramter Example: label,asc |
Responses
| Status | Description |
|---|---|
| 200 | Paginated Content Repository |
Response Example (200)
Abbreviated response
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.
Find by featureLink copied!
GET /hubs/{hubId}/content-repositories/search/findByFeaturesContaining
https://api.amplience.net/v2/content/hubs/{hubId}/content-repositories/search/findByFeaturesContaining
Find all the Content Repositories that contain a feature
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
hubId | path | string | ✓ | Hub ID Example: 00112233445566778899aabb |
feature | query | string | ✓ | Feature Example: slots |
page | query | integer | Page number Example: 0 | |
size | query | integer | Page size Example: 20 | |
sort | query | string | Sort paramter Example: label,asc |
Responses
| Status | Description |
|---|---|
| 200 | Paginated Content Repository |
Response Example (200)
Abbreviated response
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.