Enable/Disable Language for Rewards

This API allows you to enable and disable the language metadata for rewards for your organization.

Prerequisites

  • Authentication: Basic or OAuth credentials
  • Default access group

Resource information

FieldValue
URLhttps\://{{eu}}/api\_gateway/rewards/core/v1/metadata/language/12/status/disable
HTTP methodPUT
PaginationNA
Rate limitNA

Example API cURL

Enable language

curl --location --request PUT 'https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/metadata/language/12/status/enable' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Authorization: Basic Z2VvcmdlLmpvaG5zb246OTg4OTU2NWI4ODVhMmY4ZWE1MTk1MjA2NWEwYTEzNzg=' \
--header 'Cookie: _cfuvid=Vo40i2sQt2b9D_BbvyU32Wbvu39g2t0iystT.W9RDJ0-1751522911573-0.0.1.1-604800000' \
--data ''

Disable language

curl --location --request PUT 'https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/metadata/language/12/status/disable' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Authorization: Basic Z2VvcmdlLmpvaG5zb246OTg4OTU2NWI4ODVhMmY4ZWE1MTk1MjA2NWEwYTEzNzg=' \
--header 'Cookie: _cfuvid=Vo40i2sQt2b9D_BbvyU32Wbvu39g2t0iystT.W9RDJ0-1751522911573-0.0.1.1-604800000' \
--data ''

Response parameters

ParameterData TypeDescription
statusObjectAn object containing the status of the response.
successBooleanIndicates whether the request was successful.
codeIntegerA specific code indicating the result of the operation.
messageStringA descriptive message providing more information about the status.
{
    "status": {
        "success": true,
        "code": 2016,
        "message": "Language updated successfully"
    }
}

API specific error codes

CodeDescriptionReason
2016Language updated successfullyThe language status (disabled/enabled) was successfully updated.
2104Language not foundThe specified language code does not exist.
400Invalid RequestThe request parameters or format were invalid.
404Resource not foundThe requested API endpoint or resource does not exist.
500UNEXPECTED_ERRORAn unexpected error occurred on the server.
Language
URL
Click Try It! to start a request and see the response here!