POST/tasks/{id}/files.jsonAdd a File to a TaskThis 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 ParamsNameidTypestringrequiredDescriptionBody ParamsNametaskTypeobjecttaskobjectRequest ExamplesExpand request settingsExample RequestShellJavaScriptGoJavaPOST/tasks/{id}/files.jsoncurl --request GET \ --url https://{site_name}.teamwork.com/tags.jsonCopyCopied!ResponsesCode201TypeobjectSchemaSchemaDescription201 ResponseExamples201 Response201 Responseapplication/json{ "affectedTaskIds": "1", "assignedFileIds": [ "12" ], "STATUS": "OK", "existingFileIds": [ "4412546", "4412548" ] }CopyCopied!Download Swagger