SAP Cloud Platform Open Connectors

DELETE /accounts/objects/{objectName}/definitions

DELETE /accounts/objects/{objectName}/definitions

DELETE /accounts/{id}/objects/{objectName}/definitions

Delete all account-level fields in a specific common resource, and the common resource itself if it contains only fields at the account level of the account associated with the request. You can either delete common resources from the account associated with the credentials that you pass with the request, or you you can specify an account Id. The endpoints to delete specific common resources from an account are:

  • DELETE /accounts/objects/{objectName}/definitions
    • Replace fields in a common resource for the account associated with the logged in user or the Organization and User Secret passed with the request.
  • DELETE /accounts/{id}/objects/{objectName}/definitions
    • Replace fields in a common resource for the account by passing the account id with the request.

Path Parameters

id
The unique identifier for an account within an organization.
Only used for PUT /accounts/{id}/objects/{objectName}/definitions.
objectName
The name of the common resource.

DELETE /accounts/objects/{objectName}/definitions Example Request

curl -X DELETE \
  https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts/objects/myResource/definitions \
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'content-type: application/json' \

DELETE /accounts/{id}/objects/{objectName}/definitions Example Request

curl -X DELETE \
  https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts/12345/objects/myResource/definitions \
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'content-type: application/json' \

Example Response

A response with a 200 Status Code indicates success. You can confirm that you deleted the common resource with GET accounts/objects/definitions or GET/accounts/{id}/objects/definitions