Skip to main content

Edit - Trucker user

PUT 

/api/trucker/:id

Edit a trucker user associated with your company. Keep in mind that the email and tax ID cannot be repeated.

Request

Path Parameters

    id stringrequired

Header Parameters

    apikey stringrequired

    Apikey of a company linked to a user

Body

    name stringrequired

    Name of the trucker.

    email stringrequired

    Trucker email (Must be unique)

    phone string

    Trucker's phone.

    taxid stringrequired

    Truck driver's identity document (Must be unique).

Responses

Example response

Schema
    status integer
    data object
    _id string
    position object

    Array of services and their last known position

    deliveries object[]
    role string

    Account role ("driver", "dev", "manager" or "admin")

    status boolean

    Account status (Locked or active in boolean).

    reason string

    Account blocking reason.

    emailVerified boolean

    Boolean that indicates whether the email is verified.

    phone string

    Trucker's phone.

    country string

    Country of residence of the trucker.

    timezone string

    Trucker time zone.

    image string

    Trucker image.

    recovery_token string

    Password recovery token.

    i18n string

    Language of the trucker user.

    deleted boolean

    Boolean indicating whether the user has been deleted.

    name string

    Name of the trucker.

    lastname string

    Truck driver's last name.

    email string

    Trucker email (Must be unique)

    taxid string

    Truck's identity document (Must be unique).

    password string

    Hashed password of the trucker account.

Loading...