Create Workflow Connection
Create a piece connection in the caller’s workflow project.
Thin proxy to the workflow engine’s app-connection upsert. The engine’s
schema validates the per-type value shape; a bad piece or value is
surfaced as a 4xx via _handle_ap_error.
For OAuth2 types the caller must already hold an authorization code
(obtained via the panel’s browser redirect flow); this endpoint only
forwards the value it is given.
Autorizaciones
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Cuerpo
Create a piece connection. value shape depends on type.
Piece identifier the connection is for, e.g. piece-slack.
Human label shown in the panel
OAUTH2, PLATFORM_OAUTH2, CLOUD_OAUTH2, SECRET_TEXT, BASIC_AUTH, CUSTOM_AUTH, NO_AUTH Type-specific credential fields (secret_text | username+password | props | OAuth2 fields). type is injected server-side.

