Hello, I tried calling one of your endpoints and I get a promise resulting in 409 error. My code looks like this:
private async testFunct() {
const config = {
headers: {
'Authorization': `Bearer *mybearertoken*`,
'content-type': `application/vnd.api+json` }
};
const bodyParameters = {
"data": {
"relationships": {
"language": {
"data": {
"id": "l:en_US",
"type": "languages"
}
},
"resource": {
"data": {
"id": "o:testorgforme:p:testproject-89:r:en-us1json",
"type": "resources"
}
}
},
"type": "resource_translations_async_downloads"
}
};
try {
const response = axios.post(
'https://rest.api.transifex.com/resource_translations_async_downloads',
bodyParameters,
config
);
console.log(response);
} catch (error) {
console.log('problem with axios call: ', error);
}
}
In your docs it says “Value some_field_value
already exists”. Not sure what to do.
Thank you.