curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/projectTemplates \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"project": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"dynamicTitle": "<string>",
"useDynamicTitle": true
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/projectTemplates"
payload = {
"name": "<string>",
"project": { "uid": "3HYnHHLkTPJfMxBCDbPXFe" },
"dynamicTitle": "<string>",
"useDynamicTitle": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
project: {uid: '3HYnHHLkTPJfMxBCDbPXFe'},
dynamicTitle: '<string>',
useDynamicTitle: true
})
};
fetch('https://cloud.memsource.com/web/api2/v1/projectTemplates', 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/projectTemplates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'project' => [
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
],
'dynamicTitle' => '<string>',
'useDynamicTitle' => 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/projectTemplates"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://cloud.memsource.com/web/api2/v1/projectTemplates")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/projectTemplates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}"
response = http.request(request)
puts response.read_body{
"assignedTo": [
{
"providers": [
{
"type": "<string>",
"id": "<string>",
"uid": "<string>"
}
],
"targetLang": "<string>"
}
],
"businessUnit": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"client": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"costCenter": {
"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",
"dateModified": "{ \"epochSeconds\": 1624619701, \"nano\": 0 }",
"dateTimeModified": "2023-11-07T05:31:56Z",
"domain": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"dynamicTitle": "<string>",
"fileHandoverSettings": {
"fileHandover": true
},
"id": "<string>",
"importSettings": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"modifiedBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"name": "<string>",
"note": "<string>",
"notifyProviders": {
"organizationEmailTemplate": {},
"notificationIntervalInMinutes": 720
},
"owner": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"projectWorkflowSettings": {
"completeUnassigned": true,
"propagateTranslationsToLowerWfDuringUpdateSource": true
},
"sourceLang": "<string>",
"subDomain": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"targetLangs": [
"<string>"
],
"templateName": "<string>",
"uid": "<string>",
"useDynamicTitle": true,
"vendor": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"workflowSettings": [
{
"assignedTo": [
{
"providers": [
{
"type": "<string>",
"id": "<string>",
"uid": "<string>"
}
],
"targetLang": "<string>"
}
],
"lqaProfile": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"notifyProvider": {
"organizationEmailTemplate": {},
"notificationIntervalInMinutes": 720
},
"workflowStep": {
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
}
],
"workflowSteps": [
{
"abbr": "<string>",
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
]
}Create project template
Creates a project template by copying the settings of an existing project referenced by project.uid. The source language, target languages, and workflow steps of that project are inherited by the new template and returned in the response — they cannot be set directly in this request.
To create a template with a specific source/target language or workflow, first create or find a project that already has those settings, then save it as a template via this endpoint. Alternatively, create the template with a placeholder project and then use PUT /projectTemplates/{projectTemplateUid} (or the v2 equivalent) to set sourceLang, targetLangs, and workFlowSettings directly, or PATCH /projectTemplates/{projectTemplateUid} to set sourceLang and targetLangs — no source project with those settings is required.
project.uid is required and must be the UID of an existing project; an unknown or placeholder value (for example "null") returns 404.
The name field in the request is stored and returned as templateName in the response. The response also contains a separate name field, which is inherited from the source project.
importSettings references organization-level import settings; see List import settings and Create import settings.
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/projectTemplates \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"project": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"dynamicTitle": "<string>",
"useDynamicTitle": true
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/projectTemplates"
payload = {
"name": "<string>",
"project": { "uid": "3HYnHHLkTPJfMxBCDbPXFe" },
"dynamicTitle": "<string>",
"useDynamicTitle": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
project: {uid: '3HYnHHLkTPJfMxBCDbPXFe'},
dynamicTitle: '<string>',
useDynamicTitle: true
})
};
fetch('https://cloud.memsource.com/web/api2/v1/projectTemplates', 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/projectTemplates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'project' => [
'uid' => '3HYnHHLkTPJfMxBCDbPXFe'
],
'dynamicTitle' => '<string>',
'useDynamicTitle' => 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/projectTemplates"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://cloud.memsource.com/web/api2/v1/projectTemplates")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/projectTemplates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"project\": {\n \"uid\": \"3HYnHHLkTPJfMxBCDbPXFe\"\n },\n \"dynamicTitle\": \"<string>\",\n \"useDynamicTitle\": true\n}"
response = http.request(request)
puts response.read_body{
"assignedTo": [
{
"providers": [
{
"type": "<string>",
"id": "<string>",
"uid": "<string>"
}
],
"targetLang": "<string>"
}
],
"businessUnit": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"client": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"costCenter": {
"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",
"dateModified": "{ \"epochSeconds\": 1624619701, \"nano\": 0 }",
"dateTimeModified": "2023-11-07T05:31:56Z",
"domain": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"dynamicTitle": "<string>",
"fileHandoverSettings": {
"fileHandover": true
},
"id": "<string>",
"importSettings": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"modifiedBy": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"name": "<string>",
"note": "<string>",
"notifyProviders": {
"organizationEmailTemplate": {},
"notificationIntervalInMinutes": 720
},
"owner": {
"email": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"role": "SYS_ADMIN",
"uid": "<string>",
"userName": "<string>"
},
"projectWorkflowSettings": {
"completeUnassigned": true,
"propagateTranslationsToLowerWfDuringUpdateSource": true
},
"sourceLang": "<string>",
"subDomain": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"targetLangs": [
"<string>"
],
"templateName": "<string>",
"uid": "<string>",
"useDynamicTitle": true,
"vendor": {
"id": "<string>",
"name": "<string>",
"uid": "<string>"
},
"workflowSettings": [
{
"assignedTo": [
{
"providers": [
{
"type": "<string>",
"id": "<string>",
"uid": "<string>"
}
],
"targetLang": "<string>"
}
],
"lqaProfile": {
"uid": "3HYnHHLkTPJfMxBCDbPXFe"
},
"notifyProvider": {
"organizationEmailTemplate": {},
"notificationIntervalInMinutes": 720
},
"workflowStep": {
"id": "<string>",
"lqaEnabled": true,
"name": "<string>",
"order": 123,
"uid": "<string>"
}
}
],
"workflowSteps": [
{
"abbr": "<string>",
"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.
Body
Project template to create
Response
Created
Was this page helpful?