# Can't set ticket owner from API Create method

**URL:** <https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 15, 2021, 10:39pm UTC](https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922 "2021-03-15T22:39:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbharris1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rbharris1/32/65657_2.png) [@rbharris1](https://community.hubspot.com/u/rbharris1)\
**Post date:** [March 15, 2021, 10:39pm UTC](https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922/1 "2021-03-15T22:39:30Z")

</div>

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:**

```lia-code-sample
{"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.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 16, 2021, 8:58pm UTC](https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922/2 "2021-03-16T20:58:42Z")

</div>

Hello @rbharris1

Are you still working on this?

I would hit [this endpoint](https://developers.hubspot.com/docs/api/crm/owners) to confirm that you are working with the owner id

---

<div class="post-metadata">

**Author:** ![rbharris1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rbharris1/32/65657_2.png) [@rbharris1](https://community.hubspot.com/u/rbharris1)\
**Post date:** [March 17, 2021, 1:11am UTC](https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922/3 "2021-03-17T01:11:12Z")

</div>

Well, I feel dumb. Why is there a difference between the id and the userid!? The solution is to use the id, not the userid! Thank you, @dennisedson .

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 17, 2021, 2:42pm UTC](https://community.hubspot.com/t/cant-set-ticket-owner-from-api-create-method/33922/4 "2021-03-17T14:42:49Z")

</div>

@rbharris1

While I cannot speak to why it is different, I can certainly let you know that you should not feel dumb 😉
