action stream_io_api_update_segment { label: "Update segment" description: "Update an existing segment" provider: stream_io_api method: PUT path: "/segments/{id}" encoding: json input: { type: "object" properties: { id: { type: "string" } segment: { type: "object" properties: { description: { type: "string" } filter: { type: "object" } name: { type: "string" } type: { type: "string" enum: ["user", "channel"] } } } } required: ["id", "segment"] additionalProperties: false } 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" } } } } } }