Skip to main content
Participant
April 19, 2024
Question

Create Album via API

  • April 19, 2024
  • 1 reply
  • 378 views

Hello,

 

Documentation:

https://developer.adobe.com/lightroom/lightroom-api-docs/api/#tag/Albums

PUT

https://lr.adobe.io/v2/catalogs/{catalog_id}/albums/{album_id}

 

 

{

    "subtype": "project",
    "serviceId": "string",
    "payload": 

{

    "userCreated": "string",
    "userUpdated": "string",
    "name": "string",
    "cover": 

{

    "id": "string"

},
"parent": 
{

    "id": "string"

},
"publishInfo": 
{

    "servicePayload": "string",
    "remoteId": "string",
    "created": "string",
    "updated": "string",
    "deleted": true,
    "remoteLinks": 

{

    "edit": 

{

    "href": "string"

},
"view": 

                {
                    "href": "string"
                }
            }
        }
    }

}

 

 

Could somepne please explain: 

1) {album_id} in URL - how to fill it? It is new album

2) payload object - how to fill it?  I undestand "name" field, but why/how I have to fill other fields? Are there optional fieds in Payload?

This topic has been closed for replies.

1 reply

Participant
April 19, 2024

Update:

1) {album_id} - 32-sym hex string, randomly generate, I believe

2) With next JSON :

{
  "subtype": "project",
  "serviceId": "[my API LEY HERE]",
  "payload": {
    "name": "Myname1",
  }
}

web request returns  '201 Created'.

But this album is not shown in WebUI and does not exist in list of albums retreived via api 😞

Adobe Employee
April 29, 2024

@Michael36858465d90w The album created via partners are not meant to be listed in the lightroom application. They are only meant to be used by partner applications. 

If you want your album to be listed in the Lightroom application, then in that case you can create album from the LR application itself.

Participant
May 6, 2024

@27Prac

> The album created via partners

Dies it mean, that Adobe LR API does not allow to create Album or Folder, which user can see in browser on Adobe LR site? When I uploads images via Adobe LR API - I can see them, both in bowser and Adobe LR applicaiton.