latestOpenAPI 3.1.02026-08-19722176474.5 KB

f1eea337ff61

Task Attachments

Rename a subtask attachment

Rename an attachment. Send the new name without an extension — the stored extension is kept.

put/v1/tasks/{taskId}/subtasks/{subtaskId}/attachments/{attachmentId}

Path parameters

taskIdinteger required

ID of the parent task

subtaskIdinteger required

ID of the subtask

attachmentIdinteger required

ID of the attachment

Headers

X-Org-Idinteger required

Organization ID

Request body

attachmentNamestring required

New name without the file extension — the original extension is kept and re-appended. Sending a name that contains a dot is rejected.

Example request

{
  "attachmentName": "Signed contract"
}

Response

Attachment renamed successfully

successboolean

Indicates if the operation was successful

messagestring

Message describing the result of the operation

codeinteger

HTTP status code of the response

timestampstring date-time

Timestamp of the response

Example response

{
  "success": true,
  "message": "Operation completed successfully",
  "code": 200,
  "timestamp": "2023-01-01T12:00:00Z"
}