Delete an assignment

DELETE /api/v1/assignments/{assignment_id}

Permanently deletes an assignment. This cannot be undone. Attempts to delete assignments with jobs that have invoices paid in full will fail.

application/json

Body

  • assignment string Required

    The ID of the desired assigment.

Responses

  • 200 application/json

    A successfully deleted assignment. Otherwise, this call returns an error, such as if the assignment has already been deleted.

    Hide response attributes Show response attributes object
DELETE /api/v1/assignments/{assignment_id}
curl \
 -X DELETE https://api.1099policy.com/api/v1/assignments/{assignment_id} \
 -H "Content-Type: application/json" \
 -d '{"assignment":"an_G5biPgc5Hc"}'
Request example
{
  "assignment": "an_G5biPgc5Hc"
}
Response examples (200)
{
  "id": "an_G5biPgc5Hc",
  "object": "assignment",
  "deleted": true,
  "deleted_at": "(utcnow)"
}