Question

Is there any API to create ticket without madatory fields

  • 2 May 2023
  • 3 replies
  • 168 views

Hi Team,

Is there any API to create ticket in freshserive without giving values for madatory fields.


3 replies

Userlevel 7
Badge +13

Hi Team,

Is there any API to create ticket in freshserive without giving values for madatory fields.

I have only seen that PUT has the option. My recommendation is set non of the fields mandatory in the field editor and then use the business rules to change them to mandatory. Doing that would allow the API to create/update tickets without needing to add mandatory fields. 

Userlevel 3
Badge +3

Hi @PavithraSelvaraj 

Yes, currently it is possible to have it under the PUT type for updating a ticket.

Please try using the below - 
api/v2/ticket/{ticket_id}?bypass_mandatory=true

 

 

 

Ref : https://api.freshservice.com/#update_ticket_priority

Userlevel 7
Badge +13

Hi @PavithraSelvaraj 

Yes, currently it is possible to have it under the PUT type for updating a ticket.

Please try using the below - 
api/v2/ticket/{ticket_id}?bypass_mandatory=true

 

 

 

Ref : https://api.freshservice.com/#update_ticket_priority

It’s not what PavithraSelvaraj was asking for. Asked for create(POST) tickets. 

Reply