SAP Cloud Platform Open Connectors

PATCH /instances/objects/{{objectName}}

PATCH /instances/objects/

Change the name of a CO at the instance level by passing a new objectName in the request body.  

If the CO includes organization or account level fields, those are not changed by this request. This essentially splits the CO where the renamed CO 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 CO associated with the organization and account-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/instances/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":"instance"
}