Skip to content

Apply project indicator to controls

POST
/api/v2/projects/{projectId}/indicators/{indicatorId}/applications
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

projectId
required
string

Project ID, UUID (urn:uuid optional), or slug:my-project

indicatorId
required
string

Indicator UUID (urn:uuid optional) or slug:my-indicator

Indicator application request

Media type application/json
object
appliedPolicyControlId

Merged with the plural field

integer
appliedPolicyControlIds

Controls to apply to

Array<integer>
status

Defaults to active

string
Allowed values: active disabled archived

Created indicator applications

Media type application/json

The indicator applications created by applying an indicator to one or more controls

object
applications
Array<object>

An indicator application reduced to its identity and status

object
applicationUuid

Urn:uuid form

string
appliedPolicyControlId
integer
createdAt
string format: date-time
id
integer
indicatorId

Urn:uuid form

string
lastEvaluatedAt
string format: date-time
status
string
Allowed values: active disabled archived
updatedAt
string format: date-time
Example
{
"applications": [
{
"status": "active"
}
]
}

Bad request - Invalid request body or control reference

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Forbidden - No project access or insufficient permissions

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Indicator or control not found

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Indicator already applied to the control

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Internal server error

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}