curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId}/submit-for-approval \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'{
"versionId": "<string>",
"version": 123
}Submits a version for approval by setting pendingVersionId and updating policy status.
curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId}/submit-for-approval \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'{
"versionId": "<string>",
"version": 123
}API key for authentication
Policy ID
"pol_abc123def456"
Policy version ID
"pv_abc123def456"
Submit a policy version for approval
Member ID of the approver
"mem_abc123def456"
Was this page helpful?