delete
https://api.gomotive.com/v1/groups//vehicles
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Purpose: Use this API to delete a vehicle from a group. You may delete a single as well as multiple vehicles from an existing group.
You must specify the ID of the group as well as the ID of the vehicle that you want to remove. Refer to the Path and Query parameters section for more info.
require 'uri'
require 'net/http'
url = URI('https://api.gomotive.com/v1/groups/<id>/vehicles')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"
response = http.request(request)
puts response.read_body
Response Parameters
success
- Type: Boolean
- Description: Denotes if the vehicles were deleted successfully from the group. Mostly the value for this parameter will be "true". Otherwise, you will see the status 400 appearing.
