Set Organisation Configuration

Use this API to set organisation configuration values. Specify a configuration key, its value, and the scope at which it applies.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this API to set organisation configuration values. Specify the configuration key name, the value to assign, and the scope at which it applies — such as organisation, store, or zone level. For example, setting CONF_MAX_CARDS_PER_ORG controls the maximum number of active cards a customer can hold.

Note: For detailed information about the APIs and for hands-on testing, refer to the API overview and the guide on making your first API call.

Prerequisites

  • Basic Authentication
  • Default access group

Example request

curl --location 'https://eu.api.capillarytech.com/v2/organization/configs?format=json' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Basic <base64_encoded_credentials>' \
--data '{
  "keyName": "CONF_MAX_CARDS_PER_ORG",
  "value": "40",
  "scope": "ORG"
}'

Body parameters

FieldTypeRequiredDescription
keyNamestringRequiredThe name of the configuration key to set. For example, CONF_MAX_CARDS_PER_ORG sets the maximum number of active cards a customer can hold.
valuestringRequiredThe value to assign to the configuration key.
scopeenumRequiredThe scope at which the configuration applies. Supported values: ORG, OU, ZONE, STORE, STR_SERVER, TILL, RULE. Case-sensitive.

Example response

{
    "id": 7417580,
    "entityId": 100737,
    "keyName": "CONF_MAX_CARDS_PER_ORG",
    "value": "40",
    "warnings": []
}
{
    "warnings": [],
    "errors": [
        {
            "status": false,
            "message": "All requests have failed due to errors",
            "code": 500
        }
    ]
}

Response parameters

FieldTypeDescription
idintegerUnique identifier for the configuration record.
entityIdintegerIdentifier of the entity to which the configuration applies.
keyNamestringThe configuration key that was set.
valuestringThe value assigned to the configuration key.
warningsarrayList of warnings returned with the response. Empty if none.

Error & warning codes

CodeError numberTypeDescription
500ErrorInternal server error. The server encountered an unexpected condition. Retry after a short delay. HTTP 500.
3206ErrorOrganisation configuration addition failure. The specified config key was not found. HTTP 400.
Body Params
string
enum
required

Pass CONF_MAX_CARDS_PER_ORG.

Allowed:
int32
required

Set the number of active cards a customer can have.

string
enum
required

Scope of the configuration. Pass ORG for org level configuration.

Allowed:
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json