Assign Policy to Watches

Assigns an existing policy to one or more watches. Each watch name in the request is processed independently — the response reports the result for each watch separately. If a watch does not exist or the policy is already assigned, the response indicates the status per watch rather than failing the entire request.

Requires the "Manage Watches" role to be set on the User or Group level.

Note: This endpoint does not support the projectKey query parameter. The policy is looked up by name across all scopes.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The name of the policy to assign.

Body Params

Request body containing the list of watch names to assign the policy to.

watches
array of strings
required

List of watch names to assign the policy to. Each watch is processed independently.

watches*
Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json