younifyd
Menu

Mark Many Tickets As Spam

Bulk Mark Tickets as Spam

PUT/api/v2/tickets/mark_many_as_spam

Use it in a workflow

  1. Add a step and choose the Zendesk connector.
  2. Pick the Mark Many Tickets As Spam action (under Tickets).
  3. Fill in the fields below, then reference the result from later steps as {{markManyTicketsAsSpam.response.data}}.

Request

Query parameters

idsstringrequired

Comma-separated list of ticket ids

Response

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

job_statusobject
idstring

Automatically assigned when the job is queued

job_typestring

The type of the job

messagestring

Message from the job worker, if any

progressinteger

Number of tasks that have already been completed

resultsoneOf

Result data from processed tasks. See [Results](#results) below

statusstring

The current status. One of the following: "queued", "working", "failed", "completed"

totalinteger

The total number of tasks this job is batching through

urlstring

The URL to poll for status updates

json
{
  "job_status": {
    "id": "82de0b044094f0c67893ac9fe64f1a99",
    "message": "Completed at 2018-03-08 10:07:04 +0000",
    "progress": 2,
    "results": [
      {
        "action": "update",
        "id": 244,
        "status": "Updated",
        "success": true
      },
      {
        "action": "update",
        "id": 245,
        "status": "Updated",
        "success": true
      }
    ],
    "status": "completed",
    "total": 2,
    "url": "https://example.zendesk.com/api/v2/job_statuses/82de0b0467893ac9fe64f1a99"
  }
}

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