Skip to main content
PUT
/
articles
/
update
Update article
curl --request PUT \
  --url https://api.octaviatech.app/cms/articles/update \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "{{objectId}}",
  "mainTitle": {
    "en": "Hello World (updated)",
    "es": "Hola Mundo (actualizado)"
  },
  "tags": [
    "news",
    "ai",
    "ml"
  ]
}'
{
  "success": true,
  "statusCode": 201,
  "message": "Article updated",
  "data": {
    "id": "{{objectId}}"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
id
string
required
Example:

"{{objectId}}"

mainTitle
object
title2
object
title3
object
slug
string
summary
object
body
object
thumbnail
string<uri>
banner
string<uri>
tags
string[]
category
string[]
subCategory
string[]
author
string
publishDate
string<date-time>
isPublished
boolean
isPrivate
boolean

Response

Updated

The response is of type any.