Recent searches
No recent searches
Create new ticket with defined custom_field_option
Posted Apr 12, 2023
Hello,
I'm looking to create through API a new ticket with a specific custom_field_option.
This example works fine with custom field :
{
"ticket": {
"subject": "New ticket",
"custom_fields": [{ "id": 6546465464, "value": "test" }]
}
}
But I can't figured it out with dropdown lists (custom_field_option
).
Is there anything special to know ?
0
3
3 comments
Edouard PIGEON
Hi,
Yes, I'm already using the tag not the title.
Is the syntax the same between "custom_fields" and "custom_field_option" ?
Do I only have to specify the dropdown list ID and it's value ?
I can't find any example.
0
Rafael Santos
For the ticket's custom_fields object, you'll want to provide the custom_field's id and its custom_field_option's value.
For a given Ticket custom field example:
The ticket would have this if you want to set Field example to Foo Biz
EDIT: Documentation > Creating and updating tickets > Setting custom field values
0
Edouard PIGEON
Thanks for your detailed answer.
My syntax was right but it seems that our CRM integration (from 3CX phone system) wants to create an new option and not just setting it as the logs says :
0