Delete Application Token Account
1 min
POST
http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts
Header Parameters
- x-xsrf-tokenstringDefault{{x-xsrf-token}}
Body Parameters
- bodyobjectDefault{"dbId": 963708}
Responses
200
curl
curl --request POST \
--url http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{x-xsrf-token}}' \
--data '"{\"dbId\": 963708}"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-xsrf-token", "{{x-xsrf-token}}");
var raw = JSON.stringify("{\"dbId\": 963708}");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-xsrf-token"] = "{{x-xsrf-token}}"
request.body = JSON.dump("{\"dbId\": 963708}")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts"
payload = json.dumps("{\"dbId\": 963708}")
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-xsrf-token': '{{x-xsrf-token}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200