curl --request PATCH \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
}
]
}
'{
"versionId": "<string>"
}Updates content for a non-published, non-pending version. Published and pending versions are immutable.
curl --request PATCH \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
}
]
}
'{
"versionId": "<string>"
}API key for authentication
Policy ID
"pol_abc123def456"
Policy version ID
"pv_abc123def456"
Update content for a policy version
Content of the policy version as TipTap JSON (array of nodes)
[
{
"type": "heading",
"attrs": { "level": 2, "textAlign": null },
"content": [{ "type": "text", "text": "Purpose" }]
}
]Version content updated
Was this page helpful?