Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
// Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"
loHttp.SetRequestHeader("Accept-API-Version","resource=1.0")
loResp = loHttp.QuickRequest("DELETE","https://<tenant-name>.forgeblocks.com/openidm/managed/alpha_user/:_id")
if (loHttp.LastMethodSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
return
endif
? str(loResp.StatusCode)
? loResp.BodyStr
release loResp
release loHttp
Curl Command
curl -X DELETE
-H "Authorization: Bearer <access_token>"
-H "Accept-API-Version: resource=1.0"
https://<tenant-name>.forgeblocks.com/openidm/managed/alpha_user/:_id
Postman Collection Item JSON
{
"name": "Step 4: Delete a Managed Identity",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"description": "(Required) ",
"key": "Accept-API-Version",
"value": "resource=1.0",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{platformUrl}}/openidm/managed/alpha_user/:_id",
"host": [
"{{platformUrl}}"
],
"path": [
"openidm",
"managed",
"alpha_user",
":_id"
],
"variable": [
{
"key": "_id",
"value": "{{managedUserId}}"
}
]
},
"description": "Delete a managed identity."
},
"response": [
{
"name": "Success",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "(Required) ",
"key": "Accept-API-Version",
"value": "<string>"
}
],
"url": {
"raw": "{{baseUrl}}/openidm/managed/user#1.0_query_filter?_fields=&_prettyPrint=true&_queryFilter=<string>&_pageSize=<integer>&_totalPagedResultsPolicy=<string>&_sortKeys=<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"openidm",
"managed",
"user"
],
"hash": "1.0_query_filter?_fields=&_prettyPrint=true&_queryFilter=<string>&_pageSize=<integer>&_totalPagedResultsPolicy=<string>&_sortKeys=<string>"
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "*/*"
}
],
"cookie": [
],
"body": ""
}
]
}