Approve the version of a draft or plan you read, as the key's owner: a draft needs drafts:approve and a plan needs actions:approve. The approval covers that version's text only and its history reads "via API key". Send revisionNo as the version you read; a newer one is 409 revision_conflict carrying it. It never decides a change the assistant proposed: that address answers 403 person_required, whatever the key's scopes.
Security
bearerKey
- Mock serverhttps://docs.hrcledger.com/_mock/docs/openapi/api/v1/reviews/{artifactId}/approve
- https://hrcledger.comhttps://hrcledger.com/api/v1/reviews/{artifactId}/approve
curl -i -X POST \
'https://docs.hrcledger.com/_mock/docs/openapi/api/v1/reviews/{artifactId}/approve' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"revisionNo": 3
}'Response
{ "ok": true, "data": { "id": "Drf8pQ2rT4vW6xY9zA1b", "kind": "draft", "url": "https://hrcledger.com/drafts/items/Drf8pQ2rT4vW6xY9zA1b", "revisionNo": 3 } }