PUT
/
v2
/
whoami
curl --request PUT \
  --url https://api.app.fleetit.com/v2/whoami/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "John",
  "last_name": "Doe",
  "is_onboarded": true
}'
{
  "id": 0,
  "username": "",
  "first_name": "John",
  "last_name": "Doe",
  "email": "",
  "permission_groups": [
    ""
  ],
  "is_onboarded": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
first_name
string
required
Example:

"John"

last_name
string
required
Example:

"Doe"

is_onboarded
boolean
required
Example:

true

Response

200 - application/json
Successful response
id
integer
Example:

0

username
string
Example:

""

first_name
string
Example:

"John"

last_name
string
Example:

"Doe"

email
string
Example:

""

permission_groups
string[]
Example:
[""]
is_onboarded
boolean
Example:

true