delete https://api.gomotive.com/v1/groups/
Purpose: Use this API to delete and existing group. You must specify the ID of the group in the path parameters section.
require 'uri'
require 'net/http'
require 'json'
url = URI('https://api.gomotive.com/v1/groups/1')
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 group was deleted successfully. Mostly the value for this parameter will be "true". Otherwise, you will see the status 400 appearing.