younifyd
Menu

Assign Content Type To Content Repository

Assign Content Type to Content Repository

POST/content-repositories/{contentRepositoryId}/content-types

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Assign Content Type To Content Repository action (under Content Repositories).
  3. Fill in the fields below, then reference the result from later steps as {{assignContentTypeToContentRepository.response.data}}.

Request

Path parameters

contentRepositoryIdstringrequired

Content Repository ID

Request body

Enter the body as JSON in the step's Body field.

contentTypeIdstringrequired

Content Type ID

json
{
  "contentTypeId": "00112233445566778899aabb"
}

Response

Returns 201 with an object. Read it in later steps with {{assignContentTypeToContentRepository.response.data.<field>}}.

idstring

ID

namestring

Name

labelstring

Name

statusstring

Status (defaults to ACTIVE)

One ofACTIVEDELETED

featuresarray<string>

Features

typestring

Repository Type

One ofCONTENT

contentTypesarray<object>

Content types

hubContentTypeIdstring

Content type Id

contentTypeUristring

Content type URI

itemLocalesarray<string>

Locales

_linksobject

Resource HAL links

selfany
content-repositoryany
updateany
deleteany
hubany
create-content-itemany
search-content-itemsany
facet-content-itemsany
content-itemsany
shareany
assign-content-typeany
unassign-content-typeany
foldersany
create-folderany
featuresany
update-content-itemsany
set-item-localesany
join-localization-groupany
localization-group-localesany
json
{
  "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": null,
    "content-repository": null,
    "update": null,
    "delete": null,
    "hub": null,
    "create-content-item": null,
    "search-content-items": null,
    "facet-content-items": null,
    "content-items": null,
    "share": null,
    "assign-content-type": null,
    "unassign-content-type": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.