Edit trucker
PUT/truckers/:id
Solo pueden usar los usuarios multitenant
Request
Path Parameters
id stringrequired
Header Parameters
Authorization stringrequired
Token de Auth del Usuario
- application/json
Body
name string
email string
phone string
taxid string
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- ]
status integer
data object
position object
deliveries object[]
_id string
Possible values: non-empty
ID unico generado aleatoriamente en el momento de creación
role string
emailVerified boolean
phone string
country string
timezone string
image string
i18n string
accountType string
name string
lastname string
email string
taxid string
address string
createdAt string
default_vehicle string
{
"status": 0,
"data": {
"position": {
"deliveries": [
{}
]
},
"_id": "5d84f846b0f6ba698f544dbf",
"role": "string",
"emailVerified": true,
"phone": "string",
"country": "string",
"timezone": "string",
"image": "string",
"i18n": "string",
"accountType": "string",
"name": "string",
"lastname": "string",
"email": "string",
"taxid": "string",
"address": "string",
"createdAt": "string",
"default_vehicle": "string"
}
}
{
"status": 200,
"data": {
"position": {
"deliveries": []
},
"_id": "651d5263949fb940034e38f0",
"role": "driver",
"emailVerified": false,
"phone": "625242433",
"country": "esp",
"timezone": "europe/madrid",
"image": "",
"i18n": "es",
"accountType": "multitennant",
"name": "Kaisle",
"lastname": "wsese",
"email": "admin@admin.admin",
"taxid": "43455443e",
"address": "08027",
"createdAt": "2023-10-04T11:54:11.886Z",
"default_vehicle": ""
}
}
Loading...