SysDeleteEntity
Advanced version of deleteEntity that bypasses the ACL check. Available from S2S sessions.
Service | Operation |
---|---|
customEntity | SYS_DELETE_ENTITY |
Method Parameters
Parameter | Description |
---|---|
entityType | The type of custom entity being deleted. |
entityId | The id of custom entity being deleted. |
version | Version of the custom entity being deleted. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var entityType = "athletes";
var entityId = "aaaa-bbbb-cccc-dddd";
var version = 1;
var customEntityProxy = bridge.getCustomEntityServiceProxy();
var postResult = customEntityProxy.sysDeleteEntity(entityType, entityId, version);
if (postResult.status == 200) {
// Success!
}
{
"service": "customEntity",
"operation": "SYS_DELETE_ENTITY",
"data": {
"entityType": "athletes",
"entityId": "aaaa-bbbb-cccc-dddd",
"version": 1
}
}
JSON Response
{
"status": 200,
"data": null
}