Replace webhooks subscription devices

Replace the entire list of devices subscribed to webhooks with a new list of devices.

Note: PUT calls update data entirely. Any data not mentioned in the call, will be deleted.

Request
Security:
path Parameters
orgId
required
string

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

Example: 62
Request Body schema: application/json
Array
Any of:
imei
required
string (IMEI)

The IMEI number of the device. The IMEI number can be found on a sticker on the device itself or on the back of the device box.

url
required
string

The URL where the webhook is posted.

type
required
string

The type of the webhook. For the event type, every event triggered for this device is posted using the webhook. For the GPS type, all GPS information is posted. For the alarms type, every alarm is posted. For the systemMessages type, every system message triggered for this device is posted using the webhook based on config settings.

Enum: "gps" "event" "alarms" "systemMessages"
object
Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

500

Internal server error

put/organizations/{orgId}/webhooks
Request samples
application/json
[
  • {
    }
]
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454"
}