Question about clearing data (attributes) from albums/images/categories etc.

flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
Hi David or anyone else who knows the answer :D

How can one programatically remove data from objects such as images/albums/categories, etc.?

Examples are:
  • How can I clear the caption of an Image?
    Sending an empty string won't work, since all null or empty values will be ignored.
  • How can I move an album from being under a Sub Category to just being under a Category
    E.g. its CategoryID=1 and SubCategoryID=34. But now i want to move the album to be immediately under CategoryID=1. I can not clear the SubCategoryID by sending null (or an empty string) for its value... it will be ignored.
  • How can I remove a piece of data so that its Smugmug-default value is used again.
    E.g. i set BackPrinting string to some value for an Album, but i want to use the my account's Backprinting string again. I can not send null or an empty string...
Thanks!
-- Anton Spaans.
I can't grasp the notion of time.

When I hear the earth will melt into the sun,
in two billion years,
all I can think is:
    "Will that be on a Monday?"
==========================
http://www.streetsofboston.com
http://blog.antonspaans.com

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 21, 2008
    Dutchie, as below... thumb.gif
    • How can I clear the caption of an Image?
      Sending an empty string won't work, since all null or empty values will be ignored.

    /?method=smugmug.images.changeSettings&ImageID=xxx&Caption=
    • How can I move an album from being under a Sub Category to just being under a Category
      E.g. its CategoryID=1 and SubCategoryID=34. But now i want to move the album to be immediately under CategoryID=1. I can not clear the SubCategoryID by sending null (or an empty string) for its value... it will be ignored.
    SubCategoryID=0
    • How can I remove a piece of data so that its Smugmug-default value is used again.
      E.g. i set BackPrinting string to some value for an Album, but i want to use the my account's Backprinting string again. I can not send null or an empty string...

    /?method=smugmug.albums.changeSettings&AlbumID=xxx&Backprinting=
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.