POST/tasks/{id}/files.json

Add a File to a Task

This call adds a file to the task.

Please note

The file must have been uploaded already and you must have the pendingFileRef handle, take a look here:

File Uploading - Preferred.


Path Params

  • Name
    id
    Type
    string
    required
    Description

Body Params

    • Name
      task
      Type
      object

    Request Examples

    Example Request

    POST
    /tasks/{id}/files.json
    curl --request GET \
         --url https://{site_name}.teamwork.com/tags.json

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Response

    Examples

    201 Response

    application/json
    {
      "affectedTaskIds": "1",
      "assignedFileIds": [
        "12"
      ],
      "STATUS": "OK",
      "existingFileIds": [
        "4412546",
        "4412548"
      ]
    }