Update Webhook
PATCHhttps://secure.fleetio.com/api/v1/webhooks/:id
Update a Webhook
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
- application/json
Body
If the URL requires authentication, the value provided here gets passed as the HTTP 'Authorization' header
*Must begin with http:// or https://
Possible values: <= 1000 characters
Responses
- 200
- 401
- 403
- 404
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Possible values: >= 1
Indicates whether or not this Webhook should be triggered by all events.
The authorization header to include in the request to the URL
specified by url
.
A description of this Webhook.
The date and time at which the Webhook was disabled.
2023-03-14T13:46:27-06:00
The reason this Webhook was disabled. This field is only present if
disabled_at
is present.
Indicates whether or not this Webhook is enabled. If false
, the
Webhook will not be triggered.
The number of times this Webhook has failed to be triggered. If this
number exceeds the value of 3
, the Webhook will
be disabled.
The shared key to verify that incoming messages came from Fleetio.
subscribed_events object
The URL to which this Webhook will send a POST request when triggered.
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"all_events": true,
"authorization": "string",
"description": "string",
"disabled_at": "2023-03-14T13:46:27-06:00",
"disabled_reason": "string",
"enabled": true,
"failed_attempts": 0,
"shared_key": "string",
"subscribed_events": {},
"url": "string"
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
The requested resource could not be located
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L -X PATCH 'https://secure.fleetio.com/api/v1/webhooks/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"all_events": true,
"authorization": "string",
"contact_archived": true,
"contact_assigned": true,
"contact_comment_added": true,
"contact_created": true,
"contact_deleted": true,
"contact_merged": true,
"contact_updated": true,
"description": "string",
"enabled": true,
"equipment_comment_added": true,
"equipment_created": true,
"equipment_deleted": true,
"equipment_updated": true,
"expense_entry_comment_added": true,
"expense_entry_created": true,
"expense_entry_deleted": true,
"expense_entry_updated": true,
"fault_created": true,
"fault_resolved": true,
"fuel_entry_comment_added": true,
"fuel_entry_created": true,
"fuel_entry_deleted": true,
"fuel_entry_updated": true,
"import_completed": true,
"issue_closed": true,
"issue_comment_added": true,
"issue_created": true,
"issue_deleted": true,
"issue_resolved": true,
"issue_updated": true,
"location_entry_created": true,
"location_entry_deleted": true,
"location_entry_updated": true,
"meter_entry_created": true,
"meter_entry_deleted": true,
"meter_entry_updated": true,
"part_comment_added": true,
"part_created": true,
"part_deleted": true,
"part_updated": true,
"place_created": true,
"place_deleted": true,
"place_updated": true,
"place_visited": true,
"purchase_order_approved": true,
"purchase_order_closed": true,
"purchase_order_comment_added": true,
"purchase_order_created": true,
"purchase_order_deleted": true,
"purchase_order_pending_approval": true,
"purchase_order_purchased": true,
"purchase_order_received": true,
"purchase_order_updated": true,
"service_entry_comment_added": true,
"service_entry_created": true,
"service_entry_deleted": true,
"service_entry_updated": true,
"submitted_inspection_form_created": true,
"submitted_inspection_form_deleted": true,
"url": "string",
"user_created": true,
"user_updated": true,
"user_archived": true,
"vehicle_archived": true,
"vehicle_assigned": true,
"vehicle_assignment_created": true,
"vehicle_assignment_deleted": true,
"vehicle_assignment_updated": true,
"vehicle_comment_added": true,
"vehicle_created": true,
"vehicle_deleted": true,
"vehicle_group_changed": true,
"vehicle_status_changed": true,
"vehicle_updated": true,
"vendor_comment_added": true,
"vendor_created": true,
"vendor_deleted": true,
"vendor_updated": true,
"work_order_comment_added": true,
"work_order_created": true,
"work_order_deleted": true,
"work_order_status_changed": true,
"work_order_updated": true
}'