Sample request
Retrieve the list of Organizational units.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
It returns all Organizational units. Retrieve the PKey of the desired unit.
{
"PKey": "<PKEY>",
"created": "2019-04-02 22:36:13.252Z",
"desc": "",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
"label": "Brand 4",
"lastModified": "2019-04-03 07:34:56.579Z",
"name": "brand4",
"parentTitle": "All (all)",
"title": "Brand 4 (brand1)"
},
Perform a PATCH request on the Organizational unit, with the attributes to update in the payload.
-X PATCH https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
-i
-d {
-d "label":"brand1",
-d "name":"brand1"
-d }