PATCH /instances/objects/
Change the name of a VDR at the instance level by passing a new objectName
in the request body.
If the VDR includes organization or account level fields, those are not changed by this request. This essentially splits the VDR where the renamed VDR includes only the instance-level fields while the previous name includes only organization or account-level fields. Use PATCH /organizations/objects/
and PATCH /accounts/objects/
to change the name of the VDR associated with the organization and account-level fields.
Change the Name of a VDR Path Parameters
objectName | The name of the virtual data resource. |
Change the Name of a VDR Header Parameters
Change the Name of a VDR Request Body Parameters
objectName | The new name of the virtual data resource. |
Change the Name of a VDR Example Request
curl -X PATCH \
'https://api.cloud-elements.com/elements/api-v2/instances/objects/' \
-H 'Accept: application/json' \
-H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \ \
-d '{
"objectName" : "newObjectName"
}'
Change the Name of a VDR Example Response
{
"id":69496,
"objectName":"newObjectName",
"fields":[
{
"type":"string",
"path":"firstName"
},
{
"type":"string",
"path":"lastName"
}
],
"level":"instance"
}