Skip to main content
POST
/
customer
/
{customerId}
/
driver
/
{driverId}
/
enableAsUser
Enable Driver as a User
curl --request POST \
  --url https://api.masternautconnect.com/connect-webservices/services/public/v1/customer/{customerId}/driver/{driverId}/enableAsUser \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userName": "<string>",
  "fullName": "<string>",
  "emailAddress": "<string>",
  "roleId": "<string>",
  "externalIdentifier": "<string>"
}
'
{
  "token": "<string>",
  "expiryTime": "2023-11-07T05:31:56Z",
  "user": {
    "userName": "<string>",
    "fullName": "<string>",
    "emailAddress": "<string>",
    "roleId": "<string>",
    "externalIdentifier": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

customerId
string
required
driverId
string
required

Body

application/json
userName
string

Username for the web user

fullName
string

Full name of the user

emailAddress
string

Email address of the user

roleId
string

Role identifier for the user

externalIdentifier
string

External identifier for SSO integration

Response

Driver successfully enabled as a user

token
string

Security token for password reset

expiryTime
string<date-time>

Token expiry time

user
object

Created user details