Give a name on the menu an alias
const url = 'https://gpu-kitchen.example.lan/api/v1/menu/example/aliases';const options = { method: 'POST', headers: {cookie: 'gpuk_session=<gpuk_session>', 'Content-Type': 'application/json'}, body: '{"alias":"example","unlisted":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A public name, URL-encoded.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "alias": "example", "unlisted": true}Responses
Section titled “Responses”Success.
object
object
[VIS-18] The public name.
Null for a custom model setup.
[MNU-03] What the proxy does with a request for it.
Why: a restart’s wait, a failure’s cause; null otherwise.
[MNU-15] False when no deployment serves the name now: neither routed nor listed, its aliases kept. Administrators only.
On_demand when one deployment is, off when all are, else always.
[MNU-12] Never served by a compatible name.
[PLN-146] Callable, left out of GET /v1/models.
object
[MNU-09] The names on the menu that serve it as well, in the fallback order.
[API-95] Where it is pinned is an administrator’s.
object
object
Now: the instances answering the name; when_running: nothing answers, the covering deployments once they run.
[QTA-54] The GPUk of their cards; null when a card is not measured.
The VRAM their recipes hold, per card times cards; null when one has no figure.
[VIS-21] How many other names count the same instances or deployments.
Example
{ "entry": { "phase": "serving", "mode": "always", "deployments": [ { "serving_mode": "always", "replacement_mode": "when_idle" } ], "holding": { "basis": "now" } }}Error codes: invalid_alias, validation_error.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: auth_required.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: forbidden, management_key_read_only.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: not_found.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: alias_exists, name_taken.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: payload_too_large.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: rate_limited.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}