SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
Tasks

Decline work with a reason of 3 to 500 characters. When it came from a group or unit, someone else is picked. Only the person the work is given to can answer: use a connection of that member, or a key that member created. 403 not_assignee otherwise, 409 acceptance_not_pending when it was already answered

POSThttps://app.softsolz.uk/api/v1/services/tasks/assignments/{id}/decline

Recent Requests

Kept only in this browser
TimeStatusTook
Send a request with Try it to see it here.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: Bearer sk_live_... (or sk_test_... for sandbox). A login token will not work here.

Body Params

reasonstringrequired

Why the work is declined.

Response

Response Body

assignmentobjectThe declined work.
reassigned_toobject | nullWho was picked instead, or null.

Request

curl --request POST \
--url https://app.softsolz.uk/api/v1/services/tasks/assignments/{id}/decline \
--header 'Authorization: Bearer sk_live_your_key' \
--header 'Content-Type: application/json' \
--data '{
"reason": "I am away that week."
}'

Credentials

Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.

Response · 200

{
"data": {
"assignment": {
"id": 1,
"status": "cancelled",
"acceptance": "declined",
"decline_reason": "your-decline-reason"
},
"reassigned_to": {
"user_id": 1,
"name": "your-name"
}
}
}