Skip to content

Instantly share code, notes, and snippets.

@Sarapulov
Created May 10, 2016 08:54
Show Gist options
  • Select an option

  • Save Sarapulov/7b28bf1c814cf22854a461bf538a2786 to your computer and use it in GitHub Desktop.

Select an option

Save Sarapulov/7b28bf1c814cf22854a461bf538a2786 to your computer and use it in GitHub Desktop.
Update Date Field using HTTP target
// TARGET SETTINGS
https://DOMAIN.zendesk.com/api/v2/tickets/update_many.json
PUT
JSON
Basic Authentication - Enabled (email/token + API token)
// PAYLOAD (IN TRIGGER)
{
"tickets": [
{ "id": {{ticket.id}},
"custom_fields": [
{"id": 22801726, "value": "{{ticket.updated_at|date:'%Y-%m-%d'}}"}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment