Description:
Update an Action Helper by Id.
The Action helper that needs to be updated its Id has to exist in the Request body field.
Any Put body Parameters that are excluded in the Request body field will be considered as empty and updated with an empty field
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/account/rule-action-helper/<id>
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 |
id | String | Yes | Action helper identifier retrieved from GET RuleActionHelper resource |
Put 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 |
system | Boolean | Optional | A boolean value (true/false) that represents the Action Helpers state. A system reserved entry (set to true) cannot be deleted. |
unitOfMeasureType | String | Yes | A type of unit of measure, eg. Currency, Mass, Time and etc. |
metadata | Array [Object] | Optional | A list of MetaData |
Id | String | Yes | Unique system identifier of an Action Helper |
EXAMPLE
ERROR CODES
Code | HTTP Status | Description | Example |
---|---|---|---|
404 | Inserting the Id in the Request URL parameter | ||
503 | Updating without the Id parameter | ||
1001 | 400 |
| |
1007 | 404 | A record with requested id for action helper was not found | |
1002 | 404 |
|