attachments

Create One attachment

post/attachments

Request

  • Base URL: https://twenty.mardu.systems/rest
  • URL: https://twenty.mardu.systems/rest/attachments
  • Auth: HTTP bearer

Query parameters

depth0 | 1

Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations

upsertboolean

If true, creates the object or updates it if it already exists.

Request body

namestring

Attachment name

fullPathstring

Attachment full path

fileCategory'ARCHIVE' | 'AUDIO' | 'IMAGE' | 'PRESENTATION' | 'SPREADSHEET' | 'TEXT_DOCUMENT' | 'VIDEO' | 'OTHER'

Attachment file category

taskIdstring uuid
noteIdstring uuid
personIdstring uuid
companyIdstring uuid
opportunityIdstring uuid
dashboardIdstring uuid
workflowIdstring uuid

Example request

{
  "name": "Attachment name",
  "fileCategory": "ARCHIVE"
}

Response

Successful operation

Changes

No recorded changes to this operation across all 1 revision of this API.