Download OpenAPI specification:Download
REST API Documentation for the Autoliv Connected Services Platform REST API
Lists all campaigns on the server filtered by any provided search filters.
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "campaign" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| campaign | string Search for a specific campaign. |
| query | string Query string use to filter the data |
{- "data": [
- {
- "campaign": "string",
- "secret": "string"
}
], - "totalCount": 0,
}Checks whether you have access to the requested campaign given an optional secret.
| campaign required | string The campaign identifier/name. |
| secret | string (Secret) |
{- "secret": "string"
}Gets all conversations associated with a specific trip.
| tripId required | string <UUID> The trip id |
{- "conversationId": 0,
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "lat": 0,
- "lng": 0,
- "messages": [
- {
- "messageId": 0,
- "conversationId": 0,
- "authorId": "ee6f7132-bd0a-4fcd-83b3-a8022377067b",
- "content": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
]
}Create a new conversation associated with a specific trip.
| tripId required | string <UUID> The trip id |
| content required | string (Content) |
{- "content": "string"
}Gets the information of trips based on the query
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "startTime" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb",
- "transportationMode": "string",
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "userWeight": 0,
- "userHeight": 0,
- "campaign": "string",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}
], - "totalCount": 0,
}Creates a new trip
| X-ACSP-Campaign-Secret | string Campaign secret for campaign |
| vehicleId | string <uuid> (Vehicleid) |
| transportationMode required | string (Transportationmode) |
| duration required | integer (Duration) >= 0 |
| startTime required | string <date-time> (Starttime) |
| userWeight | integer (Userweight) > 0 |
| userHeight | integer (Userheight) > 0 |
| campaign | string (Campaign) |
{- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb",
- "transportationMode": "string",
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "userWeight": 0,
- "userHeight": 0,
- "campaign": "string"
}Gets the information of a trip from its id
| tripId required | string <UUID> The trip id |
{- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb",
- "transportationMode": "string",
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "userWeight": 0,
- "userHeight": 0,
- "campaign": "string",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}Places a new trip in the specified location
| tripId required | string <UUID> The trip id |
| X-ACSP-Campaign-Secret | string Campaign secret for campaign |
| vehicleId | string <uuid> (Vehicleid) |
| transportationMode required | string (Transportationmode) |
| duration required | integer (Duration) >= 0 |
| startTime required | string <date-time> (Starttime) |
| userWeight | integer (Userweight) > 0 |
| userHeight | integer (Userheight) > 0 |
| campaign | string (Campaign) |
{- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb",
- "transportationMode": "string",
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "userWeight": 0,
- "userHeight": 0,
- "campaign": "string"
}Gets the information of the blobs of the trips
| tripId required | string <UUID> The trip id |
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "deviceLocation" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string",
- "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "existsInStorage": true
}
], - "totalCount": 0,
}Creates a new blob
| tripId required | string <UUID> The trip id |
| deviceId required | string <uuid> (Deviceid) |
| deviceLocation required | string (Devicelocation) |
| deviceFirmwareVersion required | string (Devicefirmwareversion) |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string"
}Gets the information of a blob from its id
| tripId required | string <UUID> The trip id |
| blobId required | string <UUID> The blob id |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string",
- "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "existsInStorage": true
}Puts a blob in the specified location
| tripId required | string <UUID> The trip id |
| blobId required | string <UUID> The blob id |
| deviceId required | string <uuid> (Deviceid) |
| deviceLocation required | string (Devicelocation) |
| deviceFirmwareVersion required | string (Devicefirmwareversion) |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string"
}Gets the information of events of a trip based on the query
| tripId required | string <UUID> The trip id |
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "timestamp" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5"
}
], - "totalCount": 0,
}Creates a new trip
| tripId required | string <UUID> The trip id |
| type required | string (Type) |
| comment required | string (Comment) |
| timestamp | string <date-time> (Timestamp) |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}Gets the information of an event using it's trip and event id
| tripId required | string <UUID> The trip id |
| eventId required | string <UUID> The event id |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5"
}Places a new trip event in the specified location
| tripId required | string <UUID> The trip id |
| eventId required | string <UUID> The event id |
| type required | string (Type) |
| comment required | string (Comment) |
| timestamp | string <date-time> (Timestamp) |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}Gets all conversations associated with a specific user.
| userId required | string <UUID> The user id |
{- "data": [
- {
- "conversationId": 0,
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "lat": 0,
- "lng": 0,
- "messages": [
- {
- "messageId": 0,
- "conversationId": 0,
- "authorId": "ee6f7132-bd0a-4fcd-83b3-a8022377067b",
- "content": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
]
}
], - "totalCount": 0,
}Gets the information of devices based on the query
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "type" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "type": "string",
- "manufacturer": "string",
- "model": "string",
- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a"
}
], - "totalCount": 0,
}Gets the information of a device from its id
| deviceId required | string <UUID> The device id |
{- "type": "string",
- "manufacturer": "string",
- "model": "string",
- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a"
}Gets the information of the blobs of the trips
| tripId required | string <UUID> The trip id |
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "deviceLocation" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string",
- "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "existsInStorage": true
}
], - "totalCount": 0,
}Creates a new blob
| tripId required | string <UUID> The trip id |
| deviceId required | string <uuid> (Deviceid) |
| deviceLocation required | string (Devicelocation) |
| deviceFirmwareVersion required | string (Devicefirmwareversion) |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string"
}Gets the information of a blob from its id
| tripId required | string <UUID> The trip id |
| blobId required | string <UUID> The blob id |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string",
- "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5",
- "existsInStorage": true
}Puts a blob in the specified location
| tripId required | string <UUID> The trip id |
| blobId required | string <UUID> The blob id |
| deviceId required | string <uuid> (Deviceid) |
| deviceLocation required | string (Devicelocation) |
| deviceFirmwareVersion required | string (Devicefirmwareversion) |
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "deviceLocation": "string",
- "deviceFirmwareVersion": "string"
}Gets the information of events of a trip based on the query
| tripId required | string <UUID> The trip id |
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "timestamp" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5"
}
], - "totalCount": 0,
}Creates a new trip
| tripId required | string <UUID> The trip id |
| type required | string (Type) |
| comment required | string (Comment) |
| timestamp | string <date-time> (Timestamp) |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}Gets the information of an event using it's trip and event id
| tripId required | string <UUID> The trip id |
| eventId required | string <UUID> The event id |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5"
}Places a new trip event in the specified location
| tripId required | string <UUID> The trip id |
| eventId required | string <UUID> The event id |
| type required | string (Type) |
| comment required | string (Comment) |
| timestamp | string <date-time> (Timestamp) |
{- "type": "string",
- "comment": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}Lists all users on the server filtered by any provided search filters.
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "userId" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "gender": "string",
- "birthYear": 0,
- "height": 0,
- "weight": 0,
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "createDate": "2019-08-24"
}Gets the information of a user from its id.
| userId required | string <UUID> The user id |
{- "gender": "string",
- "birthYear": 0,
- "height": 0,
- "weight": 0,
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "createDate": "2019-08-24"
}Creates a new user and associates it with the provided id.
| userId required | string <UUID> The user id |
| gender | string (Gender) |
| birthYear | integer (Birthyear) |
| height | integer (Height) >= 0 |
| weight | integer (Weight) >= 0 |
{- "gender": "string",
- "birthYear": 0,
- "height": 0,
- "weight": 0
}Updates parameters of the user associated with the provided id.
| userId required | string <UUID> The user id |
| gender | string (Gender) |
| birthYear | integer (Birthyear) |
| height | integer (Height) >= 0 |
| weight | integer (Weight) >= 0 |
{- "gender": "string",
- "birthYear": 0,
- "height": 0,
- "weight": 0
}Gets the information of vehicles based on the query
| skip | integer Default: 0 Number of items to skip |
| take | integer Default: 10 Number of items to take |
| sortBy | string Default: "vehicleType" Column used for sorting |
| sortAsc | boolean Default: false Flag is sorting is ascending |
| query | string Query string use to filter the data |
{- "data": [
- {
- "vehicleType": "string",
- "manufacturer": "string",
- "model": "string",
- "year": 0,
- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb"
}
], - "totalCount": 0,
}Gets the information of a vehicle from its id
| vehicleId required | string <UUID> The vehicle id |
{- "vehicleType": "string",
- "manufacturer": "string",
- "model": "string",
- "year": 0,
- "vehicleId": "c406adf4-e700-4483-ad7a-e7447a2941cb"
}Creates a new vehicle
| vehicleType required | string Type of the vehicle. Car, Motorcycle, etc. |
| manufacturer required | string Manufacturer of the vehicle |
| model required | string Model of the vehicle |
| year required | integer Year of the vehicle release |