Skip to main content
PATCH
/
users
/
{id}
cURL
curl --request PATCH \
  --url https://api.nightly.sh/v1/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "active": true
}
'
{
  "id": "bio_test_usr_1amaj5125as",
  "username": "johndoe",
  "active": true,
  "permissions": {},
  "created_at": 692233200
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of user to update

Body

application/json

User data to update

username
string

The username for this User.

password
string

The password for this User.

active
boolean

Whether or not the bucket is active and accepting connections/files. If not provided, the active status will not be updated.

Response

User updated

id
string
required

Unique identifier for the bucket.

bucket_id
string
required

The id of the Bucket this user is attached to.

username
string
required

The username for this User.

password
string
required

The password for this User.

active
boolean
required

Whether or not the bucket is active and accepting connections/files.

created_at
integer
required

Unix Timestamp of when the bucket was created.