# UPDATE Engagement API

**URL:** <https://community.hubspot.com/t/update-engagement-api/41147>\
**Category:** APIs & Integrations\
**Tags:** developer, sales\
**Created:** [July 22, 2021, 12:40pm UTC](https://community.hubspot.com/t/update-engagement-api/41147 "2021-07-22T12:40:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASawant0](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asawant0/32/1529_2.png) [@ASawant0](https://community.hubspot.com/u/ASawant0)\
**Post date:** [July 22, 2021, 12:40pm UTC](https://community.hubspot.com/t/update-engagement-api/41147/1 "2021-07-22T12:40:40Z")

</div>

Hi All,

Can someone please help me with below API

I am trying to change the assigned owner for TASK (ACTIVITY). But the assigned owner is showing invalid owner.

PATCH /engagements/v1/engagements/:engagementId

BODY -{ “engagement”: { “id”: 14251938878, “ownerId”: 12510804 } }

The API output is without errors. But I am not seeing any change.

Please advise!

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [July 23, 2021, 12:49pm UTC](https://community.hubspot.com/t/update-engagement-api/41147/2 "2021-07-23T12:49:07Z")

</div>

Hi @ASawant0,

Thank you for reaching out to the Community!

I wanted to tag in a few experts: @DanielSanchez, @tominal, @dannio, @MichaelC do you maybe have any tips or a possible solution for @ASawant0? Thank you!

Mia

---

<div class="post-metadata">

**Author:** ![ASawant0](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asawant0/32/1529_2.png) [@ASawant0](https://community.hubspot.com/u/ASawant0)\
**Post date:** [July 29, 2021, 6:58pm UTC](https://community.hubspot.com/t/update-engagement-api/41147/3 "2021-07-29T18:58:23Z")

</div>

Hi @DanielSanchez, [@RBThomas](https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634), [@LPM](https://community.hubspot.com/t5/user/viewprofilepage/user-id/16537), @MichaelC

Please advise!

Thanks,

Ankita

---

<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:** [July 30, 2021, 6:08pm UTC](https://community.hubspot.com/t/update-engagement-api/41147/4 "2021-07-30T18:08:17Z")

</div>

@ASawant0 , try removing the id from the body.

Like this

```lia-code-sample
{
 "engagement": {
 "ownerId": 12510804
 }
}

```

You are already expressing the ID of the engagement in the uri so that does not need to be repeated in the body. I just tested and it works for me.

---

<div class="post-metadata">

**Author:** ![ASawant0](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asawant0/32/1529_2.png) [@ASawant0](https://community.hubspot.com/u/ASawant0)\
**Post date:** [August 5, 2021, 12:55am UTC](https://community.hubspot.com/t/update-engagement-api/41147/5 "2021-08-05T00:55:09Z")

</div>

Hi Dennis,

Thank you for the solution

Looks like something changed. Now I see task assigned to userids. But it should show emails attached to it. Please advise!

 ![ASawant0_0-1628124689067.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/3/a37eceeb301a09bd19e236d374a90028c870c3bb.png)
