Skip to content

Make a one-time enrolment code for a new node

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/nodes/enrolment-codes
curl --request POST \
--url https://deck.example.com/api/v1/nodes/enrolment-codes \
--cookie qd_auth=<qd_auth>
Media typeapplication/json
object
code
required
string
expires_at
required

Unix seconds.

integer format: int64

Example generated

{
"code": "example",
"expires_at": 1
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}