POST
/
v1
/
businesses
/
{businessId}
/
tasks
/
{taskId}
/
mark-user-completed

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to update

taskId
string
required

The UUID of the task to update

Response

200 - application/json
id
string
required

Unique ID for the task

user_response_type
enum<string>
required

User response type for the task

Available options:
FREE_RESPONSE,
UPLOAD_DOCUMENT
title
string
required

Title for the task

question
string
required

The question asked to the business owner

status
enum<string>
required

The status of the task

Available options:
TODO,
USER_MARKED_COMPLETED,
COMPLETED,
ARCHIVED,
DELETED
created_at
string
required

Timestamp of when the task was created

updated_at
string
required

Timestamp of when the task was last updated

user_response
string | null

The business owner's response to the task

transaction_id
string | null

The transaction the task is related to, if any.

user_marked_completed_at
string | null

Timestamp of when the business owner marked the task as completed.

completed_at
string | null

Timestamp of when Layer marked the task as completed.

archived_at
string | null

Timestamp of when the task was archived.