Logo
MicroStrategy REST API API Documentation

Creates a new language object

POST {{baseUrl}}/api/languages

Creates a new language object based on a base language with a new name

 

Body PARAM

Key Datatype Required Description 
fields
null Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization token




RESPONSES

status OK

{ "name": "Spanish v2", "id": "00100C0A4F95EF3956E52781700C1E7A", "baseLangLcid": 3082, "lcid": 1051658, "owner": { "id": "7FC05A65473CE2FD845CE6A1D3F13233", "name": "MSTR User" }, "lastModified": "2022-10-17T10:58:09+0000", "acg": 255 }



Curl
curl -X POST 'baseUrl/api/languages?fields=' -H 'X-MSTR-AuthToken: authToken' -d '{"name":"Spanish v2","baseLanguageLcid":3082}'

ENDPOINTS