Skip to content

Delete a task

DELETE/v1/tasks/{taskId}

US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com

Deletes a task. The creator or an admin can delete one. Needs write:tasks.

Request example

Terminal window
curl --request DELETE \
--url 'https://public-api.sessionboard.com/v1/tasks/{taskId}' \
--header 'x-access-token: <api-token>'

Try it

Authorization

Your token stays in this page. It is sent only to the region above and is never saved; it is gone when you leave or reload the page.

Path parameters
DELETE

Authorizations

  • x-access-tokenstringheader

    Organization API token. Generate from Organization Settings → API Tokens.

  • AuthorizationBearer <token>headeror

    OAuth 2.1 access token. Obtained via the OAuth PKCE flow at /oauth/token.

Send one of these. See Authentication.

Path parameters

  • taskIdstring<uuid>pathrequired

    The task's id.

Responses

200application/json

Deleted

  • dataobject
    Show child attributes
    • idstring
    • deletedboolean

401

Unauthorized

403application/json

  • TASKS_PLATFORM_ONLY: the organization uses a self-serve Sessionboard product; Tasks are part of Sessionboard Platform.
  • SCOPE_REQUIRED: the key lacks read:tasks (reads) or write:tasks (writes). Legacy keys with no scopes can read but not write.
  • ORG_WIDE_TOKEN_REQUIRED: the key is restricted to particular events; Tasks need a key without an event restriction.
  • FORBIDDEN: the key's user can read this task but not change it (only the assignee, the creator, a follower or an admin can; only the creator or an admin can delete), or cannot use Tasks (reviewers and portal users).
  • errorstring

    VALIDATION_ERROR, USER_REQUIRED, FORBIDDEN, NOT_FOUND, TASKS_PLATFORM_ONLY, SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED or INTERNAL_ERROR.

  • messagestring

404

No such task, or the key's user cannot read it (NOT_FOUND).

Response examples

{
"data": {
"id": "7d1c2b8e-4f0a-4c3e-9b1d-2a6f8e0c41a1",
"deleted": true
}
}

Get release notes by email

A short digest on the days something new goes live — each change with a link to its note in the release notes. No marketing, and one click to stop.

Company email addresses only. We’ll send one email to confirm it’s you. Already use Sessionboard? You can also turn this on under Community → What’s new.