Skip to main content
POST
/
users
/
{user_id}
/
project-access
Grant project access to a user
curl --request POST \
  --url {schemes}://api.upsun.com/users/{user_id}/project-access \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "project_id": "<string>",
    "permissions": [
      "admin"
    ]
  }
]
'
{
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.upsun.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string<uuid>
required

The ID of the user.

Example:

"d81c8ee2-44b3-429f-b944-a33ad7437690"

Body

application/json
project_id
string
required

ID of the project.

permissions
enum<string>[]
required

An array of project permissions.

Available options:
admin,
viewer,
development:admin,
development:contributor,
development:viewer,
staging:admin,
staging:contributor,
staging:viewer,
production:admin,
production:contributor,
production:viewer

Response

No Content

Last modified on May 7, 2026