playlistTrackReorder

Used to re-order the tracks in a playlist.

Parameters

sid (required): A valid session id, received from the "login" method.
partner_token (required): A valid partner token. See Overview for more information.
playlist_id (required): A valid playlist ID.
file_key (required): A valid track file key. position (required): Desired position for the track in the playlist. Positions are not zero-based. Positions start with 1. If an invalid position is provided, the call will fail with an appropriate error message.
output (Optional): Your preferred output format. These include xml, and json.

Example Request:

http://ws.mp3tunes.com/api/v1/playlistTrackReorder?output=xml&sid=<sid>
&partner_token=9999999999&playlist_id=89401
&file_key=fad1efc63f6915e6f888b907c00f9066&position=1

Example Response:


  1
  
  89041
  a891bcde3f823884e82868131444001b
  1


Example Request (position of 5 specified, but playlist has less than 5 tracks):

http://ws.mp3tunes.com/api/v1/playlistTrackReorder?output=xml&sid=<sid>
&partner_token=9999999999&playlist_id=89401
&file_key=fad1efc63f6915e6f888b907c00f9066&position=5

Example Response:


  0
  Invalid playist position
  89045
  a891bcde3f823884e82868131444001b
  5