Manage appeal
Note: Approve/reject still not supported from the CLI currently.
Appeals can be approved/rejected in the following ways:
- Using
guardian appeal approve/reject
CLI command - Calling to
POST /api/v1beta1/appeals/:id/approvals/:approval_step_name/
API
- CLI
- HTTP
Approve an Appeal
$ guardian appeal approve --id={{appeal_id}} --step={{approval_step_name}}
Reject an Appeal
$ guardian appeal reject --id={{appeal_id}} --step={{approval_step_name}} --reason={{rejection_message}}
Approve an Appeal
$ curl --request POST '{{HOST}}/api/v1beta1/appeals/{{appeal_id}}/approvals/{{approval_step_name}}' \
--header 'X-Auth-Email: user@example.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "approve"
}'
Reject an Appeal
$ curl --request POST '{{HOST}}/api/v1beta1/appeals/{{appeal_id}}/approvals/{{approval_step_name}}' \
--header 'X-Auth-Email: user@example.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "reject",
"reason": "{{rejection_message}}"
}'