Creating service request with associated assets

Hi All,

Having an issue with the API. This feature might not be available, reading through the api documentation, but what im trying to do is place a request from a service catalog item and associate it with an asset.

I can see it is possible with creating a normal incident ticket, however im aiming to do it with a service request.

And I understand I can associate the asset after, making an api PUT call, however there are many mandatory fields that require population if I am the first to make any changes to the ticket.

Would anyone be able to tell me if this is possible to create a service request with an associated asset in an API call?

Here is the equivalent curl command for what I am trying to do:


curl -v -u APIKEY:X -X POST "https://domain.freshservice.com/api/v2/service_catalog/items/109/place_request" -H "Content-Type: application/json" -d "{\"email\": \"email@domain.com\", \"assets\": {[\"display_id\": 1217]}, \"custom_fields\":{\"fault_category\": \"Physical Damage\", \"asset_tag\": \"54323\"}}"

and here is the response

{"description":"Validation failed","errors":[{"field":"assets","message":"Unexpected/invalid field in request","code":"invalid_field"}]}

Thanks in advance