v2
latestOpenAPI 3.0.02026-07-31172752.6 KBpolicies
Replace a policy's application list
Replaces the set of applications attached to a policy. The provided list fully overwrites the policy's current applications (it is not additive).
put/api/v1/policies/{policy_id}/applications
Path parameters
policy_idstring required
Headers
Idempotency-Keystring
Optional key (1–255 chars) for safely retrying a request. Reusing the same key for the same request returns 409 Conflict and is not processed again — this confirms the request was already received. Keys are retained for 14 days.
Request body
Example request
{
"application_ids": [
"7488a646-e31f-11e4-aace-600308960670"
],
"elevated": false
}Response
Policy
Example response
{
"application_ids": [
"8599b757-f42a-22f5-bbdf-711419071781"
],
"default_policy": false,
"elevated": false,
"id": "7488a646-e31f-11e4-aace-600308960670",
"inserted_at": "2023-01-01T00:00:00Z",
"lock_version": 1,
"title": "Engineering manager approval",
"updated_at": "2023-01-01T00:00:00Z"
}