Distribution API
Remove Artist
This endpoint receives an :id and removes the Artist from the Partner's Catalog.
Note: This endpoint will not remove the Artist from our database. It will only remove the associations between the Partner and the Artist. For full data deletion, please contact us.
You can verify the request work from the HTTP status 200 response, and by using the api/v1/distribution/artists or api/v1/distribution/artists/:id endpoints to make sure the artist is no longer available for that Partner.
HTTP Request
- Production:
POST https://api.even.biz/api/v1/distribution/artists/:artist_id/remove - Stage:
POST https://api-staging.even.biz/api/v1/distribution/artists/:artist_id/remove
URL Parameters
| Parameter | Description | Required |
|---|---|---|
| ID | The ID of the artist to retrieve | Yes |
Example Request
uri = URI("https://api-staging.even.biz/api/v1/distribution/artists/:artist_id/remove")
# Prepare HTTP request.
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
# Generate required headers
date = Time.now.utc.httpdate
signed_auth_header = sign_headers(method: :post, endpoint: uri.path, date: date)
# Set custom headers
request['Authorization'] = signed_auth_header
request['Date'] = date
body = {}
request.body = body.to_json
# Send request
response = http.request(request)
# Handle response
if response.is_a?(Net::HTTPSuccess)
puts "Success: #{response.body}"
else
puts "Error: #{response.code} #{response.message}"
endThe above command returns an HTTP status 200.