PATCH/desk/api/v2/triggers/{id}.json

Update a trigger

Update all the given properties for this trigger. Any omitted properties will be unchanged.

Path Params

  • Name
    id
    Type
    integer
    required
    Description

Body Params

TriggerAPIBody is the request/response format for the API

    • Name
      applyToExistingTickets
      Type
      boolean
    • Name
      included
      Type
      object
      Description
      Included allows adding referenced objects on the API response. The included keys should map to the `types` in the Relationship slices/objects.
    • Name
      jobId
      Type
      string
      Description
      JobID will either return the background job ID for ApplyToExistingTickets or ViewApplicableTickets
    • Name
      trigger
      Type
      object
      Description
      Trigger is an action that can be taken on one or more tickets based on specific criteria.
    • Name
      viewApplicableTickets
      Type
      boolean

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
      TriggerAPIBody is the request/response format for the API
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

    Examples

    200 OK

    TriggerAPIBody
    {  "applyToExistingTickets": true,  "included": {    "addresses": [      {        "city": "string",        "country": "string",        "firstLine": "string",        "id": 0,        "postalCode": "string",        "secondLine": "string",        "state": "string"      }    ],    "agentsnotified": [      {        "autoFollowOnCC": true,        "avatarURL": "string",