Create ticket in FreshDesk with custom_fields and choices

I need to create a ticket via the API…
In this ticket you must enter the following options:

  • Request
  • My account
    –Change of plan
    –Budget

When listing my fields in the route:
/api/v2/ticket_fields GET
Returns
{
“id”: 72000903161,
“name”: “cf_tipo_de_suporte”,
“label”: “Subtipo”,
“description”: null,
“position”: 4,
“required_for_closure”: true,
“required_for_agents”: true,
“type”: “nested_field”,
“default”: false,
“customers_can_edit”: false,
“customers_can_filter”: false,
“label_for_customers”: “Subtipo”,
“required_for_customers”: false,
“displayed_to_customers”: false,
“created_at”: “2022-05-05T18:23:02Z”,
“updated_at”: “2023-11-30T14:28:36Z”,
“choices”: {
“Financeiro”: {
“Alterar data de vencimento”: ,
“Gerar boleto ou 2º via”: ,
“Problemas com pagamento”: ,
“Cobrança indevida”: ,
“Duplicidade pagamento”: ,
“Nota fiscal”: ,
“Pagamento Divergente”: ,
“Mensalidade excluida”: ,
“Verificar Mensalidade”: ,
“Outro”:
},
“Minha Conta”: {
“Mudança de plano”: [
“Upgrade”,
“Downgrade”,
“Orçamento”,
“Outro”
],

However, when POSTing the ticket creation route gives me an error:

[{"field":"choices","message":"Unexpected/invalid field in request","code":" (truncated…)\

Add images

Hi @Calixto_Nascimento,

Greetings!

Could you please share the post payload?

Thank you.