Creating Objects

To create a new Zenfolio object you need to call the corresponding API method and pass it the identifier of the parent container object and a matching updater object that provides the initial state of the object. The following objects can be created:

  • To create a photoset, call the CreatePhotoSet method and pass it the identifier of the parent photoset group and a PhotoSetUpdater object.
  • To create a photoset group, call the CreateGroup method and pass it the identifier of the parent group and a GroupUpdater object.

Note: there is no API method to create a photo or a gallery file object. The only way to create a photo or a gallery file is to upload it. See Uploading Photo, Videos and Raw Files for more information.

Note also that only the owner of the container object can create other objects in that container. That means that your application needs to authenticate the user and supply the authentication token in the request to an object creation method. See the Authentication chapter for more details.

Index