Skip to content

Publish Content

Publishes an existing content entry. After this call the content becomes visible to read-token consumers (the default behavior of GET endpoints). Until then, the content is only reachable in preview mode (with the PREVIEW_ token prefix).

Endpoint

shell
curl -X POST https://api.contentisland.net/api/1.0/content/:id/publish \
--header 'Authorization: Bearer YOUR_WRITE_TOKEN'

Path Parameters

The :id segment in the URL is required and identifies which content entry to publish.

NameTypeRequiredDescription
idstringyesThe ID of the content entry to publish. You can find it in your project’s Content tab, either in the list or in the content details.

This endpoint does not accept a request body.

Example

Replace :id with the real content ID:

shell
curl -X POST https://api.contentisland.net/api/1.0/content/660f5b8a3a1c2d4e7f8b9012/publish \
--header 'Authorization: Bearer YOUR_WRITE_TOKEN'

Response

On success the endpoint returns 204 No Content with an empty body.

Status Codes

CodeDescription
204The content was published successfully.
401Unauthorized. The token is missing, malformed or expired.
403Forbidden. The token does not have write permissions — use a Write Token.
404No content with the supplied CONTENT_ID was found in the project.
500Internal server error. An error occurred while processing the request.