Dev's NoxDev's Nox
Instances

Update instance

Update instance metadata (owner or admin only).

PATCH
/api/instances/{id}

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://loading/api/instances/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": 1,
    "name": "my-instance",
    "title": "Chill Hangout",
    "description": "A relaxed hangout",
    "thumbnail": null,
    "theme": 3435986943,
    "capacity": 16,
    "server": "my-server.com",
    "owner": "u:1@my-server.com",
    "world": "1@my-server.com",
    "tags": [],
    "connection": {
      "method": "relay",
      "data": "wss://relay.my-server.com",
      "region": "fr"
    },
    "count": 3,
    "players": [
      {
        "user": "1@my-server.com",
        "display": "John Doe"
      }
    ],
    "alias": [
      {
        "key": "iid",
        "value": "1@my-server.com"
      }
    ],
    "lifecycle": {
      "type": "persistent"
    },
    "relay": "12"
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}