POST /v1/policies/{id}/approve
POST/v1/policies/{id}/approve
Approve a policy under review
Datamodel
Deze operatie werkt op de entiteit Policy (policy). Alle 28 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
Request body
| Naam | Type | Beschrijving |
|---|
comment | string | |
setActive | boolean | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/policies/{id}/approve \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"comment": "string",
"setActive": false
}'
const result = await cm.policies.post({
"comment": "string",
"setActive": false
});
Antwoordcodes
| HTTP |
Betekenis |
200 |
Default Response |