I want to have this body:
{
"name": "sales_support",
"description": "The sales support team",
"parentOrgUnitPath": "/corp/support",
}
In a PHP curl post request.
How do I add the variables into this line properly?
CURLOPT_POSTFIELDS => '{ "name":"' .$createOUname '","description":"' .$description '","parentOrgUnitPath":"'.$parentOUpath'"},
I have tried it like this but then I get this error:
Parse error: syntax error, unexpected ''","description":"'' (T_CONSTANT_ENCAPSED_STRING), expecting ')'
What did I do wrong in my code? I cant get hold of how to resolve this