curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"sourceVersionId": "pv_abc123def456",
"changelog": "Initial draft for quarterly updates"
}
'{
"versionId": "<string>",
"version": 123
}Creates a new draft version based on the current published version (or a specified source version).
curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"sourceVersionId": "pv_abc123def456",
"changelog": "Initial draft for quarterly updates"
}
'{
"versionId": "<string>",
"version": 123
}API key for authentication
Policy ID
"pol_abc123def456"
Create a new policy version draft
Was this page helpful?