API 2.0: How to Set Additional Album Properties?

ckelleyckelley Registered Users Posts: 26 Big grins
When creating an Album, we need to set the LargestSize, SortMethod and SortDirection properties.

As of 8-Apr-2015, API 2.0 will return a 400 Bad Request error if any properties besides UrlName, Name and Privacy are set.

We are now forced to set these properties manually on hundreds of albums.

Any chance we could persuade you to open it up a bit?

Comments

  • ktvoelkerktvoelker Registered Users Posts: 25 Big grins
    edited April 9, 2015
    We already support setting those properties. To figure out where the problem is, please take a look at the documentation and make sure you are sending valid values for those fields. If that doesn't work, you can reply or email us with the details of the failing request, and we will help figure out what's wrong.
    Karl Voelker
    Sorcerer and API Guy at SmugMug
  • ktvoelkerktvoelker Registered Users Posts: 25 Big grins
    edited April 9, 2015
    I forgot to mention one more debugging technique. Take a look at the Options.Parameters section of the response and you should see a Problem field for any parameters which had a problem.
    Karl Voelker
    Sorcerer and API Guy at SmugMug
  • ckelleyckelley Registered Users Posts: 26 Big grins
    edited April 9, 2015
    ktvoelker wrote: »
    We already support setting those properties. To figure out where the problem is, please take a look at the documentation and make sure you are sending valid values for those fields. If that doesn't work, you can reply or email us with the details of the failing request, and we will help figure out what's wrong.

    Karl,

    Looks like the album must already exist before we can change its properties. Correct?

    If so, we can live with making two requests to get the job done.
  • ktvoelkerktvoelker Registered Users Posts: 25 Big grins
    edited April 9, 2015
    Those parameters are also supported when creating an album (see this documentation).
    Karl Voelker
    Sorcerer and API Guy at SmugMug
Sign In or Register to comment.