Bulk Edit Accounts
1 min
POST
{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts
Path Parameters
- urlstringDefaulturl
Body Parameters
- bodyobjectDefault{ "owner": { "id": "99bf8751-1d18-4268-91f8-e506c16b18c8", "eid": "enduser" }, "description": "Description", "secretNotes": "New Secret Note", "additionalInfo": "Info", "sapmDbId": 349817, "sapmIdentifier": "[email protected]@/Linux" }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '" {\r\n \"owner\": {\r\n \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n \"eid\": \"enduser\"\r\n },\r\n \"description\": \"Description\",\r\n \"secretNotes\": \"New Secret Note\",\r\n \"additionalInfo\": \"Info\",\r\n \"sapmDbId\": 349817,\r\n \"sapmIdentifier\": \"[email protected]@/Linux\"\r\n }"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify(" {\r\n \"owner\": {\r\n \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n \"eid\": \"enduser\"\r\n },\r\n \"description\": \"Description\",\r\n \"secretNotes\": \"New Secret Note\",\r\n \"additionalInfo\": \"Info\",\r\n \"sapmDbId\": 349817,\r\n \"sapmIdentifier\": \"[email protected]@/Linux\"\r\n }");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts", 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("{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump(" {\r\n \"owner\": {\r\n \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n \"eid\": \"enduser\"\r\n },\r\n \"description\": \"Description\",\r\n \"secretNotes\": \"New Secret Note\",\r\n \"additionalInfo\": \"Info\",\r\n \"sapmDbId\": 349817,\r\n \"sapmIdentifier\": \"[email protected]@/Linux\"\r\n }")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts"
payload = json.dumps(" {\r\n \"owner\": {\r\n \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n \"eid\": \"enduser\"\r\n },\r\n \"description\": \"Description\",\r\n \"secretNotes\": \"New Secret Note\",\r\n \"additionalInfo\": \"Info\",\r\n \"sapmDbId\": 349817,\r\n \"sapmIdentifier\": \"[email protected]@/Linux\"\r\n }")
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200