curl --request PUT \
--url https://cloud.memsource.com/web/api2/v1/organizations/accessSettings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"vendors": {
"canChangeSharedJobDueDate": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"canChangeSharedJobDueDateEnabled": true,
"jobVendorsMayUploadReferences": true
},
"allowAccountSupport": true,
"allowLoadingExternalContentInEditors": true,
"allowLoadingIframes": true,
"allowedDomains": [
"<string>"
],
"autoUserActivation": true,
"downloadEnabled": true,
"emailNotifications": true,
"linguistsMayDownloadLqaReport": true,
"linguistsMayEditLockedSegments": true,
"linguistsMayEditSource": true,
"linguistsMayEditTagContent": true,
"notifyJobOwnerStatusChanged": true,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": true,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": true,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"showUserDataToLinguists": true,
"strictWorkflowFinish": true,
"triggerWebhooks": true,
"useHttpsForWebhooks": true,
"useVendors": true,
"userMaySetInstantQA": true,
"usernamesDisplayedInLqaReport": true,
"usersMaySetAutoPropagation": true,
"webEditorEnabledForLinguists": true
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/organizations/accessSettings"
payload = {
"vendors": {
"canChangeSharedJobDueDate": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"canChangeSharedJobDueDateEnabled": True,
"jobVendorsMayUploadReferences": True
},
"allowAccountSupport": True,
"allowLoadingExternalContentInEditors": True,
"allowLoadingIframes": True,
"allowedDomains": ["<string>"],
"autoUserActivation": True,
"downloadEnabled": True,
"emailNotifications": True,
"linguistsMayDownloadLqaReport": True,
"linguistsMayEditLockedSegments": True,
"linguistsMayEditSource": True,
"linguistsMayEditTagContent": True,
"notifyJobOwnerStatusChanged": True,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": True,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": True,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"showUserDataToLinguists": True,
"strictWorkflowFinish": True,
"triggerWebhooks": True,
"useHttpsForWebhooks": True,
"useVendors": True,
"userMaySetInstantQA": True,
"usernamesDisplayedInLqaReport": True,
"usersMaySetAutoPropagation": True,
"webEditorEnabledForLinguists": True
}
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({
vendors: {
canChangeSharedJobDueDate: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
canChangeSharedJobDueDateEnabled: true,
jobVendorsMayUploadReferences: true
},
allowAccountSupport: true,
allowLoadingExternalContentInEditors: true,
allowLoadingIframes: true,
allowedDomains: ['<string>'],
autoUserActivation: true,
downloadEnabled: true,
emailNotifications: true,
linguistsMayDownloadLqaReport: true,
linguistsMayEditLockedSegments: true,
linguistsMayEditSource: true,
linguistsMayEditTagContent: true,
notifyJobOwnerStatusChanged: true,
notifyJobOwnerStatusChangedTemplateUid: '<string>',
notifyReference: true,
notifyReferenceGroups: '<string>',
notifyReferenceTemplateUid: '<string>',
notifyUserMentionOrComment: true,
notifyUserMentionOrCommentTemplateUid: '<string>',
showUserDataToLinguists: true,
strictWorkflowFinish: true,
triggerWebhooks: true,
useHttpsForWebhooks: true,
useVendors: true,
userMaySetInstantQA: true,
usernamesDisplayedInLqaReport: true,
usersMaySetAutoPropagation: true,
webEditorEnabledForLinguists: true
})
};
fetch('https://cloud.memsource.com/web/api2/v1/organizations/accessSettings', 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/organizations/accessSettings",
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([
'vendors' => [
'canChangeSharedJobDueDate' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'canChangeSharedJobDueDateEnabled' => true,
'jobVendorsMayUploadReferences' => true
],
'allowAccountSupport' => true,
'allowLoadingExternalContentInEditors' => true,
'allowLoadingIframes' => true,
'allowedDomains' => [
'<string>'
],
'autoUserActivation' => true,
'downloadEnabled' => true,
'emailNotifications' => true,
'linguistsMayDownloadLqaReport' => true,
'linguistsMayEditLockedSegments' => true,
'linguistsMayEditSource' => true,
'linguistsMayEditTagContent' => true,
'notifyJobOwnerStatusChanged' => true,
'notifyJobOwnerStatusChangedTemplateUid' => '<string>',
'notifyReference' => true,
'notifyReferenceGroups' => '<string>',
'notifyReferenceTemplateUid' => '<string>',
'notifyUserMentionOrComment' => true,
'notifyUserMentionOrCommentTemplateUid' => '<string>',
'showUserDataToLinguists' => true,
'strictWorkflowFinish' => true,
'triggerWebhooks' => true,
'useHttpsForWebhooks' => true,
'useVendors' => true,
'userMaySetInstantQA' => true,
'usernamesDisplayedInLqaReport' => true,
'usersMaySetAutoPropagation' => true,
'webEditorEnabledForLinguists' => true
]),
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/organizations/accessSettings"
payload := strings.NewReader("{\n \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\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/organizations/accessSettings")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/organizations/accessSettings")
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 \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\n}"
response = http.request(request)
puts response.read_body{
"allowAccountSupport": true,
"allowLoadingExternalContentInEditors": true,
"allowLoadingIframes": true,
"allowedDomains": [
"<string>"
],
"autoUserActivation": true,
"ccEmailEnabled": true,
"downloadEnabled": true,
"emailNotifications": true,
"linguistsMayDownloadLqaReport": true,
"linguistsMayEditLockedSegments": true,
"linguistsMayEditSource": true,
"linguistsMayEditTagContent": true,
"notifyJobOwnerStatusChanged": true,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": true,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": true,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"secureEmailSendingProcessLegacyBehaviorEnabled": true,
"sessionTimeoutMinutes": 123,
"showUserDataToLinguists": true,
"strictWorkflowFinish": true,
"triggerWebhooks": true,
"trustedAddressesSettings": {
"settingsType": "BASIC",
"adminPm": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"allRoles": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"guestSubmitter": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"linguist": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
}
},
"useHttpsForWebhooks": true,
"useVendors": true,
"userMaySetInstantQA": true,
"usernamesDisplayedInLqaReport": true,
"usersMaySetAutoPropagation": true,
"vendors": {
"canChangeSharedJobDueDate": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"canChangeSharedJobDueDateEnabled": true,
"jobVendorsMayUploadReferences": true
},
"webEditorEnabledForLinguists": true
}Update user's organization access and security settings
This update replaces most settings: omitted fields are reset to their defaults (booleans) or to empty lists (e.g. allowedDomains). Call the GET endpoint first and send the full object back with only the intended changes. Fields left unchanged when omitted (null): allowAccountSupport, sessionTimeoutMinutes, notifyJobOwnerStatusChanged, notifyUserMentionOrComment, notifyReference (when one of these is sent, its related template UID / groups field is written too, so send them together), autoUserActivation, useHttpsForWebhooks and trustedAddressesSettings. autoUserActivation is ignored when the organization’s edition does not support it; useHttpsForWebhooks and trustedAddressesSettings are ignored without advanced security. A supplied trustedAddressesSettings overwrites all four sub-sections (allRoles, adminPm, linguist, guestSubmitter): a missing sub-section clears its IP list and forbids access for that role, so always send all four.
curl --request PUT \
--url https://cloud.memsource.com/web/api2/v1/organizations/accessSettings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"vendors": {
"canChangeSharedJobDueDate": [
{
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
}
],
"canChangeSharedJobDueDateEnabled": true,
"jobVendorsMayUploadReferences": true
},
"allowAccountSupport": true,
"allowLoadingExternalContentInEditors": true,
"allowLoadingIframes": true,
"allowedDomains": [
"<string>"
],
"autoUserActivation": true,
"downloadEnabled": true,
"emailNotifications": true,
"linguistsMayDownloadLqaReport": true,
"linguistsMayEditLockedSegments": true,
"linguistsMayEditSource": true,
"linguistsMayEditTagContent": true,
"notifyJobOwnerStatusChanged": true,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": true,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": true,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"showUserDataToLinguists": true,
"strictWorkflowFinish": true,
"triggerWebhooks": true,
"useHttpsForWebhooks": true,
"useVendors": true,
"userMaySetInstantQA": true,
"usernamesDisplayedInLqaReport": true,
"usersMaySetAutoPropagation": true,
"webEditorEnabledForLinguists": true
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/organizations/accessSettings"
payload = {
"vendors": {
"canChangeSharedJobDueDate": [{ "uid": "3HYnHHLkTPJfMxBCDbPXFe" }],
"canChangeSharedJobDueDateEnabled": True,
"jobVendorsMayUploadReferences": True
},
"allowAccountSupport": True,
"allowLoadingExternalContentInEditors": True,
"allowLoadingIframes": True,
"allowedDomains": ["<string>"],
"autoUserActivation": True,
"downloadEnabled": True,
"emailNotifications": True,
"linguistsMayDownloadLqaReport": True,
"linguistsMayEditLockedSegments": True,
"linguistsMayEditSource": True,
"linguistsMayEditTagContent": True,
"notifyJobOwnerStatusChanged": True,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": True,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": True,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"showUserDataToLinguists": True,
"strictWorkflowFinish": True,
"triggerWebhooks": True,
"useHttpsForWebhooks": True,
"useVendors": True,
"userMaySetInstantQA": True,
"usernamesDisplayedInLqaReport": True,
"usersMaySetAutoPropagation": True,
"webEditorEnabledForLinguists": True
}
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({
vendors: {
canChangeSharedJobDueDate: [{uid: '3HYnHHLkTPJfMxBCDbPXFe'}],
canChangeSharedJobDueDateEnabled: true,
jobVendorsMayUploadReferences: true
},
allowAccountSupport: true,
allowLoadingExternalContentInEditors: true,
allowLoadingIframes: true,
allowedDomains: ['<string>'],
autoUserActivation: true,
downloadEnabled: true,
emailNotifications: true,
linguistsMayDownloadLqaReport: true,
linguistsMayEditLockedSegments: true,
linguistsMayEditSource: true,
linguistsMayEditTagContent: true,
notifyJobOwnerStatusChanged: true,
notifyJobOwnerStatusChangedTemplateUid: '<string>',
notifyReference: true,
notifyReferenceGroups: '<string>',
notifyReferenceTemplateUid: '<string>',
notifyUserMentionOrComment: true,
notifyUserMentionOrCommentTemplateUid: '<string>',
showUserDataToLinguists: true,
strictWorkflowFinish: true,
triggerWebhooks: true,
useHttpsForWebhooks: true,
useVendors: true,
userMaySetInstantQA: true,
usernamesDisplayedInLqaReport: true,
usersMaySetAutoPropagation: true,
webEditorEnabledForLinguists: true
})
};
fetch('https://cloud.memsource.com/web/api2/v1/organizations/accessSettings', 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/organizations/accessSettings",
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([
'vendors' => [
'canChangeSharedJobDueDate' => [
[
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
]
],
'canChangeSharedJobDueDateEnabled' => true,
'jobVendorsMayUploadReferences' => true
],
'allowAccountSupport' => true,
'allowLoadingExternalContentInEditors' => true,
'allowLoadingIframes' => true,
'allowedDomains' => [
'<string>'
],
'autoUserActivation' => true,
'downloadEnabled' => true,
'emailNotifications' => true,
'linguistsMayDownloadLqaReport' => true,
'linguistsMayEditLockedSegments' => true,
'linguistsMayEditSource' => true,
'linguistsMayEditTagContent' => true,
'notifyJobOwnerStatusChanged' => true,
'notifyJobOwnerStatusChangedTemplateUid' => '<string>',
'notifyReference' => true,
'notifyReferenceGroups' => '<string>',
'notifyReferenceTemplateUid' => '<string>',
'notifyUserMentionOrComment' => true,
'notifyUserMentionOrCommentTemplateUid' => '<string>',
'showUserDataToLinguists' => true,
'strictWorkflowFinish' => true,
'triggerWebhooks' => true,
'useHttpsForWebhooks' => true,
'useVendors' => true,
'userMaySetInstantQA' => true,
'usernamesDisplayedInLqaReport' => true,
'usersMaySetAutoPropagation' => true,
'webEditorEnabledForLinguists' => true
]),
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/organizations/accessSettings"
payload := strings.NewReader("{\n \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\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/organizations/accessSettings")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/organizations/accessSettings")
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 \"vendors\": {\n \"canChangeSharedJobDueDate\": [\n {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n }\n ],\n \"canChangeSharedJobDueDateEnabled\": true,\n \"jobVendorsMayUploadReferences\": true\n },\n \"allowAccountSupport\": true,\n \"allowLoadingExternalContentInEditors\": true,\n \"allowLoadingIframes\": true,\n \"allowedDomains\": [\n \"<string>\"\n ],\n \"autoUserActivation\": true,\n \"downloadEnabled\": true,\n \"emailNotifications\": true,\n \"linguistsMayDownloadLqaReport\": true,\n \"linguistsMayEditLockedSegments\": true,\n \"linguistsMayEditSource\": true,\n \"linguistsMayEditTagContent\": true,\n \"notifyJobOwnerStatusChanged\": true,\n \"notifyJobOwnerStatusChangedTemplateUid\": \"<string>\",\n \"notifyReference\": true,\n \"notifyReferenceGroups\": \"<string>\",\n \"notifyReferenceTemplateUid\": \"<string>\",\n \"notifyUserMentionOrComment\": true,\n \"notifyUserMentionOrCommentTemplateUid\": \"<string>\",\n \"showUserDataToLinguists\": true,\n \"strictWorkflowFinish\": true,\n \"triggerWebhooks\": true,\n \"useHttpsForWebhooks\": true,\n \"useVendors\": true,\n \"userMaySetInstantQA\": true,\n \"usernamesDisplayedInLqaReport\": true,\n \"usersMaySetAutoPropagation\": true,\n \"webEditorEnabledForLinguists\": true\n}"
response = http.request(request)
puts response.read_body{
"allowAccountSupport": true,
"allowLoadingExternalContentInEditors": true,
"allowLoadingIframes": true,
"allowedDomains": [
"<string>"
],
"autoUserActivation": true,
"ccEmailEnabled": true,
"downloadEnabled": true,
"emailNotifications": true,
"linguistsMayDownloadLqaReport": true,
"linguistsMayEditLockedSegments": true,
"linguistsMayEditSource": true,
"linguistsMayEditTagContent": true,
"notifyJobOwnerStatusChanged": true,
"notifyJobOwnerStatusChangedTemplateUid": "<string>",
"notifyReference": true,
"notifyReferenceGroups": "<string>",
"notifyReferenceTemplateUid": "<string>",
"notifyUserMentionOrComment": true,
"notifyUserMentionOrCommentTemplateUid": "<string>",
"secureEmailSendingProcessLegacyBehaviorEnabled": true,
"sessionTimeoutMinutes": 123,
"showUserDataToLinguists": true,
"strictWorkflowFinish": true,
"triggerWebhooks": true,
"trustedAddressesSettings": {
"settingsType": "BASIC",
"adminPm": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"allRoles": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"guestSubmitter": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
},
"linguist": {
"accessMode": "ACCESS_FORBIDDEN",
"trustedIpAddresses": [
"<string>"
]
}
},
"useHttpsForWebhooks": true,
"useVendors": true,
"userMaySetInstantQA": true,
"usernamesDisplayedInLqaReport": true,
"usersMaySetAutoPropagation": true,
"vendors": {
"canChangeSharedJobDueDate": [
{
"id": "<string>",
"name": "<string>",
"uid": "<string>"
}
],
"canChangeSharedJobDueDateEnabled": true,
"jobVendorsMayUploadReferences": true
},
"webEditorEnabledForLinguists": true
}Authorizations
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
Show child attributes
Show child attributes
If null, no change is performed
Default: true
Default: false
If null (or not supported by edition), no change is performed
Default: false
Default: false
Default: true
Default: false
Default: true
Default: true
If null, no change is performed
If null, no change is performed
If null, no change is performed
If null, no change is performed
15, 30, 60, 120, 240, 480, 720, 1440, 4320 Default: false
Default: false
Default: true
Show child attributes
Show child attributes
If null (or not supported by edition), no change is performed
Default: false
Default: true
Default: true
Default: true
Default: false
Response
successful operation
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?