POST
/
v1
/
organizations
/
{id}
/
users
/
{userId}
curl --request POST \
  --url https://api.edgee.app/v1/organizations/{id}/users/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "admin"
}'
{
  "object": "user",
  "id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "avatar_url": "<string>",
  "created_at": "2022-03-01T00:00:00Z",
  "updated_at": "2022-03-01T00:00:00Z",
  "role": "admin"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
userId
string
required

Body

application/json

A User is a unique identifier that you can use to manage and organize your work.

role
enum<string>
required

The role of the user in the organization.

Available options:
admin,
member

Response

200
application/json
The updated User

A User is a unique identifier that you can use to manage and organize your work.

object
string
required

String representing the object's type. Objects of the same type share the same value

Example:

"user"

id
string
required

Unique identifier for the user

email
string
required

Email of the user

name
string
required

Name of the user

created_at
string
required

Time at which the project was created

Example:

"2022-03-01T00:00:00Z"

updated_at
string
required

Time at which the project was last updated

Example:

"2022-03-01T00:00:00Z"

role
enum<string>
required

The role of the user in the organization.

Available options:
admin,
member
avatar_url
string

Avatar of the user