Replace webhooks subscription devices

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

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
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.

Enum: "gps" "event"
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"
}