Apple Music API: Adding To Collaborative playlist gives 500 error

I am using https://developer.apple.com/documentation/applemusicapi/add-tracks-to-a-library-playlist to add tracks to playlists. This endpoint works fine for all playlists except for collaborative playlists. For collaborative playlist I get the following 500 error as a response:

    "errors": [
        {
            "id": "<some id>",
            "title": "Upstream Service Error",
            "detail": "Unable to update tracks",
            "status": "500",
            "code": "50001"
        }
    ]
}

Steps to reproduce:

  1. Create a playlist in your library.
  2. Use the api to add a song.
  3. Confirm that it works.
  4. Make that same playlist collaborative.
  5. Update the playlist ID in your api request (as making a playlist collaborative changes its id)
  6. Confirm that you get the 500 error.

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Bug Reporting: How and Why? has tips on creating your bug report.

Thank you for your response. I submitted a bug report with id FB19992892

Thank you for filing a bug report. It has been routed to the Music API team for investigation. I'll post any news here after they've had a chance to take a look.

Apple Music API: Adding To Collaborative playlist gives 500 error
 
 
Q