Skip to main content

Set attachment

Attach a document to a Codyt job.

URL

(POST) projects/{projectid}/tasks/{taskid}/attachment

PARAMETERS

token

The token obtained on connection

Required

projectid

The project.

Required

taskid

The unique task identifier

Required

attachmentname

The path/name under which the attachment will be stored.

Note: The path/name should not start with '\'

i.e.:

- "\\Path1\\Doc.docx" is not a valid.

- "Path1\\Doc.docx" is valid.

Required

ontranslation

If true, the attachment is set on the translated file.

If false, the attachment is set on the source file.

By default the value is false.

Optional

overwrite

If set to true, an existing file will be overwritten. By default the value is false and an error is returned if the file already exists.

Optional

HTTP BODY

Include the binary stream of the document in the body of the HTTP POST request

Required

projectid

The project.

Required

taskid

The unique task identifier

Required

attachmentname

The path/name of the attachment to remove.Note: The path/name should not start with '\' i.e.:- "\\Path1\\Doc.docx" is not a valid.- "Path1\\Doc.docx" is valid.

Required

ontranslation

If true, the attachment to remove is set on the translated file.If false, the attachment to remove is set on the source file.By default the value is false.

Optional

 

RESULTS

None.





JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.