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
}
]
}
}Update an existing content asset. Runs surgical rewrite and eval persist on section content updates. minRole: editor
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
}
]
}
}API key prefixed with cr_ (e.g. cr_a1b2c3...)
Asset content_id