Skip to main content
POST
/
me
/
connected-vehicle
Connect to vehicle
curl --request POST \
  --url https://ctechnology.io/api/v2.2/me/connected-vehicle \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "device_id": "<string>",
  "role": "<string>"
}
'
{
  "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.

Body

application/json

The vehicle to connect to the user.

device_id
string
required

The device id of the vehicle to connect. This is the id given to owners and / or partners with the purpose of easily connecting vehicles.

role
string

The role which the user should have.

Response

Successfully connected the vehicle to this user.

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.