I am using a REST API to POST attributes to a person using json. My request body looks like this:
$requestBody = '
{
"attribute": {
"@id": "",
"@uri": "",
"person": {
"@id": "222",
"@uri": "https://api_name_removed.com/v1/People/222"
},
"attributeGroup": {
"@id": "",
"@uri": "",
"name": null,
"attribute": {
"@id": "2404",
"@uri": "",
"name": null
}
},
"lastUpdatedDate": null
}
}';
How do I change the person id, person uri and attribute id to be variables I have already stored?