Enable/Disable Language for Rewards
put https://{host}/api_gateway/rewards/core/v1/metadata/language/12/status/enable
This API allows you to enable and disable the language metadata for rewards for your organization.
Field | Value |
---|
URL | https\://{{eu}}/api\_gateway/rewards/core/v1/metadata/language/12/status/disable |
HTTP method | PUT |
Pagination | NA |
Rate limit | NA |
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 ''
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 ''
Parameter | Data Type | Description |
---|
status | Object | An object containing the status of the response. |
success | Boolean | Indicates whether the request was successful. |
code | Integer | A specific code indicating the result of the operation. |
message | String | A descriptive message providing more information about the status. |
{
"status": {
"success": true,
"code": 2016,
"message": "Language updated successfully"
}
}
Code | Description | Reason |
---|
2016 | Language updated successfully | The language status (disabled/enabled) was successfully updated. |
2104 | Language not found | The specified language code does not exist. |
400 | Invalid Request | The request parameters or format were invalid. |
404 | Resource not found | The requested API endpoint or resource does not exist. |
500 | UNEXPECTED_ERROR | An unexpected error occurred on the server. |