Skip to main content
POST
/
v1
/
contents
/
{id}
/
publish
Mark a content as published
curl --request POST \
  --url https://api.example.com/v1/contents/{id}/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "assignedTo": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>",
    "profileImageUrl": "<string>"
  },
  "contentScore": 123,
  "contentStatus": {
    "color": "<string>",
    "id": "<string>",
    "isReadOnly": true,
    "label": "<string>",
    "position": 123
  },
  "contentUpdatedAt": "<string>",
  "createdAt": "<string>",
  "dueDate": "<string>",
  "folder": {
    "id": "<string>",
    "name": "<string>"
  },
  "id": "<string>",
  "page": {
    "id": "<string>",
    "lastStatusCode": 123,
    "url": "<string>"
  },
  "publishedAt": "<string>",
  "title": "<string>",
  "type": "DRAFT",
  "updatedAt": "<string>",
  "wordsCount": 123,
  "contentUpdatedBy": {
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "html": "<string>",
  "isStarted": true,
  "lastGeneration": {
    "id": "<string>",
    "status": "queued",
    "type": "optimize"
  },
  "metaDescription": "<string>",
  "publishedBy": {
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "version": 123
}

Documentation Index

Fetch the complete documentation index at: https://developers.semji.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_. Generate one in Settings > API Keys.

Path Parameters

id
string
required

Content ID.

Body

application/json
url
string<uri>

Target publication URL. Defaults to the associated page URL.

Response

200 - application/json

Default Response

assignedTo
object
required

User assigned to this content.

contentScore
integer | null
required

This score out of 100 measures the SEO quality of a content.

contentStatus
object
required

Workflow status assigned to this content.

contentUpdatedAt
string | null
required

ISO 8601 date of the last content body change.

createdAt
string
required

ISO 8601 creation date.

dueDate
string | null
required

Due date (ISO 8601).

folder
object
required

Folder this content is organized in.

id
string
required

Unique identifier of the content.

page
object
required

Page this content belongs to.

publishedAt
string | null
required

Publication date (ISO 8601).

title
string | null
required

Title of the content.

type
enum<string>
required

Content type.

Available options:
DRAFT,
PUBLISHED,
ORIGINAL
updatedAt
string | null
required

ISO 8601 last update date.

wordsCount
integer | null
required

Number of words in the content.

contentUpdatedBy
object
required

User who last edited the content body.

html
string | null
required

HTML body of the content.

isStarted
boolean
required

Whether the content has any HTML body.

lastGeneration
object
required

Last Atomic Content generation.

metaDescription
string | null
required

Meta description for SEO.

publishedBy
object
required

User who published this content.

version
integer
required

Optimistic locking version.