/v1/apps/{applicationId}/accessWhen to use
Choose Permute sign-in or a shared-password demo, or rotate the demo password.
For agents
Requires app admin. Password demos expose published frontend files, including older releases, to anyone with the password. Use mocked data only; hosted queries and Business Actions are blocked. Changes invalidate sessions immediately. Read the current version before saving; never retry a conflict without reviewing the changed settings.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);
const result = await client.apps.setAccess('appl_abcdefghijklmnopqrstuvwx', {
"mode": "password",
"password": "example-demo-password",
"expectedVersion": 0
});Request body
{
"mode": "password",
"password": "example-demo-password",
"expectedVersion": 0
}Response
{
"data": {
"mode": "password",
"version": 1,
"canManage": true
}
}