Skip to main content
POST
Add user to disk

Authorizations

Authorization
string
header
required

Archil API key, including its key- prefix

Path Parameters

id
string
required

Disk ID (format dsk-{16 hex chars})

Pattern: ^dsk-[0-9a-f]{16}$
Example:

"dsk-0123456789abcdef"

Body

application/json
type
enum<string>
required
Available options:
token
nickname
string
required
Maximum string length: 255
principal
string
deprecated

Deprecated. Client-provided token. If omitted, the server generates a cryptographically secure token and returns it in the response.

Maximum string length: 2048
tokenSuffix
string
deprecated

Deprecated. Last 4 characters of the token. Required when principal is provided; ignored when the server generates the token.

Required string length: 4
ttl
string

Optional time-to-live as a Go duration string (e.g. "1h", "30m", "24h"). Maximum 365 days ("8760h"). Mutually exclusive with expiresAt.

expiresAt
string<date-time>

Optional absolute expiration time as an RFC3339 timestamp (e.g. "2026-07-15T00:00:00Z"). Must be in the future. Mutually exclusive with ttl.

oneUse
boolean

When true, the token can be used for only one mount. Later mount attempts with it are rejected.

readOnly
boolean

When true, mounts made with this token reject writes with EROFS.

Response

User added successfully

success
boolean
required
Example:

true

data
object
required