POST
/
v1
/
users
/
{id}
curl --request POST \
  --url https://api.edgee.app/v1/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "avatar_url": "<string>",
  "terms_version": "<string>",
  "privacy_version": "<string>"
}'
{
  "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",
  "roles": {}
}

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

Body

application/json
avatar_url
string

The user avatar URL.

terms_version
string

The Terms version accepted by the user.

privacy_version
string

The Privacy version accepted by the user.

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"

avatar_url
string

Avatar of the user

roles
object

Roles of the user in multiple organizations. The keys are organization IDs, and values are roles ('admin', 'member').