younifyd
Menu

Bulk Archive Macros

Archive macros

PUT/api/macros/archive

Use it in a workflow

  1. Add a step and choose the Gorgias connector.
  2. Pick the Bulk Archive Macros action (under Macros).
  3. Fill in the fields below, then reference the result from later steps as {{bulkArchiveMacros.response.data}}.

Request

Request body

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

idsarray<integer>required

List of macro ids to be archived

json
{
  "ids": [
    0
  ]
}

Response

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

dataarray<object>
idintegerrequired
statusstringrequired

One ofarchivednot_foundalready_archivedmacro_used

errorobject2 fields
json
{
  "data": [
    {
      "id": 0,
      "status": "archived",
      "error": {
        "data": {
          "rules": [
            "string"
          ]
        },
        "msg": "string"
      }
    }
  ]
}

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