Skip to main content
PATCH
/
content
/
assets
/
{id}
/
update
Update content asset
curl --request PATCH \
  --url https://ai.wisepilot.app/api/v1/content/assets/{id}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "status": "<string>",
  "primary_keyword": "<string>",
  "journey_stage": "<string>",
  "sections": [
    {
      "id": "<string>",
      "title": "<string>",
      "content": "<string>"
    }
  ]
}
'
{
  "success": true,
  "data": {
    "contentId": "<string>",
    "title": "<string>",
    "assetType": "<string>",
    "status": "<string>",
    "excerpt": "<string>",
    "rawContent": "<string>",
    "primaryKeyword": "<string>",
    "secondaryKeyword": "<string>",
    "seoTitle": "<string>",
    "seoDescription": "<string>",
    "seoContext": {},
    "journeyStage": "<string>",
    "intent": "<string>",
    "optimizationScore": 123,
    "categories": [
      "<string>"
    ],
    "tags": [
      "<string>"
    ],
    "publishDate": "2023-11-07T05:31:56Z",
    "author": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "sections": [
      {
        "id": "<string>",
        "sectionType": "<string>",
        "title": "<string>",
        "content": "<string>",
        "sortOrder": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key prefixed with cr_ (e.g. cr_a1b2c3...)

Path Parameters

id
string
required

Asset content_id

Body

application/json
title
string
status
string
primary_keyword
string
journey_stage
string
sections
object[]

Response

Asset updated

success
boolean
required
data
object