Deletes a profile metadata entry.
The user must be authenticated and have write permissions to the specified site group.
Admin user can bind metadata entries either globally or to any customer or site group.
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
No |
The id of customer which specified metadata entries will be deleted. |
|
|
String |
No |
The id of site group which specified metadata entries will be deleted. |
|
|
Array of Objects |
Yes |
A list of profile's metadata with display name bindings. |
The profile object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
User profile or content profile group name. |
|
|
Array of Objects |
No |
A list of group items metadata. |
The item metadata object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
User profile or content profile item name. |
Response
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
Array of Objects |
Yes |
A list of created bindings. |
Metadata object has the same fields as profile object from request.
Examples
# Site group binding deletion
$ python cx.py /profile/metadata/delete '{"siteGroupId":"1135172335968227720","profiles":[\
{"group":"alx-id-proffesion","items":[\
{"item":"alx-sci-item-01"}\
]}]}'
{
"result": 1
}
# Customer binding deletion
$ python cx.py /profile/metadata/create '{"customerId":"0c3130d72e0d68036a579e9ab4e3349116b4b6b6","profiles":[\
{"group":"alx-id-proffesion", "items":[\
{"item":"alx-sci-item-01"}\
]}]}'
{
"result": 1
}
# Global binding deletion
$ python cx.py /profile/metadata/create?admin=true '{"profiles":[\
{"group":"alx-id-proffesion", "items":[\
{"item":"alx-sci-item-01"}\
]}]}'
{
"result": 1
}