action stream_io_api_update_campaign { label: "Update campaign" description: "Update an existing campaign" provider: stream_io_api method: PUT path: "/campaigns/{id}" encoding: json input: { type: "object" properties: { campaign: { type: "object" properties: { attachments: { type: "array" items: { type: "object" properties: { actions: { type: "array" items: { type: "object" properties: { name: { type: "string" } style: { type: "string" } text: { type: "string" } type: { type: "string" } value: { type: "string" } } } } asset_url: { type: "string" } author_icon: { type: "string" } author_link: { type: "string" } author_name: { type: "string" } color: { type: "string" } fallback: { type: "string" } fields: { type: "array" items: { type: "object" properties: { short: { type: "boolean" } title: { type: "string" } value: { type: "string" } } } } footer: { type: "string" } footer_icon: { type: "string" } giphy: { type: "object" properties: { fixed_height: { type: "object" properties: { frames: { type: "string" } height: { type: "string" } size: { type: "string" } url: { type: "string" } width: { type: "string" } } } fixed_height_downsampled: { type: "object" additionalProperties: true } fixed_height_still: { type: "object" additionalProperties: true } fixed_width: { type: "object" additionalProperties: true } fixed_width_downsampled: { type: "object" additionalProperties: true } fixed_width_still: { type: "object" additionalProperties: true } original: { type: "object" additionalProperties: true } } } image_url: { type: "string" } og_scrape_url: { type: "string" } original_height: { type: "number" } original_width: { type: "number" } pretext: { type: "string" } text: { type: "string" } thumb_url: { type: "string" } title: { type: "string" } title_link: { type: "string" } type: { type: "string" description: "Attachment type (e.g. image, video, url)" } } } } channel_type: { type: "string" } defaults: { type: "object" } description: { type: "string" } name: { type: "string" } segment_id: { type: "string" } sender_id: { type: "string" } text: { type: "string" } } } id: { type: "string" } } required: ["campaign", "id"] additionalProperties: false } output: { type: "object" required: ["duration"] properties: { campaign: { type: "object" required: ["attachments", "channel_type", "created_at", "defaults", "description", "id", "name", "segment_id", "sender_id", "text", "updated_at"] properties: { attachments: { type: "array" items: { type: "object" properties: { actions: { type: "array" items: { type: "object" required: ["name", "text", "type"] properties: { name: { type: "string" } style: { type: "string" } text: { type: "string" } type: { type: "string" } value: { type: "string" } } } } asset_url: { type: "string" } author_icon: { type: "string" } author_link: { type: "string" } author_name: { type: "string" } color: { type: "string" } fallback: { type: "string" } fields: { type: "array" items: { type: "object" required: ["title", "value", "short"] properties: { short: { type: "boolean" } title: { type: "string" } value: { type: "string" } } } } footer: { type: "string" } footer_icon: { type: "string" } giphy: { type: "object" required: ["original", "fixed_height", "fixed_height_still", "fixed_height_downsampled", "fixed_width", "fixed_width_still", "fixed_width_downsampled"] properties: { fixed_height: { type: "object" required: ["url", "width", "height", "size", "frames"] properties: { frames: { type: "string" } height: { type: "string" } size: { type: "string" } url: { type: "string" } width: { type: "string" } } } fixed_height_downsampled: { type: "object" additionalProperties: true } fixed_height_still: { type: "object" additionalProperties: true } fixed_width: { type: "object" additionalProperties: true } fixed_width_downsampled: { type: "object" additionalProperties: true } fixed_width_still: { type: "object" additionalProperties: true } original: { type: "object" additionalProperties: true } } } image_url: { type: "string" } og_scrape_url: { type: "string" } original_height: { type: "number" } original_width: { type: "number" } pretext: { type: "string" } text: { type: "string" } thumb_url: { type: "string" } title: { type: "string" } title_link: { type: "string" } type: { type: "string" description: "Attachment type (e.g. image, video, url)" } } } } channel_type: { type: "string" } completed_at: { type: "string" format: "date-time" } created_at: { type: "string" format: "date-time" } defaults: { type: "object" } description: { type: "string" } details: { type: "string" } errored_messages: { type: "number" } failed_at: { type: "string" format: "date-time" } id: { type: "string" } name: { type: "string" } resumed_at: { type: "string" format: "date-time" } scheduled_at: { type: "string" format: "date-time" } scheduled_for: { type: "string" format: "date-time" } segment_id: { type: "string" } sender_id: { type: "string" } sent_messages: { type: "number" } status: { type: "string" } stopped_at: { type: "string" format: "date-time" } task_id: { type: "string" } text: { type: "string" } updated_at: { type: "string" format: "date-time" } } } duration: { type: "string" description: "Duration of the request in human-readable format" } } } }