Apply project indicator to controls
const url = 'https://localhost:10001/api/v2/projects/example/indicators/example/applications';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"appliedPolicyControlId":1,"appliedPolicyControlIds":[1],"status":"active"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:10001/api/v2/projects/example/indicators/example/applications \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "appliedPolicyControlId": 1, "appliedPolicyControlIds": [ 1 ], "status": "active" }'Creates active or disabled applications for a project indicator on one or more applied policy controls
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Indicator UUID (urn:uuid optional) or slug:my-indicator
Request Body
Section titled “Request Body ”Indicator application request
object
Merged with the plural field
Controls to apply to
Defaults to active
Responses
Section titled “ Responses ”Created indicator applications
The indicator applications created by applying an indicator to one or more controls
object
An indicator application reduced to its identity and status
object
Urn:uuid form
Urn:uuid form
Example
{ "applications": [ { "status": "active" } ]}Bad request - Invalid request body or control reference
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No project access or insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Indicator or control not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Indicator already applied to the control
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}