Return to default tenant
DELETE
/api/v1/tenant/switch
const url = 'http://localhost:3000/api/v1/tenant/switch';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/v1/tenant/switch \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Returned to default tenant
No active tenant switch
Forbidden — caller lacks required permission