Add an event to a siteCopy Pagepost https://{endpoint}/v1/b2b/content/sites/{siteId}/eventThis API allows us to add an event to a sitePath ParamssiteIdstringrequiredThe ID of the site to add an event toQuery ParamsactionstringenumrequiredThe action to perform on the eventpublishsaveDraftAllowed:publishsaveDraftBody ParamslistOfFilesarray of objectsArray of file attachmentslistOfFilesADD objectpublishAtdate-timeDate and time when the event should be published (required when publishingStatus is 'schedule'). Must be in ISO 8601 UTC formatpublishTodate-time | nullDate and time when the content should expire/unpublish. Must be in ISO 8601 UTC formatstartsAtdate-timerequiredEvent start date and time in ISO 8601 formatendsAtdate-timerequiredEvent end date and time in ISO 8601 formatbodyHtmlstringrequiredMain content of the event in HTML formatpublishingStatusstringenumrequiredPublishing status of the eventimmediatescheduleAllowed:immediatescheduletimezoneIsostringrequiredTimezone ISO string for the eventlocationstringrequiredlength ≥ 1Event locationdirectionsarray of stringslength ≤ 10Array of directions to the event locationdirectionsADD stringimgLayoutstringenumLayout style for the featured imagesmallhiddenfullscreenwideAllowed:smallhiddenfullscreenwidelistOfOrganizersarray of uuidsArray of organizer user IDslistOfOrganizersADD uuidmapURLstring | nullURL to map for the event locationimgCaptionstring | nullCaption for the featured imagetitlestringrequiredlength ≤ 255Title of the eventisFeedEnabledbooleanrequiredWhether the event appears in feedstruefalseisRestrictedbooleanWhether the content is restricted to specific audiencestruefalsetargetAudiencearray of uuidsList of UUIDs identifying the target audiencestargetAudienceADD uuidisQuestionAnswerEnabledbooleanWhether question and answer feature is enabledtruefalselistOfTopicsarray of objects | nullArray of topics associated with the eventlistOfTopicsADD objectsummarystring | nullSummary of the event contentimgLandscapeFileuuid | nullUUID of the landscape image fileimgFileuuid | nullUUID of the main image fileimgOriginalFileuuid | nullUUID of the original image filersvpobjectRSVP configuration for the eventrsvp objectisAllDaybooleanrequiredWhether the event is an all-day eventtruefalselanguagestringLanguage of the event contentcreatedByuuidrequiredUUID of the user creating the eventResponses 200Success 400Error 401Authorize error 403Forbidden errorUpdated about 1 month ago