Skip to main content

Bulk Insert Vehicles

POST 

/vehicles

Inserts a list of vehicles to a users account profile.

Can be used with large payloads (tested up to 150,000 vehicles).

You may use the `x-batch` header if you do not want to wait for completion.

It can also be used to modify specific vehicles without deleting those that are not shipped as in "Bulk Replace Vehicle".

⚠️ WARNING: If inserting your vehicles in bulk using `x-batch`, please wait 10s minimum between each call to `POST /vehicles` to allow the previous one to complete.

⚠️ WARNING: Providers that are not sent in "listProviders" that were registered will be deleted and deregistered for that vehicle.

Request

Header Parameters

    x-access-token string

    Authentication header obtained from POST /authenticate that identifies the user making this call.

    Example: NgDvLMpPq.6AgfCvkP.YEWA3ZX
    x-api-user string

    Authentication header obtained from LMP Team that identifies the client making this call.

    Example: AbC123DeF456GhI789JkL012
    x-api-key string

    Authentication header obtained from LMP Team that identifies the user making this call.

    Example: XyZ456AbC789DeF012GhI345
    x-batch boolean

    A header that specifies if the endpoint should return 202 Accepted immediately, instead of waiting for completion.

    Example: true

Body

arrayrequired

A list of vehicles for this user.

  • Array [
  • plate stringrequired

    Number plate for the vehicle. Uppercase, without spaces (ie 0388VCP)

    brand stringrequired

    The brand of the vehicle (ie Seat)

    model stringrequired

    The model of the vehicle (ie Ibiza)

    tag string

    Possible values: [0, C, B, ECO]

    The environmental tag for the vehicle (ie C)

    listProviders string[]

    Default value: ``

    List of suppliers with automatic access to register the vehicle. Those that were previously on the list and are not sent will be cancelled.

  • ]

Responses

OK

Loading...