Giuseppe Iannacone Posted July 17, 2024 Posted July 17, 2024 I'm trying to update a custom field with the "update" method but got a response that the field was not expected, as far as I can understand from the documentation the value of the "customFields" parameter has to be a JSON object of the custom field to be updated, what am I doing wrong?
Victor Posted July 17, 2024 Posted July 17, 2024 @Giuseppe Iannacone wrong payload. customFields is a string, not an object. Use this: { "@service": "apps/com.hornbill.servicemanager/Requests", "@method": "update", "params": { "requestId":"{{request_ID}}", "h_external_ref_number":"-", "customFields":"{\"h_custom_p\": \"36\"}" } } https://docs.hornbill.com/servicemanager-api-api/entities/requests/espflowcodeentityoperation/content/update 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now