Set Name

Set trip name

POSThttps://api.dashdoc.eu/api/v4/scheduler/trips/{uid}/set-name/
Path parameters
uid*string
Body
name*string
Example: "trip_ref_01234"
Response
Body
uidstring (uuid)

The trip identifier.

Example: "447521b0-e165-11ea-a488-0242ac110007"
namestring

The trip name.

Example: "trip_ref_01234"
Request
const response = await fetch('https://api.dashdoc.eu/api/v4/scheduler/trips/{uid}/set-name/', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "trip_ref_01234"
    }),
});
const data = await response.json();
Response
{
  "uid": "447521b0-e165-11ea-a488-0242ac110007",
  "name": "trip_ref_01234"
}

Last updated