client.projects.create({
"id": "movieDb",
"name": "Movie database",
"description": "A source of movie and TV series",
"primaryLanguage": "en-GB",
"supportedLanguage": [
"fr-FR",
"de-DE"
]
})
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});
JSON
1
2
3
4
5
6
7
8
9
10
11
{
"logId": "00000000-0000-0000-0000-000000000000",
"message": "There are validation errors creating the project",
"data": [
{
"field": "",
"message": "A project with this Id already exists"
}
],
"type": "Validation"
}
JSON
1
2
3
4
5
6
7
8
9
10
11
{
"logId": "00000000-0000-0000-0000-000000000000",
"message": "There are validation errors creating the project",
"data": [
{
"field": "Project",
"message": "The primary language code is not valid"
}
],
"type": "Validation"
}