Skip to main content
Creates the next version of the parser for a vertical: version 1 for a new vertical, otherwise the highest existing version plus one. The new version is active. Other versions of the vertical keep their is_active value, and the active parser of the vertical is always its highest active version.

Authentication

Session token (Authorization: Bearer <token>) with the parsers:write permission. Tenant roles with it: company_admin, company_tech, operational_supervisor, corporate_client.
The integration API key (x-wede-api-key) has no parsers:* permission. Calls with an API key return 403 forbidden.

Body

string
required
Vertical code, 2 to 50 characters, lowercase letters and _ only.
string
required
2 to 100 characters.
string
Up to 500 characters.
object[]
required
1 to 50 field definitions.

Field definition

string
required
Stable identifier of the field. Updates match fields by id.
string
required
Field name, for example event_id.
string
required
Short code for the field, up to 8 characters.
string
required
string, number, boolean, gps, text, timestamp, enum, phone, email, address or hardware_id.
boolean
required
Whether the field must be filled.
boolean
required
Whether the field is in use. Only enabled fields are returned in a mission’s parser_schema.
string
required
core, location, human, hardware, team or custom.
integer
required
Maximum size of the value in bytes, from 1 to 160.
string
Description of the field. Defaults to an empty string.
boolean
default:"true"
Marks the field as available for offline capture.
string[]
Allowed values for an enum field.
boolean
Marks a custom field.
Marks the field as personal data. It is a label only: you decide whether the field is enabled and whether it travels offline. See field protection.
boolean
default:"false"
Marks the field as the dispatch action field.
boolean
default:"false"
Once stored as true, the field cannot be removed or disabled, and only wede can change the flag. See field protection.

Example

Response 201

The parser object, as in List parsers, with defaults applied to each field.

Errors