GET /api/:space/translations/languages

Description:

Returns a list of added languages to the space that were configured by the user.

Resource URL:

https://<apphost>.competitionlabs.com/api/<your-space-name>/translations/languages

Request headers

KeyValueRequired
X-API-KEY
Your unique API keyYes
Content-Type
application/jsonYes

Request URL parameters

Parameter
Type
Required
Description
space
StringYes

This is the space name which is linked to the account

Additional Query String Parameters

You can use the query parameters along with the generic parameters.


Query parameters 

Parameter
Type
Constraint
Usage
key
String

Case sensitive

?key=search_word
created
DateTimeWorks with simple dates or date and time, eg: created=2016-02-07, created=2018-08-23T14:23:09
?created=search_DateTime
id
StringCase sensitive
?id=search_word


EXAMPLE

Request
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/translations/languages
Response
{
    "meta": {
        "totalRecordsFound": 2,
        "skip": 0,
        "limit": 20
    },
    "data": [
        {
            "jsonClass": "LanguageHelper",
            "key": "de",
            "references": [],
            "accountId": "QmTaPGUBsZyUBGOR_u9A",
            "created": "2018-09-13T08:35:02.227+00:00",
            "id": "MLMR0mUBOmEkXOJnu2TT"
        },
        {
            "jsonClass": "LanguageHelper",
            "key": "en",
            "references": [],
            "accountId": "QmTaPGUBsZyUBGOR_u9A",
            "created": "2018-09-13T08:34:49.771+00:00",
            "id": "L7MR0mUBOmEkXOJni2Qr"
        }
    ]
}
Request with Query string parameters
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/translations/languages?created=2018-09-13T08:34:49.771
Response for Query string request
{
    "meta": {
        "totalRecordsFound": 1,
        "skip": 0,
        "limit": 20
    },
    "data": [
        {
            "jsonClass": "LanguageHelper",
            "key": "en",
            "references": [],
            "accountId": "QmTaPGUBsZyUBGOR_u9A",
            "created": "2018-09-13T08:34:49.771+00:00",
            "id": "L7MR0mUBOmEkXOJni2Qr"
        }
    ]
}

ERROR CODES

CodeHTTP StatusDescriptionExample

404Inserting or removing the necessary information of the Request URL parameter
Error Response 404
{
    "status": 404
}