/
Set attachment

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.





Related content

Remove attachment
Remove attachment
More like this
Download attachment
Download attachment
More like this
List attachments
List attachments
More like this
Upload new document or new document version
Upload new document or new document version
More like this
projects/{pid}/workflows/{did}/attachments/{locale}/file (POST)
projects/{pid}/workflows/{did}/attachments/{locale}/file (POST)
More like this
Add task to document
Add task to document
More like this

Copyright Wordbee - Buzzin' Outside the Box since 2008