The delete entity operation removes an existing entity.
HTTP DEL URL Format
The request is specified as follows. The Spectrum server supports both HTTP and HTTPS.
DEL http://server_name:port/rest/ContextGraph/operations/modelName/entities/entityType/entityLabel
URL Path Elements
- modelName
- The name of the Context Graph model.
- entityType
- An entity type defined in the model.
- entityLabel
- The label for an existing entity.
Response
The operation returns the status code "200 OK" when it is successful. The operation returns the status code 500 (Error) when it fails.
Delete entity with JSON Response
The following request deletes the "Place" entity type in the "911" model with the label "FlightSafety International".
DEL http://localhost:8080/rest/ContextGraph/operations/911/entities/Place/FlightSafety%20International
Response:
{
"success":"200 OK"
}