cURL
curl --request PATCH \ --url https://api.example.com/v1/customers/{customer_id}/tasks/{id}/decline \ --header 'Authorization: Bearer <token>'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "title": "<string>", "category": "sign", "description": "<string>", "is_urgent": true, "status": "pending", "weight": 123, "performed_weight": 123, "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "assignees": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "pending", "weight": 123, "task_completed": true, "assigned_at": "2023-11-07T05:31:56Z" } ], "created_at": "2023-11-07T05:31:56Z", "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "metadata": { "logs": [ {} ], "actions": {} } }
Decline a task
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Task declined successfully
sign
approve
update
delete
pending
in_progress
completed
canceled
declined
Show child attributes