/editAdministrativePolicyForSwagger
1 min
POST
http://1.1.1.1/editAdministrativePolicyForSwagger
Query Parameters
- action_type_and_approval_workflow_idsobjectrequiredDescriptionDefault{ "please_insert_your_object_data_inside_the_requestBody": "your_object_here" }
- session_idstringrequiredExampleDescriptionDefault3478593863424051983840947
- administrative_message_numberintegerrequiredExampleDescriptionDefault5
Body Parameters
- bodyeditAdministrativePolicyForSwaggerRequest
- action_type_and_approval_workflow_idsstringExampleDefaulttype_object_here
Responses
200
- editAdministrativePolicyForSwaggerResponse
- FunctionDataobject
- StatusCodeintegerDescriptionDefault0
- MetaMetaResponse
- AccessTokenstringExampleDescriptionDefaulta3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6
- DestinationstringExampleDescriptionDefault042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622
- SourcestringExampleDescriptionDefaultdf4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355
- TimestringExampleDescriptionDefault2021-02-14 09:58:52.320
curl
curl --request POST \
--url 'http://1.1.1.1/editAdministrativePolicyForSwagger?action_type_and_approval_workflow_ids=%22{%5Cn%20%20%5C%22please_insert_your_object_data_inside_the_requestBody%5C%22%3A%20%5C%22your_object_here%5C%22%5Cn}%5Cn%22&session_id=3478593863424051983840947&administrative_message_number=5' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"action_type_and_approval_workflow_ids": "type_object_here"
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"action_type_and_approval_workflow_ids": "type_object_here"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("http://1.1.1.1/editAdministrativePolicyForSwagger?action_type_and_approval_workflow_ids=\"{\\n \\\"please_insert_your_object_data_inside_the_requestBody\\\": \\\"your_object_here\\\"\\n}\\n\"&session_id=3478593863424051983840947&administrative_message_number=5", 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://1.1.1.1/editAdministrativePolicyForSwagger?action_type_and_approval_workflow_ids=\"{\n \\"please_insert_your_object_data_inside_the_requestBody\\": \\"your_object_here\\"\n}\n\"&session_id=3478593863424051983840947&administrative_message_number=5")
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({
"action_type_and_approval_workflow_ids": "type_object_here"
})
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://1.1.1.1/editAdministrativePolicyForSwagger?action_type_and_approval_workflow_ids=\"{\\n \\\"please_insert_your_object_data_inside_the_requestBody\\\": \\\"your_object_here\\\"\\n}\\n\"&session_id=3478593863424051983840947&administrative_message_number=5"
payload = json.dumps({
"action_type_and_approval_workflow_ids": "type_object_here"
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// success
{
"FunctionData": {
"StatusCode": 0
},
"Meta": {
"AccessToken": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6",
"Destination": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622",
"Source": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355",
"Time": "2021-02-14 09:58:52.320"
}
}This API allows to associate the different action types to the corresponding approval workflows.
The order of the actions in the list defines their importance - from the most important to the less important, i.e. if the user did several actions in one session, the chosen approval workflow will be the one associated to the most important action (the one that appears first in the list).