Delete a custom object

delete

/api/REST/1.0/assets/customObject/{id}

Deletes the custom object specified by the id parameter.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

204 Response

No matching custom objects were found in the search.

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

409 Response

The custom object you are attempting to delete has dependencies, and cannot be deleted.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

The following examples demonstrate how to delete a custom object using an HTTP request and cURL. For more information on requests, see API requests.

HTTP Request Example

Delete the custom object with Id = 63:


DELETE /api/REST/1.0/assets/customObject/63
			

Response status:


200 OK
			

For DELETE requests, there is no body returned.

cURL Example

Here is the same example in cURL given an instance with the name APITest, username API.User, and POD of 3.


curl --user "APITest\API.User" --request DELETE https://secure.p03.eloqua.com/api/REST/1.0/assets/customObject/63
			
Back to Top