<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicLibrary/edit(_:name:description:authorDisplayName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A7LibraryC4edit_4name11description17authorDisplayNameAA8PlaylistVAI_SSSgA2JtYaKF"
  },
  "title" : "edit(_:name:description:authorDisplayName:)"
}
-->

# edit(_:name:description:authorDisplayName:)

Edits a playlist that your app has created.

```
@discardableResult func edit(_ playlist: Playlist, name: String? = nil, description: String? = nil, authorDisplayName: String? = nil) async throws -> Playlist
```

## Return Value

The edited playlist.

## Discussion

This function will throw an error if your app attempts to edit
a playlist that another app created.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)