DELETE
/
{version}
/
users
/
{user}
/
tasks
/
detach
curl --request DELETE \
  --url https://api.perscom.io/{version}/users/{user}/tasks/detach \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resources": [
    {}
  ]
}'
{
  "detached": [
    123
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

version
enum<string>
default:v2
required

The API version to use.

Available options:
v1,
v2
user
integer
required

Query Parameters

include
enum<string>
Available options:
assignment,
attachments

Body

application/json
resources
object[]

A key-value pairs, where keys are relation resource IDs and values are objects representing pivot fields

Response

200
application/json
OK
detached
integer[]