Unwatch a Watchable record
PUThttps://secure.fleetio.com/api/v1/watchers/:watchable_type/:id/unwatch
The sender of this request will be removed from the Watchers of the record that is associated with the given Watchable type and ID. The ID should be that of the Watchable type being queried.
Request
Path Parameters
Possible values: [charging_entry
, contact_renewal_reminder
, equipment
, expense_entry
, fuel_entry
, issue
, purchase_order
, service_entry
, service_reminder
, vehicle
, vehicle_assignment
, vehicle_renewal_reminder
, vendor
, work_order
]
The Watchable type
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
Responses
- 204
- 401
- 404
- 500
No Content
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"
}
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"
}
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 PUT 'https://secure.fleetio.com/api/v1/watchers/:watchable_type/:id/unwatch' \
-H 'Authorization: <Authorization>' \
-H 'Account-Token: <Authorization>'