Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.ResultsNone.Remove attachmentRemove an attachment from a Codyt job.MethodNameprojects/{projectid}/tasks/{taskid}/attachmentUrlprojects/{PROJECTID}/tasks/{TASKID}/attachment?token={TOKENID} &attachmentname={ATTACHMENTNAME}&ontranslation={ONTRANSLATION}MethodDELETEParameterstokenThe token obtained on connection

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.





  • No labels