post https://{host}/api_gateway/rewards/core/v1/brand/config
This API allows you to set the org's start day of the week.
Note
- For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .
Prerequisites
- Authentication: Basic or OAuth authentication
- Default access group
Resource information
URI | api_gateway/rewards/core/v1/brand/config |
HTTP Method | POST |
Pagination | No |
Batch support | No |
Rate limit information | None |
API endpoint example
https://eucrm.cc.capillarytech.com/api_gateway/rewards/core/v1/brand/config
Request body parameters
Parameter | Data Type | Description |
---|---|---|
configKeyName | String | The name of the configuration setting: CONF_START_OF_THE_WEEK_FOR_ORG_RESTRICTION |
configKeyValue | Enum | The value of the configuration setting. Supported values: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. By default, the start day will be MONDAY. |
brandId | Integer | You can use the API and retrieve the brand ID of your brand. |
label | String | A descriptive note or label regarding the start date of the restriction. |
{
"configKeyName": "CONF_START_OF_THE_WEEK_FOR_ORG_RESTRICTION",
"configKeyValue": "SUNDAY",
"brandId": 47,
"label": ""
}
Response parameters
Parameter | Data Type | Description |
---|---|---|
success | Boolean | Indicates if the API call was successful. |
code | Integer | A code representing the API status. |
message | String | A description of the API call. |
configKeyName | String | The name of the configuration setting. |
configKeyValue | String | The value assigned to the configuration setting. |
brandId | Integer | You can use the API and retrieve the brand ID of your brand. |
label | String | A descriptive label explaining the configuration setting, its implications, and the context where it applies. |
{
"status": {
"success": true,
"code": 3008,
"message": "Org config updated successfully"
},
"configList": [
{
"configKeyName": "CONF_START_OF_THE_WEEK_FOR_ORG_RESTRICTION",
"configKeyValue": "TUESDAY",
"brandId": null,
"label": "Add the start of the week for the org level restrictions, this will be applied to all org level restrictions with Week configurations"
}
]
}
API- specific errors
Error code | Description |
---|---|
3004 | Brand not found. Pass a valid brand identifier. |