Type/Priority/Custom fields not set when creating request

Beantwortet


Gepostet 03. Aug. 2022

I'm attempting to add some custom fields to our tickets (both Text) when created through the requests API.
I'm POSTing the following data (from Javascript) to https://oursite.zendesk.com/api/v2/requests.json

{
request:{
type: 'incident',
priority: 'high',
requester:{name:'John Doe',email:'john.doe@email.com'},
subject: 'Something bad happened!',
comment:{
body: 'Can you look into this?',
},
custom_fields: [
{ id: 8296782846740, value: 'custom 1'},
{ id: 8296695964692, value: 'custom 2'},
]
}
}

The requester, subject, and comment all show up on the ticket fine, but the type, priority, and custom fields are not being set (they just become the defaults, which in this case is low for priorty, not set for type, and the custom fields are empty)

I'm referencing the Create Request documentation, and I think that should be the right format?


0

3

0 Kommentare

Anmelden, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post