curl --request PUT \
--url https://api.example.com/api/projects/{projectId}/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decisionsApprovalMode": "require_one_per_team",
"decisionsApprovalGroups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "v1",
"createdAt": "<string>",
"updatedAt": "<string>",
"key": "<string>",
"protected": true,
"deletedAt": "<string>",
"decisionsApprovalMode": "require_one_per_team",
"decisionsApprovalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}Configure the approval workflow settings for decisions within the project.
curl --request PUT \
--url https://api.example.com/api/projects/{projectId}/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decisionsApprovalMode": "require_one_per_team",
"decisionsApprovalGroups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "v1",
"createdAt": "<string>",
"updatedAt": "<string>",
"key": "<string>",
"protected": true,
"deletedAt": "<string>",
"decisionsApprovalMode": "require_one_per_team",
"decisionsApprovalGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}Personal access token is obtained through your profile
Unique identifier of the project
Approval mode for decisions (require_one_per_team, none_create_request, require_any, none)
require_one_per_team, none_create_request, require_any, none, Array of group IDs required for decision approvals
Updated project with approval settings
Updated project with approval settings
Unique identifier of the project
Name of the project
Organisation ID the project belongs to
Project version (v1 or v2)
v1, v2 Timestamp when the project was created
Timestamp when the project was last updated
Unique key identifier for the project
Whether the project is protected from deletion
Timestamp when the project was soft deleted
Approval mode for decisions
require_one_per_team, none_create_request, require_any, none, Groups required for decision approvals
Show child attributes
Was this page helpful?