younifyd
Menu

Update Attachment

Update Attachment for Malware

PUT/api/v2/attachments/{attachment_id}

Use it in a workflow

  1. Add a step and choose the Zendesk connector.
  2. Pick the Update Attachment action (under Attachments).
  3. Fill in the fields below, then reference the result from later steps as {{updateAttachment.response.data}}.

Request

Path parameters

attachment_idinteger (int64)required

The ID of the attachment

Request body

Enter the body as JSON in the step's Body field.

attachmentobject
malware_access_overrideboolean

If true, allows access to attachments with detected malware.

json
{
  "attachment": {
    "malware_access_override": false
  }
}

Response

Returns 200 with an object. Read it in later steps with {{updateAttachment.response.data.<field>}}.

attachmentobject

A file represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object

json
{
  "attachment": {
    "content_type": "image/png",
    "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic.png",
    "file_name": "my_funny_profile_pic.png",
    "id": 928374,
    "size": 166144,
    "thumbnails": [
      {
        "content_type": "image/png",
        "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic_thumb.png",
        "file_name": "my_funny_profile_pic_thumb.png",
        "id": 928375,
        "size": 58298
      }
    ]
  }
}

Need more? See the Zendesk guide for connection setup and behaviour shared by every action.

Was this page helpful?