Skip to main content
PATCH
/
v0
/
business
/
{business_id}
/
task
/
{task_id}
Update a Task for a Business
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/task/{task_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Please upload the bank statement",
  "status": "completed"
}
'
{
  "data": {
    "business_id": "<string>",
    "status": "pending",
    "task_type": "reconnect_account",
    "id": "<string>",
    "description": "ABC Business Checking",
    "first_requested_at": "2023-11-07T05:31:56Z",
    "last_requested_at": "2023-11-07T05:31:56Z",
    "month": "2025-01"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

task_id
string<tsk_string>
required

The id of the task

Example:

"tsk_WQMDNUHpBThYSNh4AprDBo"

Body

application/json
description
string | null

The new task description

Minimum string length: 1
Example:

"Please upload the bank statement"

status
enum<string> | null

The new status for the task

Available options:
pending,
completed
Example:

"completed"

Response

Successful Response

data
TaskPublic · object
required