Add a page to a siteAsk AIpost https://platform.{env}.simpplr.com/v1/content/sites/{site_id}/pageThis API allows us to add a page to a sitePath Paramssite_idstringrequiredThe ID of the site to add a page toQuery ParamsactionstringenumrequiredThe action to perform on the pagepublishsaveDraftAllowed:publishsaveDraftBody ParamscontentSubTypestringenumrequiredType of content being creatednewsknowledgeAllowed:newsknowledgelistOfFilesarray of objectsArray of file attachmentslistOfFilesADD objectpublishAtdate-timeDate and time when the content should be published (required when publishingStatus is 'schedule'). Must be in ISO 8601 UTC format (e.g. 2025-04-09T18:30:00.000Z)publishTodate-time | nullDate and time when the content should expire/unpublish. Must be in ISO 8601 UTC formatbodyHtmlstringrequiredMain content of the page in HTML formatpublishingStatusstringenumrequiredPublishing status of the contentimmediatescheduleAllowed:immediatescheduleimgLayoutstringenumLayout style for the featured imagesmallfullscreenhiddenwideAllowed:smallfullscreenhiddenwideimgCaptionstring | nullCaption for the featured imageimgLandscapeFileuuid | nullUUID of the landscape image fileimgFileuuid | nullUUID of the main image fileimgOriginalFileuuid | nullUUID of the original image fileimgLandscapestring | nullURL of the landscape imagetitlestringrequiredlength ≤ 255Title of the pageisMaximumWidthbooleanWhether to use maximum width layouttruefalseisFeedEnabledbooleanWhether the page appears in feedstruefalseisQuestionAnswerEnabledbooleanWhether question and answer feature is enabledtruefalselistOfTopicsarray of objects | nullArray of topics associated with the pagelistOfTopicsADD objectcategoryobjectrequiredCategory information for the pagecategory objectsummarystring | nullSummary of the page contentlanguagestringLanguage of the contentmanualTransEnabledbooleanWhether manual translation is enabledtruefalseisRestrictedbooleanWhether the content is restricted to specific audiencestruefalsetargetAudiencearray of uuidslength ≥ 0List of UUIDs identifying the target audiencestargetAudienceADD uuidResponses 200Success 400Error 401Authorize error 403Forbidden errorUpdated 4 months ago