# API Patch Role - Semantically Invalid

**URL:** <https://developer.sailpoint.com/discuss/t/api-patch-role-semantically-invalid/110278>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security, apis, roles\
**Created:** [April 11, 2025, 5:52am UTC](https://developer.sailpoint.com/discuss/t/api-patch-role-semantically-invalid/110278 "2025-04-11T05:52:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SeanK-W](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/seank-w/32/24245_2.png) [@SeanK-W](https://developer.sailpoint.com/discuss/u/SeanK-W)\
**Post date:** [April 11, 2025, 5:52am UTC](https://developer.sailpoint.com/discuss/t/api-patch-role-semantically-invalid/110278/1 "2025-04-11T05:52:22Z")

</div>

Hi all,

Trying to add users to a role via: [patch-role | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v2025/patch-role)

The body I am using is:

```auto
[
  {
    "op": "add",
    "path": "/membership",
    "value": "443214bb99a04aa3b7b4b2710973591c"
  }
]

```

Have also tried:

`"path": "/membership/aliasList/-",`  
&

```auto
[
  {
    "op": "add",
    "path": "/membership/aliasList/-",
    "value": {
        "id" : "443214bb99a04aa3b7b4b2710973591c"
    }
  }
]

```

Every attempt I am, getting the same 400 bad request:

“localeOrigin”: “REQUEST”,  
“text”: “The request was syntactically correct but its content is semantically invalid.”,  
“locale”: “en-US”

Does anybody have an idea as to what I’m getting wrong 👀 ?

Cheers

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/api-patch-role-semantically-invalid/110278)._
