Skip to main content
PATCH
/
v1
/
tasks
/
{id}
/
unmark_completed
Unmark a task as completed
curl --request PATCH \
  --url https://api.paytsoftware.com/v1/tasks/{id}/unmark_completed \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'administration_id=<string>' \
  --data 'fields={}'
{
  "assigned_to_user": {
    "id": "<string>",
    "name": "<string>",
    "email_address": "<string>"
  },
  "administration_id": "<string>",
  "credit_case_id": "<string>",
  "debtor_id": "<string>",
  "id": "<string>",
  "invoice_id": "<string>",
  "description": "<string>",
  "subject": "<string>",
  "expiry_date": "<string>",
  "completed_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "comments": [
    {
      "id": "<string>",
      "content": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

OAuth2 access token or static API token. See Authorization for how to obtain one.

Path Parameters

id
string
required

Task identifier

Body

application/x-www-form-urlencoded
administration_id
string
required

Administration identifier

fields
object

JSON object defining fields to receive (e.g {"only": ["field1", {"field2": ["field3"]}]})

Response

Task

CustomerApi_V1_TaskEntity model

assigned_to_user
object
required

User the task is assigned to

administration_id
string
required

Owning administration identifier

credit_case_id
string
required

Associated credit_case identifier

debtor_id
string
required

Associated debtor identifier

id
string
required

Unique identifier

invoice_id
string
required

Associated invoice identifier

description
string
required

Description of the task

subject
string
required

Subject of the task

expiry_date
string
required

Expiry date of the task

completed_at
string<date-time>
required

Timestamp at which the task was completed

updated_at
string<date-time>
required

Timestamp at which the task was last updated

created_at
string<date-time>
required

Timestamp at which the task was created

comments
object[]

Comments (request with the 'fields' parameter)

Last modified on June 12, 2026