Skip to content
Navigation

Delete a task

DELETE
https://api.nicer.travel/crm/tasks/{taskId}

Deletes a task for good, taking it off its assignee's list and its day's reminders, and publishes crm.task-changed.v1 with action DELETED. Answers the task's id with deleted set to true; deleting it again answers 404. To close a task that was done, mark it completed with PUT /crm/tasks/{taskId} instead. Errors: 404 ERROR_ITEM_NOT_FOUND for a task there is not, or about a traveler or trip the caller may not see.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • taskId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Returns

200

OK

JSON
  • deleted
    boolean
    required

    Always true: the record no longer exists.

  • id
    string
    required

    The id of the record deleted.

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close