curl --request PUT \
--url https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"defaultScheme": true,
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"workflowStepNetSchemes": [
{
"workflowStep": {
"id": "<string>"
},
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
}
}
]
}
'import requests
url = "https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}"
payload = {
"name": "<string>",
"defaultScheme": True,
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"workflowStepNetSchemes": [
{
"workflowStep": { "id": "<string>" },
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
}
}
]
}
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({
name: '<string>',
defaultScheme: true,
rates: {
if0: 123,
if100: 123,
if50: 123,
if75: 123,
if85: 123,
if95: 123,
mt0: 123,
mt100: 123,
mt50: 123,
mt75: 123,
mt85: 123,
mt95: 123,
nt0: 123,
nt100: 123,
nt50: 123,
nt75: 123,
nt85: 123,
nt99: 123,
repetition: 123,
tm0: 123,
tm100: 123,
tm101: 123,
tm50: 123,
tm75: 123,
tm85: 123,
tm95: 123
},
workflowStepNetSchemes: [
{
workflowStep: {id: '<string>'},
rates: {
if0: 123,
if100: 123,
if50: 123,
if75: 123,
if85: 123,
if95: 123,
mt0: 123,
mt100: 123,
mt50: 123,
mt75: 123,
mt85: 123,
mt95: 123,
nt0: 123,
nt100: 123,
nt50: 123,
nt75: 123,
nt85: 123,
nt99: 123,
repetition: 123,
tm0: 123,
tm100: 123,
tm101: 123,
tm50: 123,
tm75: 123,
tm85: 123,
tm95: 123
}
}
]
})
};
fetch('https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}', 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/v2/netRateSchemes/{netRateSchemeUid}",
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([
'name' => '<string>',
'defaultScheme' => true,
'rates' => [
'if0' => 123,
'if100' => 123,
'if50' => 123,
'if75' => 123,
'if85' => 123,
'if95' => 123,
'mt0' => 123,
'mt100' => 123,
'mt50' => 123,
'mt75' => 123,
'mt85' => 123,
'mt95' => 123,
'nt0' => 123,
'nt100' => 123,
'nt50' => 123,
'nt75' => 123,
'nt85' => 123,
'nt99' => 123,
'repetition' => 123,
'tm0' => 123,
'tm100' => 123,
'tm101' => 123,
'tm50' => 123,
'tm75' => 123,
'tm85' => 123,
'tm95' => 123
],
'workflowStepNetSchemes' => [
[
'workflowStep' => [
'id' => '<string>'
],
'rates' => [
'if0' => 123,
'if100' => 123,
'if50' => 123,
'if75' => 123,
'if85' => 123,
'if95' => 123,
'mt0' => 123,
'mt100' => 123,
'mt50' => 123,
'mt75' => 123,
'mt85' => 123,
'mt95' => 123,
'nt0' => 123,
'nt100' => 123,
'nt50' => 123,
'nt75' => 123,
'nt85' => 123,
'nt99' => 123,
'repetition' => 123,
'tm0' => 123,
'tm100' => 123,
'tm101' => 123,
'tm50' => 123,
'tm75' => 123,
'tm85' => 123,
'tm95' => 123
]
]
]
]),
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/v2/netRateSchemes/{netRateSchemeUid}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\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/v2/netRateSchemes/{netRateSchemeUid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}")
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 \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"defaultScheme": true,
"id": "<string>",
"name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"uid": "<string>",
"workflowStepNetSchemes": [
{
"id": "<string>",
"workflowStep": {
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
}
]
}Edit net rate scheme
curl --request PUT \
--url https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"defaultScheme": true,
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"workflowStepNetSchemes": [
{
"workflowStep": {
"id": "<string>"
},
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
}
}
]
}
'import requests
url = "https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}"
payload = {
"name": "<string>",
"defaultScheme": True,
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"workflowStepNetSchemes": [
{
"workflowStep": { "id": "<string>" },
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
}
}
]
}
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({
name: '<string>',
defaultScheme: true,
rates: {
if0: 123,
if100: 123,
if50: 123,
if75: 123,
if85: 123,
if95: 123,
mt0: 123,
mt100: 123,
mt50: 123,
mt75: 123,
mt85: 123,
mt95: 123,
nt0: 123,
nt100: 123,
nt50: 123,
nt75: 123,
nt85: 123,
nt99: 123,
repetition: 123,
tm0: 123,
tm100: 123,
tm101: 123,
tm50: 123,
tm75: 123,
tm85: 123,
tm95: 123
},
workflowStepNetSchemes: [
{
workflowStep: {id: '<string>'},
rates: {
if0: 123,
if100: 123,
if50: 123,
if75: 123,
if85: 123,
if95: 123,
mt0: 123,
mt100: 123,
mt50: 123,
mt75: 123,
mt85: 123,
mt95: 123,
nt0: 123,
nt100: 123,
nt50: 123,
nt75: 123,
nt85: 123,
nt99: 123,
repetition: 123,
tm0: 123,
tm100: 123,
tm101: 123,
tm50: 123,
tm75: 123,
tm85: 123,
tm95: 123
}
}
]
})
};
fetch('https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}', 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/v2/netRateSchemes/{netRateSchemeUid}",
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([
'name' => '<string>',
'defaultScheme' => true,
'rates' => [
'if0' => 123,
'if100' => 123,
'if50' => 123,
'if75' => 123,
'if85' => 123,
'if95' => 123,
'mt0' => 123,
'mt100' => 123,
'mt50' => 123,
'mt75' => 123,
'mt85' => 123,
'mt95' => 123,
'nt0' => 123,
'nt100' => 123,
'nt50' => 123,
'nt75' => 123,
'nt85' => 123,
'nt99' => 123,
'repetition' => 123,
'tm0' => 123,
'tm100' => 123,
'tm101' => 123,
'tm50' => 123,
'tm75' => 123,
'tm85' => 123,
'tm95' => 123
],
'workflowStepNetSchemes' => [
[
'workflowStep' => [
'id' => '<string>'
],
'rates' => [
'if0' => 123,
'if100' => 123,
'if50' => 123,
'if75' => 123,
'if85' => 123,
'if95' => 123,
'mt0' => 123,
'mt100' => 123,
'mt50' => 123,
'mt75' => 123,
'mt85' => 123,
'mt95' => 123,
'nt0' => 123,
'nt100' => 123,
'nt50' => 123,
'nt75' => 123,
'nt85' => 123,
'nt99' => 123,
'repetition' => 123,
'tm0' => 123,
'tm100' => 123,
'tm101' => 123,
'tm50' => 123,
'tm75' => 123,
'tm85' => 123,
'tm95' => 123
]
]
]
]),
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/v2/netRateSchemes/{netRateSchemeUid}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\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/v2/netRateSchemes/{netRateSchemeUid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v2/netRateSchemes/{netRateSchemeUid}")
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 \"name\": \"<string>\",\n \"defaultScheme\": true,\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n },\n \"workflowStepNetSchemes\": [\n {\n \"workflowStep\": {\n \"id\": \"<string>\"\n },\n \"rates\": {\n \"if0\": 123,\n \"if100\": 123,\n \"if50\": 123,\n \"if75\": 123,\n \"if85\": 123,\n \"if95\": 123,\n \"mt0\": 123,\n \"mt100\": 123,\n \"mt50\": 123,\n \"mt75\": 123,\n \"mt85\": 123,\n \"mt95\": 123,\n \"nt0\": 123,\n \"nt100\": 123,\n \"nt50\": 123,\n \"nt75\": 123,\n \"nt85\": 123,\n \"nt99\": 123,\n \"repetition\": 123,\n \"tm0\": 123,\n \"tm100\": 123,\n \"tm101\": 123,\n \"tm50\": 123,\n \"tm75\": 123,\n \"tm85\": 123,\n \"tm95\": 123\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"createdBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"uid": "<string>",
"userName": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"defaultScheme": true,
"id": "<string>",
"name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"rates": {
"if0": 123,
"if100": 123,
"if50": 123,
"if75": 123,
"if85": 123,
"if95": 123,
"mt0": 123,
"mt100": 123,
"mt50": 123,
"mt75": 123,
"mt85": 123,
"mt95": 123,
"nt0": 123,
"nt100": 123,
"nt50": 123,
"nt75": 123,
"nt85": 123,
"nt99": 123,
"repetition": 123,
"tm0": 123,
"tm100": 123,
"tm101": 123,
"tm50": 123,
"tm75": 123,
"tm85": 123,
"tm95": 123
},
"uid": "<string>",
"workflowStepNetSchemes": [
{
"id": "<string>",
"workflowStep": {
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
}
]
}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.
Path Parameters
Body
1 - 255Net rate percentages per match category. Non-translatable (NT) rates are returned as zero when the organization edition does not include the non-translatables-in-analyses feature.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Accepted
Show child attributes
Show child attributes
Date and time the scheme was created
Whether this scheme is the organization default applied when none is specified
Internal numeric identifier, encoded as a string
Name of the net rate scheme
Show child attributes
Show child attributes
Net rate percentages per match category. Non-translatable (NT) rates are returned as zero when the organization edition does not include the non-translatables-in-analyses feature.
Show child attributes
Show child attributes
Unique identifier used in API paths
Per-workflow-step rates; steps of deleted workflow steps are excluded
Show child attributes
Show child attributes
Was this page helpful?