Grant a user access to an app
POST
/users/{id}/access
const url = 'https://your-server.example/api/users/1/access';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"app_slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-server.example/api/users/1/access \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "app_slug": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
app_slug
required
string
Example generated
{ "app_slug": "example"}Responses
Section titled “Responses”Granted.
Media typeapplication/json
object
status
string
Example
{ "status": "ok"}