Access
PreviewWhether each of these people can be given a role on a place
Changes nothing. For each person, says whether they can be given the role on that place
POST
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
application/json- body
roleId*stringFormat
uuidscope*userIds*array<string>The people to give the role to. A repeated id counts once.
Items
1 <= items <= 200expiresAt?|When the grants end. Ignored by the check.
Format
date-timeOne verdict per person, in the order asked.
application/json- response
items*array<>curl -X POST 'https://wardn.example.com/api/v1/role-bindings/check' \ -H 'Content-Type: application/json' \ -d '{ "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "scope": { "kind": "org", "label": "string" }, "userIds": [ "string" ]}'Example Response
{ "items": [ { "userId": "string", "verdict": "ok", "message": "string", "orgRole": "owner", "requiredOrgRole": "owner", "holdsUntil": "2019-08-24T14:15:22Z" } ]}