WAOtomatis icon

WAOtomatis

Send WhatsApp messages and manage chats, contacts, media, storage, webhooks and tickets via WAOtomatis

Storage → Set Connection Active

AI-generated

Summary

Activates or deactivates a bring-your-own (S3-compatible) storage connection in WAOtomatis by sending a PATCH with the desired active flag. Activating a connection makes it the upload target for new media.

Inputs

  • Connection ID (required) — ID of the storage connection to update. Get it from List Connections or Create Connection. It is URL-encoded into the request path.
  • Active — Boolean, default true. True activates the connection. False deactivates it.
  • Session — The Session picker appears in the properties, but this operation doesn't read it. Storage endpoints are organization-scoped, so no session is used in the request.

Output shape

One item per input item, containing the JSON response from the API for the updated connection.

The exact response fields aren't defined in the node source. Each output item is paired to its input item. With Continue On Fail enabled, errors come back as an item with an error message. API errors include the error code and message from the API.

Examples

Example 1: Switch uploads to a newly created bucket.

Resource: Storage; Operation: Set Connection Active; Connection ID: expression from the Create Connection output id; Active: true.

Example 2: Deactivate a connection before removing it.

Resource: Storage; Operation: Set Connection Active; Connection ID: 'conn_123'; Active: false.

Links

Discussion