Update a campaign's organizational access
Update the organizations that can access a campaign.
Service URL:
/rest/api/v1.3/attributes/campaigns/{campaignName}
Required Path Parameter:
campaignName
Request Method:
POST
Request Header:
Authorization=<AUTH_TOKEN>
Content-Type=application/json
Sample Request Body:
{
"attributes": {
"organizations": {
"attributeValues": [
{
"name": "USA"
},
{
"name": "APAC"
},
{
"name": "Global"
}
]
}
}
}
Sample Response in case of success:
{
"attributes": {
"organizations": {
"attributeValues": [
{
"id": 7,
"name": "USA",
"lineage": "7:"
},
{
"id": 4000007,
"name": "APAC",
"lineage": "7:4000007:"
},
{
"id": 12000007,
"name": "Global",
"lineage": "7:12000007:"
}
]
}
}
}
Sample Response in case of failure:
If the attribute does not match an existing organization, the following error will be returned.
{
"type": "",
"title": "Set Object Attribute Exception",
"errorCode": "SET_OBJECT_ATTRIBUTE_EXCEPTION",
"detail": "Unable to set Access Attributes for the campaign. Invalid attribute value: Usa",
"errorDetails": []
}