AI-generated Key Takeaways
- 
          AlbumPositiondefines the position of media or enrichment items within a Google Photos album.
- 
          It offers five position types: POSITION_TYPE_UNSPECIFIED,FIRST_IN_ALBUM,LAST_IN_ALBUM,AFTER_MEDIA_ITEM, andAFTER_ENRICHMENT_ITEM.
- 
          For positions relative to other items ( AFTER_MEDIA_ITEM,AFTER_ENRICHMENT_ITEM), you must specify the ID of the relative media or enrichment item.
- 
          The JSON representation includes the positiontype and, if necessary, the ID of the relative item (relativeMediaItemIdorrelativeEnrichmentItemId).
Specifies a position in an album.
| JSON representation | 
|---|
| { "position": enum ( | 
| Fields | |
|---|---|
| position | 
 Type of position, for a media or enrichment item. | 
| Union field relative_item. The item to which the position is relative to. This must be set only if using position typeAFTER_MEDIA_ITEMorAFTER_ENRICHMENT_ITEM.relative_itemcan be only one of the following: | |
| relativeMediaItemId | 
 The media item to which the position is relative to. Only used when position type is AFTER_MEDIA_ITEM. | 
| relativeEnrichmentItemId | 
 The enrichment item to which the position is relative to. Only used when position type is AFTER_ENRICHMENT_ITEM. | 
PositionType
Possible positions in an album.
| Enums | |
|---|---|
| POSITION_TYPE_UNSPECIFIED | Default value if this enum isn't set. | 
| FIRST_IN_ALBUM | At the beginning of the album. | 
| LAST_IN_ALBUM | At the end of the album. | 
| AFTER_MEDIA_ITEM | After a media item. | 
| AFTER_ENRICHMENT_ITEM | After an enrichment item. | 
