createServerEnvironmentLink

Link a server environment. Requires project.runtime.manage.

Arguments

  • inputServerEnvironmentLinkInput!required

  • input.serverIdID!required

    ID of a server you own. Linking and unlinking require project.runtime.manage on every project currently linked to the server. If none are linked, no project capability is required. Linking also requires project.runtime.manage on the environment’s project. Unlinking also requires API-key delete scope.

  • input.environmentIdID!required

Responses

mutation CreateServerEnvironmentLink($input: ServerEnvironmentLinkInput!) {  createServerEnvironmentLink(input: $input) {    id    shortId    userId    environmentIds    hostname    status    createdAt    updatedAt  }}
{  "data": {    "createServerEnvironmentLink": {      "id": "string",      "shortId": "string",      "userId": "string",      "environmentIds": [        "string"      ],      "hostname": "string",      "status": "string",      "createdAt": "2026-01-01T00:00:00Z",      "updatedAt": "2026-01-01T00:00:00Z"    }  }}

The Server! in data.createServerEnvironmentLink.