# Webservice add entitlement operation

**URL:** <https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083>\
**Category:** SHF Discussion and Questions\
**Created:** [February 18, 2022, 10:24am UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083 "2022-02-18T10:24:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![apino](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@apino](https://developer.sailpoint.com/discuss/u/apino)\
**Post date:** [February 18, 2022, 10:24am UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/1 "2022-02-18T10:24:45Z")

</div>

Hi all,

I am trying to configure to add an entitlement via a WebService connector. The problem is that when I try to pass the id in the body I get an error:

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/d006bf5ccd8d43450ff5d93ea75cce188318f1d7.png)

But if I try it from the ‘Postman’ with that same body I am able to add the entitlement to the account. The body is:

{  
"profile: {entitlement id requested}  
}

From IDNow I have tried several things but I think it should be something like this (although it doesn’t work):

![image](https://global.discourse-cdn.com/sailpoint/original/1X/df3c449f363f715f0af403228d4283ea04d86da4.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [February 18, 2022, 1:22pm UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/2 "2022-02-18T13:22:33Z")

</div>

Can you share the URL of the API endpoint you are using? My guess is that `$plan.id$` is returning null, hence the error message. You can verify this by finding the request details in the ccg.log file on your VA. It should tell you what is in the request body.

---

<div class="post-metadata">

**Author:** ![yannick\_beot](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/yannick_beot/32/8985_2.png) [@yannick\_beot](https://developer.sailpoint.com/discuss/u/yannick_beot)\
**Post date:** [February 18, 2022, 3:00pm UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/3 "2022-02-18T15:00:40Z")

</div>

Hello @apino ,  
You should use `$plan.nativeIdentity$` instead of `$plan.id$`.  
Also, as you have put double-quotes around `$plan.id$`, you should ensure that the Web service is expecting a string and not an integer.

It really depends on which attribute you have chosen as the ID, the Web service, etc.

---

<div class="post-metadata">

**Author:** ![apino](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@apino](https://developer.sailpoint.com/discuss/u/apino)\
**Post date:** [February 21, 2022, 11:11am UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/4 "2022-02-21T11:11:26Z")

</div>

Thank you very much for your answers, the body was correct, the problem was that the Get Object operation was not well defined.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [February 10, 2023, 2:51pm UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/5 "2023-02-10T14:51:02Z")

</div>

2 posts were split to a new topic: [Webservice connector: Add entitlement operation results in 400](https://developer.sailpoint.com/discuss/t/webservice-connector-add-entitlement-operation-results-in-400/8112)

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [February 10, 2023, 6:34pm UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/6 "2023-02-10T18:34:30Z")

</div>

A post was merged into an existing topic: [Webservice connector: Add entitlement operation results in 400](https://developer.sailpoint.com/t/webservice-connector-add-entitlement-operation-results-in-400/8112/3)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:22pm UTC](https://developer.sailpoint.com/discuss/t/webservice-add-entitlement-operation/3083/7 "2023-07-19T14:22:37Z")

</div>


