# The request was syntactically correct but its content is semantically invalid

**URL:** <https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452>\
**Category:** SHF Discussion and Questions\
**Created:** [December 17, 2021, 12:46pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452 "2021-12-17T12:46:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aashishsinghal](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@aashishsinghal](https://developer.sailpoint.com/discuss/u/aashishsinghal)\
**Post date:** [December 17, 2021, 12:46pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/1 "2021-12-17T12:46:05Z")

</div>

i am attaching the rule in AD application in INOW using this body using /source/ID  
Error : “The request was syntactically correct but its content is semantically invalid.”  
"[  
{  
“op”: {  
“value”: “replace”  
},  
“path”: {  
“value”: “beforeProvisioningRule”  
},  
“value”: {  
“value”: “Rule BeforeProvisioning AD”  
}  
}  
]

---

<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:** [December 17, 2021, 12:58pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/2 "2021-12-17T12:58:07Z")

</div>

Try the following:

```auto
[
    {
        "op": "replace",
        "path": "/beforeProvisioningRule",
        "value": {
            "type": "RULE",
            "id":"<rule id>",
            "name": "<rule name>"
        }
    }
]

```

---

<div class="post-metadata">

**Author:** ![aashishsinghal](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@aashishsinghal](https://developer.sailpoint.com/discuss/u/aashishsinghal)\
**Post date:** [December 17, 2021, 1:05pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/3 "2021-12-17T13:05:25Z")

</div>

Thanks for quick help . Issue resolved

---

<div class="post-metadata">

**Author:** ![SBahl](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@SBahl](https://developer.sailpoint.com/discuss/u/SBahl)\
**Post date:** [April 5, 2023, 4:05pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/4 "2023-04-05T16:05:58Z")

</div>

How do we get the ID of beforeProvisuioningRule? Is there any API that can help to get that data?

---

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [April 5, 2023, 4:22pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/5 "2023-04-05T16:22:00Z")

</div>

GET `https://{{org}}.identitynow.com/api/rule/list` will list all of the Rules with their ids.

---

<div class="post-metadata">

**Author:** ![SBahl](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@SBahl](https://developer.sailpoint.com/discuss/u/SBahl)\
**Post date:** [April 5, 2023, 5:29pm UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/6 "2023-04-05T17:29:53Z")

</div>

Thanks Edward for the solution , do we have this anywhere documented?

---

<div class="post-metadata">

**Author:** ![aditya\_pathak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/aditya_pathak/32/2758_2.png) [@aditya\_pathak](https://developer.sailpoint.com/discuss/u/aditya_pathak)\
**Post date:** [April 9, 2023, 7:40am UTC](https://developer.sailpoint.com/discuss/t/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/7 "2023-04-09T07:40:22Z")

</div>

@SBahl use this -

> **[export-sp-config | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/beta/export-sp-config)**
>
> Initiates Configuration Objects Export Job.

with includedTypes as Rule

---

<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/the-request-was-syntactically-correct-but-its-content-is-semantically-invalid/2452/8 "2023-07-19T14:22:24Z")

</div>


