URL structure
{localeCode} is a supported locale code.
Supported methods and overview
GET- retrieves the contents of an internationalisation (i18n) bundle (specified bylocaleCode) as key/value pairs in JSON format.POST- uploads a custom i18n locale bundle (forlocaleCode) to the Covata Platform’s Access Service.
The
GET method takes no parameters.Detailed description
This API endpoint serves a number of purposes:- Retrieves the contents of the bundle (specified by
{localCode}) as key/value pairs in JSON format. - Uploads a custom i18n locale bundle (for
localeCode) to the Covata Platform’s Access Service.
Supported roles and conditions
This API endpoint supports requests utilising Covata user accounts with the following roles (as described in the SafeShare Administrator’s and Organisation Administrator’s Guides):- Originator, Collaborator, Ad hoc, SafeShare administrator and Organisation administrator - using the
GETmethod. - SafeShare administrator - using the
POSTmethod.
Required headers
The appropriate access token as theBearer token:
Authorisation: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
Content-Type: multipart/form-data
It is also worth appending to this header a
For example, to use the following string to demarcate each multi-part form data element:
assign this string value to the
boundary parameter, whose string value is used to demarcate each multi-part form data element of the request (i.e. this string is not used for any other purpose throughout the entire request). For example, to use the following string to demarcate each multi-part form data element:
-----------------------------12345678901234567890123456 assign this string value to the
boundary parameter, which in turn is appended to the Content-Type: multipart/form-data header, such that this header will be: Content-Type: multipart/form-data; boundary=-----------------------------12345678901234567890123456Required parameters on POST
The following required parameter must be sent in the body of the POST request, as an individual multi-part form data elements:-
file - The actual data of the custom i18n bundle (in JSON format) to be uploaded to the the Covata Platform’s Access Service.
Example:
Returns from a GET request
If the request succeeded, then an HTTP response status200 OK is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
- i18nCode - .
-
bundle - A list of key/value pairs consisting of a series of i18n keys and their respective content values.
Example:
Returns from a POST request
If the request succeeded, then an HTTP response status200 OK is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
-
bundleErrors - .
- deltas - .
- whitelisterrors - .
- success - .
-
errors - .
Example:

