GET /api/:space/account/rule-action-helper/:id

Description:

Returns an action helper information for the specified action helper identifier

Resource URL:

https://<apphost>.competitionlabs.com/api/<your-space-name>/account/rule-action-helper/<RuleActionHelperId>

Request headers

KeyValueRequired
X-API-KEY
Your unique API keyYes
Content-Type
application/jsonYes

Request URL parameters

Parameter
Type
Required
Description
space
StringYes

This is the space name which is linked to the account

id
StringYesAction helper identifier retrieved from GET RuleActionHelper resource

EXAMPLE

Request
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/account/rule-action-helper/8uSuDm8Brwnis6E2gEXT
Response
{
    "time": "2020-05-08T08:21:46.718Z",
    "data": {
        "jsonClass": "RuleActionHelper",
        "name": "bet",
        "key": "bet",
        "description": "bet",
        "accountId": "auyNjGYBZ-qHKtWicaaa",
        "system": false,
        "unitOfMeasureType": "Other",
        "metadata": [
            {
                "jsonClass": "Metadata",
                "key": "created",
                "value": "post"
            }
        ],
        "created": "2019-12-16T12:28:34.899+0000",
        "id": "8uSuDm8Brwnis6E2gEXT"
    }
}

ERROR CODES

CodeHTTP StatusDescriptionExample

404Modifying the Resource URL parameters that are mandatory
Error Response 404
{
    "status": 404
}
1007404UnitOfMeasure with CL-Id not found for the accountId
Error Response 404
{
    "errors": [
        {
            "message": "A record with requested id [8uSuDm8Brwnis6E2gEXTa] for action-helpers was not found.",
            "code": 1007,
            "status": 404
        }
    ]
}