pub struct CreateQueueItemDTO {
pub location_id: String,
pub session_id: Option<String>,
pub modified_post_payload: Option<QueueModifiedPostDTO>,
pub order: Option<Value>,
pub variations: Vec<VariationInputDTO>,
pub primary_image: Option<String>,
pub direct_to_queue: Option<bool>,
}social-planner only.Expand description
CreateQueueItemDTO from the GoHighLevel OpenAPI spec.
Fields§
§location_id: StringLocation ID Required by the API.
session_id: Option<String>Edit session ID
modified_post_payload: Option<QueueModifiedPostDTO>New post details
order: Option<Value>Order for the new item in the queue (cyclic-aware). Accepts: - A number: explicit order value calculated by FE as midpoint between adjacent items - “top”: place at cyclic top (first to be scheduled next) - “bottom”: place at cyclic bottom (last to be scheduled) For positions between items, FE calculates: Math.floor((prevItem.order + nextItem.order) / 2) Defaults to end if not provided. Note: This field is ignored when directToQueue is true - the order will be automatically calculated based on the queue’s prioritizeNewContent setting. Multiple possible shapes in the spec; raw JSON.
variations: Vec<VariationInputDTO>Variations
primary_image: Option<String>Primary media URL (image) for the post. Falls back to modifiedPostPayload.primaryImage if not set.
direct_to_queue: Option<bool>When true, creates the queue item directly without requiring an edit session, even for active/paused queues. The order field is ignored and the item position is determined by the queue’s prioritizeNewContent setting: if true, the item is added to the top of the queue; if false, it is added to the bottom.
Trait Implementations§
Source§impl Clone for CreateQueueItemDTO
impl Clone for CreateQueueItemDTO
Source§fn clone(&self) -> CreateQueueItemDTO
fn clone(&self) -> CreateQueueItemDTO
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more