Update the default event settings

Update the default event settings for all devices in an organization. These settings apply to all devices currently in the organization and any devices added in the future.
Note:
1. This API call only updates the existing event settings object with the values provided in the requested payload. Any values not provided in the request will remain the same.
2. If an organization profile is enabled, the updated values will be set for all devices in this organization. Any values not provided, will not be updated in the devices' settings.

Request
Security:
path Parameters
orgId
required
string

The ID of the organization. Obtain this from GET /organizations.

Example: 62
Request Body schema: application/json
vehicleType
string (Vehicle type)

The type of vehicle associated with the device.

The type of vehicle affects the sensitivity of the device's motion sensor. Private is the most sensitive to movements, and trailer is the least sensitive.

Enum: "Private" "Van" "Trailer"
required
Array of objects (Event settings)

The events array.

Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

500

Internal server error

patch/organizations/{orgId}/event-settings
Request samples
application/json
{
  • "vehicleType": "Private",
  • "events": [
    ]
}
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454",
  • "data": {
    }
}