Register or unregister a Terminal from a Terminal Policy

Format

MethodPOST
URL

/tasks/create

Request contentTerminalPolicyRegister Object
Sucessful answerTaskResult Object
Unexpected errorHTTP 500

TerminalPolicyRegister Object

Schema

repeatStringReserved
retriesStringNumber of times this task will be retried, in case of error
typeStringTask type identifier. In this case, "tpolicy_action"
terminal_policy_idStringUnique identifier of the Terminal Policy to modify
actionStringOne of "register,$TERMINAL_ID" or "unregister,$TERMINAL_ID"

JSON example

{
    "repeat": "0",    
    "retries": "0",
    "type": "tpolicy_action",
    "terminal_policy_id": "default",
    "action": "register,3f1b622852e09f4c"
}