Distribution API
Update Artist
This endpoint receives an artist_id and updates the Artist with the specified fields.
Note: Only one Artist can be edited per HTTP Request.
HTTP Request
- Production:
PUT https://api.even.biz/api/v1/distribution/artists/:artist_id - Stage:
PUT https://api-staging.even.biz/api/v1/distribution/artists/:artist_id
Body Parameters
| Parameter | Description | Required |
|---|---|---|
| artist | Artist object containing the fields to be edited. | Yes |
| artists[].name | The name of the artist. | No |
| artists[].email | The email address of the artist. | No |
| artists[].links | An object containing the artist's social media links. | No |
| artists[].links.spotify | The Spotify link of the artist. | No |
| artists[].links.instagram | The Instagram link of the artist (if available). | No |
| artists[].links.soundcloud | The SoundCloud link of the artist (if available). | No |
| artists[].links.youtube | The YouTube link of the artist (if available). | No |
| artists[].username | The EVEN username of the artist. | No |
| artists[].external_link | Any additional profile link (singluar) for the Artist. | No |
| artists[].bio | Artist Bio | No |
| artists[].about | Artist About page | No |
| artists[].country | Artist's country | No |
| artists[].city | Artist's city | No |
| artists[].complete | Marking an Artist as complete will create an Invitation and send an email to said Artist asking them to join EVEN. You can mark an Artist as complete later via an update with PUT if there's still data that needs to be filled in after creating an Artist. | No |
Example Request
uri = URI("https://api-staging.even.biz/api/v1/distribution/artists/:artist_id")
# 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 = {
artist: {
name: "updated name",
country: "US",
bio: "some cool bio"
}
}
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 JSON structured like this:
{
"data": {
"id": "1",
"type": "artist",
"attributes": {
"id": 1,
"name": "updated name",
"slug": "updated-name",
"username": "artist-53f58fa7-4cc4-4925-b261-0ecd16e85c0b",
"external_link": null,
"bio": "some cool bio",
"about": null,
"links": null,
"published": true,
"country": "US",
"city": null,
"private": true,
"hidden": true,
"verified": false,
"onboarded": false,
"created_at": "2024-10-07T05:59:46.957Z",
"updated_at": "2024-10-07T05:59:46.957Z",
"upload_status": "approved"
},
"relationships": {
"releases": {
"data": []
}
}
},
"included": []
}