Skip to main content
POST
/
users
cURL
curl --request POST \
  --url https://api.nightly.sh/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "bucket_id": "<string>"
}
'
{
  "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.

Body

application/json

User to create

username
string
required

The username for this User.

password
string
required

The password for this User.

bucket_id
string
required

The id of the Bucket this user is attached to.

Response

User response

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.