Add an album to a siteAsk AIpost https://platform.{env}.simpplr.com/v1/content/sites/{site_id}/albumThis API allows us to add an album to a sitePath Paramssite_idstringrequiredThe ID of the site to add an album toQuery ParamsactionstringenumrequiredThe action to perform on the albumpublishsaveDraftAllowed:publishsaveDraftBody ParamslistOfFilesarray of objectsArray of file attachmentslistOfFilesADD objectpublishAtdate-timeDate and time when the album should be published (required when publishingStatus is 'schedule'). Must be in ISO 8601 UTC formatimgLandscapestring | nullURL of the landscape imagepublishTodate-time | nullDate and time when the content should expire/unpublish. Must be in ISO 8601 UTC formatbodyHtmlstringrequiredMain content of the album in HTML formatpublishingStatusstringenumrequiredPublishing status of the albumimmediatescheduleAllowed:immediatescheduleimgLayoutstringenumLayout style for the featured imagesmallhiddenwideAllowed:smallhiddenwideimgCaptionstring | nullCaption for the featured imageimgLandscapeFileuuid | nullUUID of the landscape image filetitlestringrequiredlength ≤ 255Title of the albumisMaximumWidthbooleanWhether to use maximum width layouttruefalseisFeedEnabledbooleanWhether the album appears in feedstruefalseisQuestionAnswerEnabledbooleanWhether question and answer feature is enabledtruefalseisRestrictedbooleanWhether the content is restricted to specific audiencestruefalsetargetAudiencearray of uuidslength ≥ 0List of UUIDs identifying the target audiencestargetAudienceADD uuidlistOfTopicsarray of objects | nullArray of topics associated with the albumlistOfTopicsADD objectsummarystring | nullSummary of the album contentlistOfAlbumMediaarray of objectsrequiredlength ≥ 1Array of media items in the albumlistOfAlbumMedia* objectidstringrequiredMedia IDdescriptionstring | nullDescription of the mediaaltTextstring | nullAlternative text for the mediafileIdstringFile IDproviderstringenumProvider of the media filegoogledriveboxonedrivesharepointdropboxnative_videoAllowed:googledriveboxonedrivesharepointdropboxnative_videonamestringName of the media filetypestringType of the media filesizestringSize of the media filethumbnailUrlstringURL of the thumbnailversionnumberVersion of the media filevideoStatusnumberStatus of the video if applicableADD objectisOpenToSubmissionsbooleanWhether the album is open to submissionstruefalsecoverImageMediaIdstringrequiredID of the media item to use as cover imagelanguagestringLanguage of the album contentResponses 200Success 400Error response for album creation 401Authorize error 403Forbidden errorUpdated 4 months ago