Skip to content

Tags when update/creating playlist #454

@frranck

Description

@frranck

Hi, I’m trying to set tags when creating a playlist:

createPayload := map[string]interface{}{
  "playlist": map[string]interface{}{
    "title":   playlistName,
    "sharing": "public",
    "tags":    []string{"#tag1"},
    "tracks":  []map[string]string{*firstTrack},
  },
}
createResp, err := client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Authorization", "Bearer "+t.AccessToken).
SetBody(createPayload).
SetResult(&playlist).
Post("https://api.soundcloud.com/playlists")

I’ve tried passing tags as an array (with and without #), and also with update, but I don’t see them reflected.
How are tags supposed to be sent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions