projqoDevelopers

Reference

Attachments

Files on a task or on a comment: upload (multipart), list, download and delete.

List a task's files

GET/orgs/{org}/tasks/{task}/attachments

Scope: tasks:read

The task's files, newest first: uploaded to the task, and in comments the token's person can see (with comment_id). Read a file's bytes at its content_url.

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

Query parameters

  • limitinteger

    How many items a page holds, 1 to 200.

    from 1 to 200; default 50

  • cursorstring

    The next_cursor of the previous page; leave it out for the first page.

    at most 1000 characters

  • countstring

    true adds total, the number of items in the whole list.

    one of: true, false

  • fieldsstring

    Only these fields, comma-separated: id, name, mime, kind, size, created_at, added_by, via, comment_id, content_url, can. id always comes; the fields not asked for are left out, required or not.

Answer

200 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • itemsarray of AttachmentRequired
    Show 11 fields
    • idstring (uuid)Required
    • namestringRequired
    • mimestringRequired

      The type projqo stored it as (from its name and bytes).

    • kindstringRequired

      one of: image, document, video, other

    • sizeintegerRequired

      In bytes.

    • created_atstring (date-time)Required

      UTC, with Z.

    • added_byPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
    • viastringRequired

      How it came: upload, comment, description, cover or create.

    • comment_idstring (uuid) or nullRequired

      The comment it sits in; such a file is removed by editing the comment.

    • content_urlstringRequired

      Where its bytes are read (this API, with the token).

    • canobjectRequired
      Show 1 field
      • deletebooleanRequired
  • next_cursorstring or nullRequired

    Pass as cursor to read the next page; null on the last page.

  • totalinteger

    The number of items in the whole list, with count=true.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/attachments" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "items": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "name": "screenshot.png",
      "mime": "image/png",
      "kind": "image",
      "size": 48213,
      "created_at": "2026-12-01T10:20:00.000Z",
      "added_by": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "via": "upload",
      "comment_id": null,
      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
      "can": {
        "delete": true
      }
    }
  ],
  "next_cursor": null
}

Upload files to a task

POST/orgs/{org}/tasks/{task}/attachments

Scope: tasks:write

Uploads 1 to 10 files to the task's Attachments, as multipart/form-data. It needs "Add files" in the project, as in the app (a Viewer adds files too). Each file must be within the organisation's file size limit (413 too_large names it); projqo decides each file's type from its name and first bytes and refuses kinds it doesn't keep. One refused file refuses the whole call. The files are streamed to the file store as they arrive: the organisation's file size limit and its storage limit are checked as the bytes come, and the call answers 413 too_large as soon as one is passed (the rest of the body isn't read, and nothing of the call is kept).

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

Headers

  • Idempotency-Keystring

    A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422.

    1 to 200 characters

Files and fields

multipart/form-data with 1 to 10 files, each a part named file (or files) with its file name. Each file must be within the organisation's file size limit.

  • filearray of stringRequired

    1 to 10 files, each as a part named file (or files).

    1 to 10 items

Answer

