Skip to content

Give a name on the menu an alias

POST
/api/v1/menu/{name}/aliases
curl --request POST \
--url https://gpu-kitchen.example.lan/api/v1/menu/example/aliases \
--header 'Content-Type: application/json' \
--cookie gpuk_session=<gpuk_session> \
--data '{ "alias": "example", "unlisted": true }'
name
required
string
>= 1 characters <= 256 characters

A public name, URL-encoded.

Media typeapplication/json
object
alias
required
string
>= 1 characters
unlisted
boolean
Examplegenerated
{
"alias": "example",
"unlisted": true
}

Success.

Media typeapplication/json
object
entry
required
object
name
required

[VIS-18] The public name.

string
plat_key
required
string
objective
required

Null for a custom model setup.

string | null
phase
required

[MNU-03] What the proxy does with a request for it.

string
Allowed values: serving replacing restarting sleeping waking idling stopping off failed maintenance
phase_reason
required

Why: a restart’s wait, a failure’s cause; null otherwise.

string | null
phase_since
required
string format: date-time
covered
required

[MNU-15] False when no deployment serves the name now: neither routed nor listed, its aliases kept. Administrators only.

boolean
mode
required

On_demand when one deployment is, off when all are, else always.

string
Allowed values: always on_demand off
strict
required

[MNU-12] Never served by a compatible name.

boolean
unlisted
required

[PLN-146] Callable, left out of GET /v1/models.

boolean
aliases
required
Array<object>
object
name
required
string
unlisted
required
boolean
compatible
required

[MNU-09] The names on the menu that serve it as well, in the fallback order.

Array<string>
deployments
required
Array<object>

[API-95] Where it is pinned is an administrator’s.

object
id
required
integer
>= -9007199254740991 <= 9007199254740991
gpu_config
required
string
recipe_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
serving_mode
required
string
Allowed values: always on_demand off
replacement_mode
required
string
Allowed values: when_idle seamless night never
instances
required
Array<object>

[API-95] Its node, hostname and cards are an administrator’s.

object
container_id
required

The instance’s id, never its Docker container’s.

integer
>= -9007199254740991 <= 9007199254740991
ready_at
required
Any of:
string format: date-time
draining
required
boolean
node_id
string
hostname
string
gpu_indices
Array<integer>
pinned
Any of:
object
node_id
required
string
gpu_indices
required
Array<integer>
holding
required
Any of:
object
basis
required

Now: the instances answering the name; when_running: nothing answers, the covering deployments once they run.

string
Allowed values: now when_running
gpuk
required

[QTA-54] The GPUk of their cards; null when a card is not measured.

number | null
vram_gb
required

The VRAM their recipes hold, per card times cards; null when one has no figure.

number | null
shared_with
required

[VIS-21] How many other names count the same instances or deployments.

integer
>= -9007199254740991 <= 9007199254740991
Example
{
"entry": {
"phase": "serving",
"mode": "always",
"deployments": [
{
"serving_mode": "always",
"replacement_mode": "when_idle"
}
],
"holding": {
"basis": "now"
}
}
}

Error codes: invalid_alias, validation_error.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: auth_required.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: forbidden, management_key_read_only.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: not_found.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: alias_exists, name_taken.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: payload_too_large.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}