SAP Cloud Platform Open Connectors

PATCH /accounts/objects/{{objectName}}

PATCH /accounts/objects/

Change the name of a common resource at the account level by passing a new objectName in the request body.  

If the common resource includes organization or instance level fields, those are not changed by this request. This essentially splits the common resource where the renamed resource includes only the account-level fields while the previous name includes only organization or instance-level fields. Use PATCH /organizations/objects/ and PATCH /instances/objects/ to change the name of the common resource associated with the organization and instance level fields.

Path Parameters

objectNameThe name of the common resource.

Header Parameters

Request Body Parameters

objectNameThe new name of the common resource.

Example Request

curl -X PATCH \
  'https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts/objects/' \
  -H 'Accept: application/json' \
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \ \
  -d '{
"objectName" : "newObjectName"
}'

Example Response

{  
  "id":69496,
  "objectName":"newObjectName",
  "fields":[  
    {  
      "type":"string",
      "path":"firstName"
    },
    {  
      "type":"string",
      "path":"lastName"
    }
  ],
  "level":"account"
}