Skip to main content
POST
/
v2
/
PolicyUpdate
Update a policy
curl --request POST \
  --url http://localhost:3000/v2/PolicyUpdate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "policyid": 123,
  "policyname": "<string>",
  "policydesc": "<string>",
  "policy": {},
  "request_metadata": {}
}
'
{
  "status": "ok"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
policyid
integer
required

ID of the policy to update

policyname
string

New name of the policy

policydesc
string

New description of the policy

policy
object

Updated policy definition

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Policy updated successfully

status
string
Example:

"ok"