Contact us Login LIVE DEMO FREE TRIAL

update

Update existing form values of given task.

required subuser rights: task_update

parameters:
name description type
task_id task id int
values map of field_id-value object JSON object

values object example

{
    "111-aaa-whatever": {
      "type": "text",
      "value": "text field value"
    }
}

For value object description, see form/form-fields-and-values/

return:

{
    "success": true
}

errors:

  • 101 – In demo mode this function is disabled (if current user has “demo” flag)
  • 201 – Not found in database (if task with the specified id does not exist)
  • 255 – Invalid task state (if task has already done or failed or no values was submitted)
  • 242 – There were errors during content validation (if given values are invalid for the form). Example:
{
    "success": false,
    "status": {
        "code": 242,
        "description": "There were errors during content validation"
    },
    "errors": [
        {
            "field_id": "111-aaa-whatever",
            "code": 5,
            "error": "text length constraints are not met"
        }
    ]
}

Validation error codes:

  • 1 – field is required but has no value
  • 2 – field value type doesn’t match field type
  • 3 – field value is null
  • 4 – value index out of bounds
  • 5 – invalid value size
  • 6 – value less than minimum
  • 7 – value more than maximum
  • 8 – field contains invalid references
  • 9 – invalid file type
  • 10 – invalid file state

If you have more questions please contact our support team

Contacts

USA: +1 858 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 317 1622

Log in

Loading...

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more