younifyd
Menu

Post Api Upload

Upload files

POST/api/upload

Use it in a workflow

  1. Add a step and choose the Gorgias connector.
  2. Pick the Post Api Upload action (under Files).
  3. Fill in the fields below, then reference the result from later steps as {{postApiUpload.response.data}}.

Request

Query parameters

typestring

The type of file to upload. If not specified, the file will be uploaded as a private attachment.

One ofpublic_attachmentattachmentprofile_picturewidget_pictureDefault "attachment"

Request body

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

filestring (binary)

A file to upload. The name of this parameter can be replaced with the label of the file you want to have once uploaded. E.g: `package-damaged.png`.

json
{
  "file": "string"
}

Response

Returns 201 with a array<object>. Read it in later steps with {{postApiUpload.response.data.<field>}}.

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