Switch the institution's result channel (Mensageria or DIRECT)
Switches the channel an institution’s results take back to Sisbajud. A human platform-administrator action (institution_channel:write, never held by M2M): an application token or a tenant-carrying token is refused with 403. Every attempt, accepted or refused with 403/409/422, is recorded append-only in the audit trail. 422: DIRECT in a multi-tenant deployment, DIRECT with PLUGIN_AUTH_ENABLED=false, or DIRECT while the stored institution_code is not the 8-character CNPJ root of the RESPONSIBLE GROUPING (CNPJ_INSTITUICAO_RESPONSAVEL), ^[A-Z0-9]$ exactly as stored, never the executing institution’s CNPJ. 409: the institution has any open order (in either direction); 409 SBJ-0060: the institution’s execution owner is not this executor’s M2M subject (another executor’s institution, also when the current channel is requested): set the owner before switching. 404: unknown institution. 400: channel is not DIRECT or MENSAGERIA. Requesting the current channel answers 200 with changed=false.
Parámetros de ruta
Cuerpo
Respuesta
OK

