<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AppleMusicAPI",
  "identifier" : "/documentation/AppleMusicAPI/Add-a-Resource-to-a-Library",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Apple Music API"
    ],
    "preciseIdentifier" : "rest:music_api:post:v1-me-library#ids"
  },
  "title" : "Add a Resource to a Library"
}
-->

# Add a Resource to a Library

Add a catalog resource to a user’s iCloud Music Library.

## Discussion

If successful, the HTTP status code is 202 (Accepted) and there is no response body. For requested IDs that can’t be added to a user’s library, Apple Music Library ignores those IDs. If unsuccessful, the HTTP status code indicates the error and the details are in the `errors` array.

This endpoint requires a music user token. For more information, see [User Authentication for MusicKit](/documentation/AppleMusicAPI/user-authentication-for-musickit).

> Note:
> There may be a delay before a new resource appears in a user’s library.

### Example

**Request:**

```
https://api.music.apple.com/v1/me/library?ids[albums]=1577502911
```

**Response:**

```json
No response body
```

## See Also

[`Resource`](/documentation/AppleMusicAPI/Resource)

A resource—such as an album, song, or playlist.



---

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)