Edit user
curl --request PUT \
--url https://cloud.memsource.com/web/api2/v1/users/{userUid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"userName": "<string>",
"active": true,
"clients": [
{
"id": "<string>"
}
],
"domains": [
{
"id": "<string>"
}
],
"note": "<string>",
"projectBusinessUnits": [
{
"id": "<string>"
}
],
"sourceLangs": [
"<string>"
],
"subDomains": [
{
"id": "<string>"
}
],
"targetLangs": [
"<string>"
],
"terminologist": true,
"workflowSteps": [
{
"id": "<string>"
}
]
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/users/{userUid}"
payload = {
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"userName": "<string>",
"active": True,
"clients": [{ "id": "<string>" }],
"domains": [{ "id": "<string>" }],
"note": "<string>",
"projectBusinessUnits": [{ "id": "<string>" }],
"sourceLangs": ["<string>"],
"subDomains": [{ "id": "<string>" }],
"targetLangs": ["<string>"],
"terminologist": True,
"workflowSteps": [{ "id": "<string>" }]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
firstName: '<string>',
lastName: '<string>',
timezone: '<string>',
userName: '<string>',
active: true,
clients: [{id: '<string>'}],
domains: [{id: '<string>'}],
note: '<string>',
projectBusinessUnits: [{id: '<string>'}],
sourceLangs: ['<string>'],
subDomains: [{id: '<string>'}],
targetLangs: ['<string>'],
terminologist: true,
workflowSteps: [{id: '<string>'}]
})
};
fetch('https://cloud.memsource.com/web/api2/v1/users/{userUid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.memsource.com/web/api2/v1/users/{userUid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'timezone' => '<string>',
'userName' => '<string>',
'active' => true,
'clients' => [
[
'id' => '<string>'
]
],
'domains' => [
[
'id' => '<string>'
]
],
'note' => '<string>',
'projectBusinessUnits' => [
[
'id' => '<string>'
]
],
'sourceLangs' => [
'<string>'
],
'subDomains' => [
[
'id' => '<string>'
]
],
'targetLangs' => [
'<string>'
],
'terminologist' => true,
'workflowSteps' => [
[
'id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.memsource.com/web/api2/v1/users/{userUid}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://cloud.memsource.com/web/api2/v1/users/{userUid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/users/{userUid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"clients": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"dateDeleted": "2023-11-07T05:31:56Z",
"domains": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"netRateScheme": {
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"note": "<string>",
"organization": {},
"priceList": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"projectBusinessUnits": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"role": "ADMIN",
"sourceLangs": [
"<string>"
],
"subDomains": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"targetLangs": [
"<string>"
],
"terminologist": true,
"timezone": "<string>",
"uid": "<string>",
"userName": "<string>",
"workflowSteps": [
{
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
]
}User
Edit user
deprecated
The username, first name, last name and time zone belong to the login identity of the user, which can be shared with accounts in other organizations. Returns 403 Forbidden when one of these values is changed for an account that is shared with another organization and the caller is not the user themselves.
PUT
/
api2
/
v1
/
users
/
{userUid}
Edit user
curl --request PUT \
--url https://cloud.memsource.com/web/api2/v1/users/{userUid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"userName": "<string>",
"active": true,
"clients": [
{
"id": "<string>"
}
],
"domains": [
{
"id": "<string>"
}
],
"note": "<string>",
"projectBusinessUnits": [
{
"id": "<string>"
}
],
"sourceLangs": [
"<string>"
],
"subDomains": [
{
"id": "<string>"
}
],
"targetLangs": [
"<string>"
],
"terminologist": true,
"workflowSteps": [
{
"id": "<string>"
}
]
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/users/{userUid}"
payload = {
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"userName": "<string>",
"active": True,
"clients": [{ "id": "<string>" }],
"domains": [{ "id": "<string>" }],
"note": "<string>",
"projectBusinessUnits": [{ "id": "<string>" }],
"sourceLangs": ["<string>"],
"subDomains": [{ "id": "<string>" }],
"targetLangs": ["<string>"],
"terminologist": True,
"workflowSteps": [{ "id": "<string>" }]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
firstName: '<string>',
lastName: '<string>',
timezone: '<string>',
userName: '<string>',
active: true,
clients: [{id: '<string>'}],
domains: [{id: '<string>'}],
note: '<string>',
projectBusinessUnits: [{id: '<string>'}],
sourceLangs: ['<string>'],
subDomains: [{id: '<string>'}],
targetLangs: ['<string>'],
terminologist: true,
workflowSteps: [{id: '<string>'}]
})
};
fetch('https://cloud.memsource.com/web/api2/v1/users/{userUid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.memsource.com/web/api2/v1/users/{userUid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'timezone' => '<string>',
'userName' => '<string>',
'active' => true,
'clients' => [
[
'id' => '<string>'
]
],
'domains' => [
[
'id' => '<string>'
]
],
'note' => '<string>',
'projectBusinessUnits' => [
[
'id' => '<string>'
]
],
'sourceLangs' => [
'<string>'
],
'subDomains' => [
[
'id' => '<string>'
]
],
'targetLangs' => [
'<string>'
],
'terminologist' => true,
'workflowSteps' => [
[
'id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.memsource.com/web/api2/v1/users/{userUid}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://cloud.memsource.com/web/api2/v1/users/{userUid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/users/{userUid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"timezone\": \"<string>\",\n \"userName\": \"<string>\",\n \"active\": true,\n \"clients\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"domains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"note\": \"<string>\",\n \"projectBusinessUnits\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"sourceLangs\": [\n \"<string>\"\n ],\n \"subDomains\": [\n {\n \"id\": \"<string>\"\n }\n ],\n \"targetLangs\": [\n \"<string>\"\n ],\n \"terminologist\": true,\n \"workflowSteps\": [\n {\n \"id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"clients": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"dateDeleted": "2023-11-07T05:31:56Z",
"domains": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"netRateScheme": {
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"note": "<string>",
"organization": {},
"priceList": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"projectBusinessUnits": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"role": "ADMIN",
"sourceLangs": [
"<string>"
],
"subDomains": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"targetLangs": [
"<string>"
],
"terminologist": true,
"timezone": "<string>",
"uid": "<string>",
"userName": "<string>",
"workflowSteps": [
{
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
]
}Authorizations
ApiTokenOAuth2
Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.
Body
application/json
User object to update. Optional empty fields will be set to null
Response
OK
User with all belonging objects
Was this page helpful?