Getting 4000 Bad Request while Creating Library Playlist using Apple Music API ?

As per this documentation shared link below,

https://developer.apple.com/documentation/applemusicapi/create_a_new_library_playlist

I'm able to get developer token and music user token but I am getting error for 'Invalid Request Body' (400 Bad Request).

My body parameters are as follows:

{

"name": "Demo Playlist",

"description" : "This is Demo Playlist"

}

Please suggest with proper example for body parameters. Thanks!

Typographical mistake at my end in question title: it's 400 - Bad Request.

Hi everyone,

I found the solution for above question posted, you can find the same using below code:

{ "attributes": {
  "name": "Demo Playlist",
  "description" : "This is Demo Playlist"
  }
}

Thanks!

Getting 4000 Bad Request while Creating Library Playlist using Apple Music API ?
 
 
Q