Projects
Grant a workspace group 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
teamId*stringLength
1 <= lengthrole*stringValue in
"editor""viewer"Response for status 201
application/json- response
grant*curl -X POST 'https://postbot.example/api/projects/string/team-grants' \
-H 'Content-Type: application/json' \
-d '{
"teamId": "string",
"role": "editor"
}'Example Response
{
"grant": {
"id": "string",
"projectId": "string",
"teamId": "string",
"teamName": "string",
"role": "owner",
"createdAt": 0,
"updatedAt": 0
}
}