Qminder's backend sends HTTP requests to registered URLs every time a Location has been created or changed.
Location created
This HTTP request is sent to registered URLs every time a Location was created in Qminder.
POST /webhooks HTTP/1.1
X-Qminder-Signature: SIGNATURE
Content-Type: application/json
{
"type": "location_created",
"data": {
"id": 12345,
"name": "Service Location"
}
}
This HTTP request includes the following data fields in its request body:
Field name | Data type | Description |
---|---|---|
type | "location_created" | Always "location_created" for the Location Created event |
data.id | number | The ID of the newly created location. |
data.name | string | The name of the newly created location. |
Location changed
This HTTP request is sent to registered URLs every time a Location was changed in Qminder.
POST /webhooks HTTP/1.1
X-Qminder-Signature: SIGNATURE
Content-Type: application/json
{
"type": "location_changed",
"data": {
"id": 12345,
"name": "Service Location 2"
}
}
This HTTP request includes the following data fields in its request body:
Field name | Data type | Description |
---|---|---|
type | "location_changed" | Always "location_changed" for the Location Changed event |
data.id | number | The ID of the changed location |
data.name | string | The name of the changed location. If the location's name has changed, the new location name is sent with this HTTP request. |