Skip to content
Skip to Content

Give a member access to a project

PUT
/projects/{projectId}/access/{userId}

Overrides their organization role on this project: none hides it, view, deploy or admin; null lets the role decide again. The owner always has admin.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

projectId*string
userId*string

Request body

application/json
  1. body
access*|

Their access to this project; none hides it from them; null lets their organization role decide again.

Response body

Done.

Example request
curl -X PUT "https://openpanel.sh/api/v1/projects/$PROJECT_ID/access/$USER_ID" \  -H "Authorization: Bearer $OPENPANEL_TOKEN" \  -H "Content-Type: application/json" \  -d '{  "access": "none"}'
Example response
Empty