I’m trying to set the ticket owner when using the API Create method, but I keep getting an error. Any help would be greatly appreciated.
I have confirmed that I’m using a valid hubspot_owner_id value (see screenshot). I’m attempting to set it to my own ID. I’m a super admin.
The Request Body as received by my app:
{"properties":
{"hs_pipeline":"0",
"hs_pipeline_stage":"1",
"hubspot_owner_id":"8386379",
"subject":"Supply Order"}}
Note that I have tried the hubspot_owner_id as an integer (no quotes) and as a string (with quotes) and I get the same error response. I have confirmed the stage and pipeline name.
Error Response:
{"status":"error","message":"Property values were not valid: [{\"isValid\":false,\"message\":\"8386379 was not a valid owner ID\",\"error\":\"INVALID_OWNER_ID\",\"name\":\"hubspot_owner_id\"}]","correlationId":"716f8fb8-3347-47c3-b2a1-8aee1ab5bea5","category":"VALIDATION_ERROR"}
My app has the ‘tickets’ scope. I have submitted the same create POST request without the hubspot_owner_id and the ticket is created successfully, so I know my OAUTH routines are working.