action stream_io_api_create_segment { label: "Create segment" description: "Create a segment" provider: stream_io_api method: POST path: "/segments" encoding: json input: { type: "object" required: ["segment"] properties: { segment: { type: "object" required: ["filter", "name", "type"] properties: { description: { type: "string" } filter: { type: "object" } name: { type: "string" } type: { type: "string" enum: ["user", "channel"] } } } } } output: { type: "object" required: ["duration"] properties: { duration: { type: "string" description: "Duration of the request in human-readable format" } segment: { type: "object" required: ["created_at", "description", "filter", "id", "in_use", "name", "size", "status", "type", "updated_at"] properties: { created_at: { type: "string" format: "date-time" } description: { type: "string" } filter: { type: "object" } id: { type: "string" } in_use: { type: "boolean" } name: { type: "string" } size: { type: "number" } status: { type: "string" } type: { type: "string" enum: ["user", "channel"] } updated_at: { type: "string" format: "date-time" } } } } } }