HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


Note

The Optimizely Content Management API is only available for Optimizely Content Management System (CMS) version 12 and _not_ version 11. Optimizely decided not to back-port this package.

The **Optimizely Content Management API **adds REST endpoints for basic content management operations such as:

  • Create content objects

  • Modify existing content objects

  • Delete content objects

  • Get draft content objects

  • Move content objects

The REST API is useful for pushing external content to Optimizely without having to deploy custom integration code to the Optimizely Content Management System (CMS).

See also [Content Management API reference](🔗) for the REST API service layer.

## Create

Creates a content object of the desired type under a parent. The endpoint also can be used to create a new language branch for existing content.

Column Title
Column Title
POST/api/episerver/v3.0/contentmanagement

## CreateOrUpdate

If the content already exists, then the endpoint updates the content object. If it does not exist, a new content object is created. This endpoint cannot be used to update the content hierarchy.

Column Title
Column Title
Column Title
PUT/api/episerver/v3.0/contentmanagement/{contentGuid}## Delete

Moves the content object to the trash bin or permanently deletes it.

Column Title
Column Title
DELETE/api/episerver/v3.0/contentmanagement/{contentGuid}
DELETE/api/episerver/v3.0/contentmanagement/{contentReference}

## Get

Returns the primary draft or latest published version of a content object.

Column Title
Column Title
GET/api/episerver/v3.0/contentmanagement/{contentGuid}
GET/api/episerver/v3.0/contentmanagement/{contentReference}

## Move

Moves the content object to become a child of the target ID.

Column Title
Column Title
POST/api/episerver/v3.0/contentmanagement/{contentGuid}/move
POST/api/episerver/v3.0/contentmanagement/{contentReference}/move

## Update

Update primary draft or latest version of a content object. This endpoint is ideal for changing a part of content, especially content status (for example, make it published) if needed. This endpoint cannot be used to update the content hierarchy.

Column Title
Column Title
PATCH/api/episerver/v3.0/contentmanagement/{contentGuid}
PATCH/api/episerver/v3.0/contentmanagement/{contentReference}