Create project-scoped indicator
const url = 'https://localhost:10001/api/v2/projects/example/indicators';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"criteria":[{}],"declarationProfile":{"emitOn":"pass","statementTemplate":"example","titleTemplate":"example"},"description":"example","extractionRules":{},"name":"example","parameters":{},"provider":"example","slug":"example","tags":["example"],"triggerType":"event","type":"custom"}'};
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 \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "criteria": [ {} ], "declarationProfile": { "emitOn": "pass", "statementTemplate": "example", "titleTemplate": "example" }, "description": "example", "extractionRules": {}, "name": "example", "parameters": {}, "provider": "example", "slug": "example", "tags": [ "example" ], "triggerType": "event", "type": "custom" }'Creates an immutable indicator template owned by a project and returns the created template
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Request Body
Section titled “Request Body ”Project indicator creation request
object
object
object
When to emit a declaration
object
object
Slugified; derived from name
Defaults to event
Defaults to custom, the only accepted value
Responses
Section titled “ Responses ”Created project indicator template
A project-scoped indicator template, with a count of the controls it is applied to
object
object
object
When to emit a declaration
object
Urn:uuid form
object
Example
{ "declarationProfile": { "emitOn": "pass" }, "triggerType": "event", "type": "custom"}Bad request - Invalid request body or indicator fields
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"}Project 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 with the same slug already exists
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"}