Description:
Create a new Rules action helper.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/account/rule-action-helper
Request headers
Key | Value | Required |
---|---|---|
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameters
Parameter | Type | Required | Description |
---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
Post body parameters
Parameter | Type | Required | Description | |||
---|---|---|---|---|---|---|
name | String | Yes | The name of the Action Helper, for example; Win, Bet etc. | |||
key | String | Yes | A unique key that represents an action helper, for example win, bet | |||
description | String | Optional | The description of the action helper for your reference | |||
unitOfMeasureType | String | Yes | A type of unit of measure, eg. Currency, Mass, Time and etc. | |||
metadata | Array [Object] | Optional | A list of MetaData. An object of key value pair (KVP): | |||
Parameter | Type | Required | Description | |||
key | String | Yes | Is a unique identifier | |||
value | Array [String] | Yes | The data that is identified. |
EXAMPLE
ERROR CODES
Code | HTTP Status | Description | Example |
---|---|---|---|
1021 | 409 | Duplicate unit of measure found | |
1001 | 400 |
| |
404 | Adding anything extra to the Resource URL | ||
1002 | 404 |
|