Skip to content

Create Attachment

Request

[beta: currently supported by Jira] Creates an Attachment for the ticket with id {ticketId} in the token-linked Integration.

Operation ID: ticketing_create_attachment

Security
BearerAuth
Path
ticketIdstring(Id)required
Query
metaArray of strings

Add metadata to the response by invoking meta functions. Documentation for meta functions is available. Not all meta functions are available at every endpoint.

Bodyapplication/jsonrequired
file_namestringrequired

The name of the file.

contentstring, (byte)required

File contents

curl
curl -i -X POST \
  'https://api.synqly.com/v1/ticketing/attachments/{ticketId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "file_name": "string",
    "content": "string"
  }'

Responses

Bodyapplication/json
resultobject(AttachmentMetadata)required

Attachment in a ticketing system

messagesobject or null(MessagesResponse)

Additional messages from the service response that may be helpful to the client.

metaobject or null(MetaResponse)

Various metadata about the results organized by group, then type, then field.

Response
{ "result": { "id": "string", "ticket_id": "string", "file_name": "string", "file_type": "string", "file_size": 0, "created_date": "2019-08-24T14:15:22Z", "creator": "string", "unmapped": {} }, "messages": { "problems": [ … ] }, "meta": { "stats": { … }, "api": { … }, "mapping": { … } } }