Skip to main content
PUT
/
permission
/
vehicle-access
/
{vehicle_access_id}
Update vehicle access
curl --request PUT \
  --url https://ctechnology.io/api/v2.2/permission/vehicle-access/{vehicle_access_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "VEHICLE_OWNER"
}
'
{
  "header": {
    "api_version": "<string>",
    "status": "<string>",
    "message": "<string>",
    "permission_via": [
      {
        "permission": "<string>",
        "via": "me",
        "organization_id": "<string>"
      }
    ]
  },
  "data": {
    "user_id": "<string>",
    "vehicle_id": "<string>",
    "role": "VEHICLE_OWNER",
    "id": "<string>",
    "user_email": "jsmith@example.com"
  }
}

Authorizations

Authorization
string
header
required

Note that the API key has to be sent as Token 123 where 123 is the key you received after logging in or by creating on the developer dashboard.

Path Parameters

vehicle_access_id
string
required

ID of vehicle access to update.

Body

application/json
role
enum<string>

The various access roles for vehicles.

Available options:
VEHICLE_OWNER,
VEHICLE_MAINTAINER,
VEHICLE_MANUFACTURER,
VEHICLE_READ_ONLY,
VEHICLE_NO_DETAIL_NO_EDIT,
VEHICLE_ONLY_CURRENT,
VEHICLE_USER

Response

Successful update of vehicle access.

header
API Header Single · object
required

Default header sent along with single-resource responses.

data
User Vehicle Access · object
required

The response after a successful addition of a vehicle to a user.