/editMpcUserForSwagger
1 min
POST
http://1.1.1.1/editMpcUserForSwagger
Query Parameters
- emailstringrequiredExampleDescriptionDefault
- first_namestringrequiredExampleDescriptionDefaultJohn
- last_namestringrequiredExampleDescriptionDefaultDoe
- role_idstringrequiredExampleDescriptionDefault123
- session_idstringrequiredExampleDescriptionDefault3478593863424051983840947
- administrative_message_numberintegerrequiredExampleDescriptionDefault5
- user_group_idsstring[]requiredDescription
Responses
200
- editMpcUserForSwaggerResponse
- FunctionDataobject
- StatusCodeintegerDescriptionDefault0
- MetaMetaResponse
- AccessTokenstringExampleDescriptionDefaulta3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6
- DestinationstringExampleDescriptionDefault042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622
- SourcestringExampleDescriptionDefaultdf4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355
- TimestringExampleDescriptionDefault2021-02-14 09:58:52.320
curl
curl --request POST \
--url 'http://1.1.1.1/editMpcUserForSwagger?email=John%40gk8.io&first_name=John&last_name=Doe&role_id=123&session_id=3478593863424051983840947&administrative_message_number=5&user_group_ids=array' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("http://1.1.1.1/[email protected]&first_name=John&last_name=Doe&role_id=123&session_id=3478593863424051983840947&administrative_message_number=5&user_group_ids=array", 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/[email protected]&first_name=John&last_name=Doe&role_id=123&session_id=3478593863424051983840947&administrative_message_number=5&user_group_ids=array")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://1.1.1.1/[email protected]&first_name=John&last_name=Doe&role_id=123&session_id=3478593863424051983840947&administrative_message_number=5&user_group_ids=array"
payload = {}
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"
}
}- return - success or error response.
- This API allows to edit a user from the MPC.