We expose some parts of Approval Path functionality by API.
Authorization
You have to generate an API key in our app.
It is available in the Approval Path global view:
Click “Apps” on the top menu,
Click Approval Path,
Go to the API Keys tab,
Click “Create a new API Key”.
Then add the Authorization header to your HTTP request:
Authorization: Bearer mc96LyRi9nUQySSjKXEf8xfqUZzjS2CYhRK8bWSRRfQi
Approval
ref-id
- In the case of Approval Path for Confluence, this is page id.
List approvals
GET /approvals/{ref-id}
Return example:
Create or get approval
POST /approvals/{ref-id}
Reset approval
Allows the user to reset ongoing or finalized approval path on an issue.
POST /approvals/{ref-id}/reset
Body parameterscreateComment
- Default false
. If true
, will generate a comment when the approval path is reset via API. The creator of the API will be specified as the agent.