Projects
Grant a Postdot user access to a project
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
projectId*stringLength
1 <= length- body
userId*stringLength
1 <= lengthrole*stringValue in
"editor""viewer"Response for status 201
application/json- response
grant*curl -X POST 'https://postbot.example/api/projects/string/user-grants' \
-H 'Content-Type: application/json' \
-d '{
"userId": "string",
"role": "editor"
}'Example Response
{
"grant": {
"id": "string",
"projectId": "string",
"userId": "string",
"role": "owner",
"createdAt": 0,
"updatedAt": 0
}
}