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.
Autorizações
JWT bearer token issued by the identity provider.
Parâmetros de caminho
The institution's unique identifier (UUID).
"550e8400-e29b-41d4-a716-446655440000"
Corpo
Target channel: DIRECT or MENSAGERIA (exact, upper case).
"DIRECT"
Resposta
OK
False when the institution was already on the requested channel.
Instant of the request (UTC).
Subject of the platform administrator who made the request.
The channel now in charge.
The institution's unique identifier.
The channel before the request (equal to channel when nothing changed).