201 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • itemsarray of AttachmentRequired
    Show 11 fields
    • idstring (uuid)Required
    • namestringRequired
    • mimestringRequired

      The type projqo stored it as (from its name and bytes).

    • kindstringRequired

      one of: image, document, video, other

    • sizeintegerRequired

      In bytes.

    • created_atstring (date-time)Required

      UTC, with Z.

    • added_byPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
    • viastringRequired

      How it came: upload, comment, description, cover or create.

    • comment_idstring (uuid) or nullRequired

      The comment it sits in; such a file is removed by editing the comment.

    • content_urlstringRequired

      Where its bytes are read (this API, with the token).

    • canobjectRequired
      Show 1 field
      • deletebooleanRequired

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 409 archived archived: The item (or its project) is archived, so it can't be changed. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).
    409 answer
    {
      "error": {
        "code": "archived",
        "message": "The item (or its project) is archived, so it can't be changed.",
        "status": 409,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 413 too_large too_large: The body or a file is larger than allowed.
    413 answer
    {
      "error": {
        "code": "too_large",
        "message": "The body or a file is larger than allowed.",
        "status": 413,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 415 unsupported_media_type unsupported_media_type: The body isn't JSON.
    415 answer
    {
      "error": {
        "code": "unsupported_media_type",
        "message": "The body isn't JSON.",
        "status": 415,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 422 idempotency_key_reused idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
    422 answer
    {
      "error": {
        "code": "idempotency_key_reused",
        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
        "status": 422,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/attachments" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -F "file=@report.pdf"

Sample answer 201

201 Created
{
  "items": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "name": "screenshot.png",
      "mime": "image/png",
      "kind": "image",
      "size": 48213,
      "created_at": "2026-12-01T10:20:00.000Z",
      "added_by": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "via": "upload",
      "comment_id": null,
      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
      "can": {
        "delete": true
      }
    }
  ]
}

Upload files into a comment

POST/orgs/{org}/tasks/{task}/comments/{comment}/attachments

Scope: tasks:write

Uploads 1 to 10 files into one of your comments, as multipart/form-data: the files are added at the end of the comment (images as images, other files as file cards), as editing it in the app does. It needs "Add comments" and "Add files" in the project and the right to edit the comment. The files belong to the comment: they are removed by editing it. The files are streamed to the file store as they arrive: the organisation's file size limit and its storage limit are checked as the bytes come, and the call answers 413 too_large as soon as one is passed (the rest of the body isn't read, and nothing of the call is kept).

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

  • commentstring (uuid)Required

    The comment's id.

    The id comes from List a task's comments.

Headers

  • Idempotency-Keystring

    A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422.

    1 to 200 characters

Files and fields

multipart/form-data with 1 to 10 files, each a part named file (or files) with its file name. Each file must be within the organisation's file size limit.

  • filearray of stringRequired

    1 to 10 files, each as a part named file (or files).

    1 to 10 items

Answer

201 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • itemsarray of AttachmentRequired
    Show 11 fields
    • idstring (uuid)Required
    • namestringRequired
    • mimestringRequired

      The type projqo stored it as (from its name and bytes).

    • kindstringRequired

      one of: image, document, video, other

    • sizeintegerRequired

      In bytes.

    • created_atstring (date-time)Required

      UTC, with Z.

    • added_byPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
    • viastringRequired

      How it came: upload, comment, description, cover or create.

    • comment_idstring (uuid) or nullRequired

      The comment it sits in; such a file is removed by editing the comment.

    • content_urlstringRequired

      Where its bytes are read (this API, with the token).

    • canobjectRequired
      Show 1 field
      • deletebooleanRequired

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 409 archived archived: The item (or its project) is archived, so it can't be changed. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).
    409 answer
    {
      "error": {
        "code": "archived",
        "message": "The item (or its project) is archived, so it can't be changed.",
        "status": 409,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 413 too_large too_large: The body or a file is larger than allowed.
    413 answer
    {
      "error": {
        "code": "too_large",
        "message": "The body or a file is larger than allowed.",
        "status": 413,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 415 unsupported_media_type unsupported_media_type: The body isn't JSON.
    415 answer
    {
      "error": {
        "code": "unsupported_media_type",
        "message": "The body isn't JSON.",
        "status": 415,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 422 idempotency_key_reused idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
    422 answer
    {
      "error": {
        "code": "idempotency_key_reused",
        "message": "The same Idempotency-Key was sent within 24 hours with a different body.",
        "status": 422,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X POST "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/comments/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/attachments" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -F "file=@report.pdf"

Sample answer 201

201 Created
{
  "items": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "name": "screenshot.png",
      "mime": "image/png",
      "kind": "image",
      "size": 48213,
      "created_at": "2026-12-01T10:20:00.000Z",
      "added_by": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "via": "comment",
      "comment_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",
      "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
      "can": {
        "delete": false
      }
    }
  ]
}

Get a file's details

GET/orgs/{org}/tasks/{task}/attachments/{attachment}

Scope: tasks:read

One of the task's files: its name, type, size, who added it and where.

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

  • attachmentstring (uuid)Required

    The file's id.

    The id comes from List a task's files.

Query parameters

  • fieldsstring

    Only these fields, comma-separated: id, name, mime, kind, size, created_at, added_by, via, comment_id, content_url, can. id always comes; the fields not asked for are left out, required or not.

Answer

200 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • idstring (uuid)Required
  • namestringRequired
  • mimestringRequired

    The type projqo stored it as (from its name and bytes).

  • kindstringRequired

    one of: image, document, video, other

  • sizeintegerRequired

    In bytes.

  • created_atstring (date-time)Required

    UTC, with Z.

  • added_byPersonRef or nullRequired
    Show 2 fields
    • idstring (uuid)Required
    • namestringRequired
  • viastringRequired

    How it came: upload, comment, description, cover or create.

  • comment_idstring (uuid) or nullRequired

    The comment it sits in; such a file is removed by editing the comment.

  • content_urlstringRequired

    Where its bytes are read (this API, with the token).

  • canobjectRequired
    Show 1 field
    • deletebooleanRequired

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/attachments/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "name": "screenshot.png",
  "mime": "image/png",
  "kind": "image",
  "size": 48213,
  "created_at": "2026-12-01T10:20:00.000Z",
  "added_by": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah"
  },
  "via": "upload",
  "comment_id": null,
  "content_url": "/api/v1/orgs/acme/tasks/WEB-12/attachments/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/content",
  "can": {
    "delete": true
  }
}

Delete a file

DELETE/orgs/{org}/tasks/{task}/attachments/{attachment}

Scope: tasks:write

Deletes one of the task's files: your own with "Delete own files", anyone's with "Delete anyone's files", as in the app. A file inside a comment belongs to the comment (409 conflict): edit the comment to take it out.

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

  • attachmentstring (uuid)Required

    The file's id.

    The id comes from List a task's files.

Answer

204 Done; no body.

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 409 archived archived: The item (or its project) is archived, so it can't be changed. conflict: The thing changed since it was read, or the change clashes with its state.
    409 answer
    {
      "error": {
        "code": "archived",
        "message": "The item (or its project) is archived, so it can't be changed.",
        "status": 409,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X DELETE "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/attachments/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 204

No body.

Download a file

GET/orgs/{org}/tasks/{task}/attachments/{attachment}/content

Scope: tasks:read

The file's bytes, with its type and a Content-Disposition naming it (attachment, or inline for images and video unless the organisation says always download), and the app's headers that keep a browser from running anything in it.

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    A task's id, or its key (WEB-12).

    1 to 60 characters

    The id comes from List tasks.

  • attachmentstring (uuid)Required

    The file's id.

    The id comes from List a task's files.

Answer

200 The file's bytes.

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "error": {
        "code": "invalid",
        "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.",
        "status": 400,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 401 invalid_token invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
    401 answer
    {
      "error": {
        "code": "invalid_token",
        "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).",
        "status": 401,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 403 insufficient_scope insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
    403 answer
    {
      "error": {
        "code": "insufficient_scope",
        "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).",
        "status": 403,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 404 not_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "error": {
        "code": "not_found",
        "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.",
        "status": 404,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many calls in this minute, for the token or for the whole organisation.",
        "status": 429,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 500 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "error": {
        "code": "internal",
        "message": "Something went wrong on projqo's side (never your mistake).",
        "status": 500,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }

Request

cURL
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/attachments/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/content" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
"string"