Add Project
Creates new project.
Request type: POST
API Endpoint
https://api.translized.com/project/add
Parameters
Param | Type | Required | Description |
---|---|---|---|
projectName | String | True | Name of project |
languageCode | String | True | Primary language code |
Example requests
- cURL
- Javascript Fetch
- Javascript Axios
curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
-d "{"projectName":"Translized", "languageCode":"en"}" \
https://api.translized.com/project/add
fetch('https://api.translized.com/project/add', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
body: JSON.stringify({
projectName: 'Translized',
languageCode: 'en',
}),
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error(error));
const response = await axios.post(
'https://api.translized.com/project/add',
{
projectName: 'Translized',
languageCode: 'en',
},
{
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
}
);
const data = response.result;
info
List of all supported languages with languageCode values can be found in our Supported Languages section.
Example response
{
"result": {
"id": "wJKaNayBDM",
"name": "Translized",
"createdAt": "2021-09-08T13:26:23.668Z",
"primaryLanguage":"en"
}
}