Skip to main content
PATCH
/
v1
/
blog
/
articles
/
{id}
Update blog article
curl --request PATCH \
  --url https://api.yalg.ai/v1/blog/articles/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "How founder stories become useful content",
  "keywordId": "018f9f48-08ab-71c2-887d-bbca79017364"
}
'
{
  "id": "018f9f54-22d4-783a-a3d9-8bcdf1717032",
  "title": "How founder stories become useful content",
  "status": "draft",
  "markdown": "# How founder stories become useful content",
  "createdAt": "2026-06-20T17:24:39.000Z",
  "updatedAt": "2026-06-20T17:24:39.000Z"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Path Parameters

id
string
required

Resource identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

Body

application/json
topic
string

Updated article topic or working title.

Required string length: 1 - 500
Example:

"How founder stories become useful content"

angle
string

Updated editorial angle, positioning, or constraints for the article.

Maximum string length: 2000
Example:

"Write for B2B founders who publish on LinkedIn."

targetKeywordIds
string<uuid>[]

Replacement SEO keyword identifiers to target in the article.

Maximum array length: 50
Example:
["018f9f48-08ab-71c2-887d-bbca79017364"]
fuelAnecdoteIds
string<uuid>[]

Replacement blog fuel anecdote identifiers to use as source material.

Maximum array length: 50
Example:
["018f9f53-7a79-703c-993f-588d176bf5a6"]
language
string

Updated output language code.

Maximum string length: 10
Example:

"en"

articleMarkdown
string

Editable Markdown body for the article draft or final article.

Example:

"# How founder stories become useful content"

Response

Successful response. Update blog article.

Blog article generation job.

id
string<uuid>

Article identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

title
string
Example:

"How to make stories useful"

status
string
Example:

"draft"

markdown
string
createdAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

updatedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"