pushAntiGateVariable: submit a variable value for AntiGate task

AntiGate tasks have a feature: variable values can be submitted later, after a task was created. To do this, follow these steps:

  1. Add a step "WAIT_FOR_VARIABLE_VALUE" to your template and specify variable name as a permanent value.
  2. As all the variable values should be sent to createTask method, substitute variable value with a string "_WAIT_FOR_IT_".

If your task creation request could look something like this:

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
            "templateName":"Template name here",
            "variables": {
                "other_var1":"some value",
                "other_var2":"some value"

Then a request updating variable "my_late_variable" should look like this:

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
    "value":"The value which worker should be waiting for"

Method: POST
Content-type: application-json

Request properties

nameStringYesName of the variable
valueAnyYesValue of the postponed variable

Response structure

errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code and its short description are available in errorCode and errorDescription properties.
errorDescriptionStringShort description of the error

Response example

JSON with no errors
JSON with an error