Przejdź do głównej treści
Apidly Cloud
Polityka cookies

Pliki cookie analityczne i reklamowe pozostają wyłączone, dopóki ich nie zaakceptujesz. Polityka cookies

Chcielibyśmy korzystać z Google Analytics i Microsoft Clarity, aby zrozumieć, jak używane są strony publiczne, w tym wyświetlenia stron i nagrania sesji, oraz Reddit Pixel, aby mierzyć, czy nasze reklamy w serwisie Reddit prowadzą do wizyt i rejestracji. Tutaj wybierasz, czy są włączone. Odmowa nie zmienia działania serwisu.

Dokumentacja API: Szablony

Operacje API v1 dla: Szablony. Scope, parametry, przykłady w curl, JavaScript i Pythonie oraz odpowiedzi.

Ostatnia aktualizacja: 21 listopada 20268 min czytania
Zobacz jako Markdown

Szablony: wszystkie operacje API v1 z wymaganym scope, parametrami, przykładami w curl, JavaScript i Pythonie oraz odpowiedziami. Uwierzytelnianie, błędy, stronicowanie, limity i idempotencja są opisane w przeglądzie dokumentacji API; zobacz też SDK i wiersz poleceń.

Wypróbuj ze swoim kluczem: utwórz klucz API w konsoli, uruchom w terminalu export APIDLY_API_KEY=... i wklej dowolny przykład curl poniżej. Wartości w przykładach są poglądowe. Na tej stronie nie ma pola do wpisania klucza.

Opisy operacji i pól pochodzą z definicji API i są po angielsku.

Operacja Wymagany scope Opis
GET /templates read Szablony publiczne i szablony Twojej organizacji
POST /templates full Utwórz szablon organizacji
GET /templates/{id} read Jeden szablon
PATCH /templates/{id} full Zaktualizuj szablon Twojej organizacji
DELETE /templates/{id} full Usuń szablon lub ukryj go, gdy serwery wciąż się do niego odwołują
POST /templates/{id}/share full Utwórz link udostępniania szablonu Twojej organizacji
DELETE /templates/{id}/share full Unieważnij linki udostępniania szablonu
GET /templates/{id}/share full Linki udostępniania szablonu
POST /templates/{id}/duplicate full Skopiuj szablon Twojej organizacji
GET /templates/{id}/revisions read Historia rewizji szablonu, najnowsze najpierw
POST /templates/{id}/revisions/{rev}/restore full Przywróć starszą rewizję jako nową
GET /templates/{id}/export full Wyeksportuj szablon do przenośnego pliku
POST /templates/import full Utwórz szablon z wyeksportowanego pliku
POST /template-shares/{token}/import full Skopiuj udostępniony szablon do swojej organizacji
POST /template-shares/{token}/report servers Zgłoś udostępniony szablon naszemu zespołowi (najwyżej 10 na godzinę na organizację)

GET /templates

Szablony publiczne i szablony Twojej organizacji

Optional filters: q (up to 60 characters, case-insensitive, found in the name, slug, summary, image or category), category, source (builtin for the public catalogue, own for your organization's templates) and vramGb (only templates whose minVramGb is at most this, so they run on a GPU with that much memory). Repeat the same filters on every page so the cursor stays valid.

Wymagany scope: read

Parametry

Nazwa Gdzie Typ Wymagany Opis
limit query integer nie
cursor query string nie
q query string nie
category query base | llm | image | notebook | training | custom nie
source query builtin | own nie
vramGb query integer nie

Przykładowe żądanie (curl)

curl "https://apidly.com/api/v1/templates?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.list({ limit: 20 });

Python (SDK)

client.templates.list()

Narzędzie wiersza poleceń: apidly templates, apidly export, apidly plan, apidly apply (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "templates": [
    {
      "id": "example",
      "slug": "example",
      "name": "example",
      "summary": "example",
      "category": "example",
      "image": "docker.io/library/ubuntu",
      "tag": "example",
      "launchMode": "ssh",
      "env": {
        "key": "example"
      },
      "ports": [
        {
          "port": null,
          "protocol": null,
          "label": null
        }
      ],
      "startScript": "example",
      "onStart": "example",
      "args": "example",
      "description": "example",
      "secretEnvKeys": [
        "example"
      ],
      "registryId": "id_example",
      "appPort": 1,
      "defaultDiskGb": 1,
      "minVramGb": 1,
      "recommendedVramGb": 1,
      "constraints": {
        "key": null
      },
      "latestCudaTag": false,
      "inference": {
        "api": "http",
        "healthPath": "example",
        "port": 1
      },
      "custom": false,
      "firstBootMinutes": 1,
      "revision": 1,
      "sort": 1,
      "createdAt": "2026-11-21T10:00:00.000Z"
    }
  ],
  "nextCursor": "example"
}

Statusy błędów: 401, 403, 429.

POST /templates

Utwórz szablon organizacji

Wymagany scope: full · Rola twórcy: admin · Można bezpiecznie ponowić z: Idempotency-Key

Treść żądania

Nazwa Typ Wymagany Opis
name string tak
summary string nie
description string nie
image string tak
tag string nie
launchMode ssh | jupyter | app tak
env object nie
secretEnv object nie
ports tablica object nie
startScript string nie Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart.
onStart string nie Deprecated name of startScript, read until 2027-05-31. Send startScript.
args string nie
appPort integer lub null nie
defaultDiskGb integer nie
minVramGb integer nie
constraints object nie
recommendedVramGb integer lub null nie
inference object lub null nie
registryId string lub null nie
latestCudaTag boolean nie
inheritSecretsFrom string nie

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/templates" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","image":"docker.io/library/ubuntu","launchMode":"ssh"}'

JavaScript (SDK)

await apidly.templates.create({
  name: "example",
  image: "docker.io/library/ubuntu",
  launchMode: "ssh"
});

Python (SDK)

client.templates.create(body={
    "name": "example",
    "image": "docker.io/library/ubuntu",
    "launchMode": "ssh",
})

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 400, 401, 403, 409, 429.

GET /templates/{id}

Jeden szablon

id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).

Wymagany scope: read

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl "https://apidly.com/api/v1/templates/tpl_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.get("tpl_example");

Python (SDK)

client.templates.get("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 401, 403, 404, 429.

PATCH /templates/{id}

Zaktualizuj szablon Twojej organizacji

Wymagany scope: full · Rola twórcy: admin

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Treść żądania

Nazwa Typ Wymagany Opis
name string nie
summary string nie
description string nie
image string nie
tag string nie
launchMode ssh | jupyter | app nie
env object nie
secretEnv object nie
ports tablica object nie
startScript string nie Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart.
onStart string nie Deprecated name of startScript, read until 2027-05-31. Send startScript.
args string nie
appPort integer lub null nie
defaultDiskGb integer nie
minVramGb integer nie
constraints object nie
recommendedVramGb integer lub null nie
inference object lub null nie
registryId string lub null nie
latestCudaTag boolean nie

Przykładowe żądanie (curl)

curl -X PATCH "https://apidly.com/api/v1/templates/tpl_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","summary":"example","description":"example"}'

JavaScript (SDK)

await apidly.templates.update("tpl_example", {
  name: "example",
  summary: "example",
  description: "example"
});

Python (SDK)

client.templates.update("tpl_example", body={
    "name": "example",
    "summary": "example",
    "description": "example",
})

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 400, 401, 403, 404, 429.

DELETE /templates/{id}

Usuń szablon lub ukryj go, gdy serwery wciąż się do niego odwołują

Wymagany scope: full · Rola twórcy: admin

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl -X DELETE "https://apidly.com/api/v1/templates/tpl_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.delete("tpl_example");

Python (SDK)

client.templates.delete("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "deleted": false,
  "hidden": false
}

Statusy błędów: 401, 403, 404, 429.

POST /templates/{id}/share

Utwórz link udostępniania szablonu Twojej organizacji

Anyone with the link sees the template's name, description, image, ports, minimum GPU memory and the NAMES of its plain environment variables, and can copy it into their own organization. Secret values, registry logins and (unless includeStartScript is true) the start script are never shared.

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Treść żądania

Nazwa Typ Wymagany Opis
displayName string lub null nie
includeStartScript boolean nie
expiresInDays integer lub null nie

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/templates/tpl_example/share" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"displayName":"example","includeStartScript":false,"expiresInDays":null}'

JavaScript (SDK)

await apidly.templates.share("tpl_example");

Python (SDK)

client.templates.share("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "share": {
    "id": "example",
    "templateId": "id_example",
    "token": "example",
    "displayName": "example",
    "includeStartScript": false,
    "expiresAt": "2026-11-21T10:00:00.000Z",
    "status": "active",
    "viewCount": 1,
    "importCount": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 400, 401, 403, 404, 409, 429.

DELETE /templates/{id}/share

Unieważnij linki udostępniania szablonu

Revokes one link with ?shareId=, or every active link of the template when omitted.

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl -X DELETE "https://apidly.com/api/v1/templates/tpl_example/share" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.unshare("tpl_example");

Python (SDK)

client.templates.unshare("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "revoked": 1
}

Statusy błędów: 401, 403, 404, 429.

GET /templates/{id}/share

Linki udostępniania szablonu

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl "https://apidly.com/api/v1/templates/tpl_example/share" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.listShares("tpl_example");

Python (SDK)

client.templates.list_shares("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "shares": [
    {
      "id": "example",
      "templateId": "id_example",
      "token": "example",
      "displayName": "example",
      "includeStartScript": false,
      "expiresAt": "2026-11-21T10:00:00.000Z",
      "status": "active",
      "viewCount": 1,
      "importCount": 1,
      "createdAt": "2026-11-21T10:00:00.000Z"
    }
  ]
}

Statusy błędów: 401, 403, 404, 429.

POST /templates/{id}/duplicate

Skopiuj szablon Twojej organizacji

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/templates/tpl_example/duplicate" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.duplicate("tpl_example");

Python (SDK)

client.templates.duplicate("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 401, 403, 404, 409, 429.

GET /templates/{id}/revisions

Historia rewizji szablonu, najnowsze najpierw

Secret values are never included.

Wymagany scope: read

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl "https://apidly.com/api/v1/templates/tpl_example/revisions" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.listRevisions("tpl_example");

Python (SDK)

client.templates.list_revisions("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "revisions": [
    {
      "rev": 1,
      "kind": "example",
      "restoredFrom": 1,
      "createdAt": "2026-11-21T10:00:00.000Z",
      "createdByName": "example",
      "current": false,
      "servers": 1,
      "snapshot": {
        "key": null
      }
    }
  ]
}

Statusy błędów: 401, 403, 404, 429.

POST /templates/{id}/revisions/{rev}/restore

Przywróć starszą rewizję jako nową

History is never rewritten: the restored copy becomes the newest revision.

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak
rev path string tak

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/templates/tpl_example/revisions/1/restore" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.restoreRevision("tpl_example", "1");

Python (SDK)

client.templates.restore_revision("tpl_example", "1")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  },
  "revision": 1
}

Statusy błędów: 401, 403, 404, 429.

GET /templates/{id}/export

Wyeksportuj szablon do przenośnego pliku

The file the console downloads. Secret variables appear as names in secretEnvNames, never with values; the registry login is never included. Send its text to POST /templates/import to copy it into an organization. Only your organization's own templates can be exported: a built-in template answers 409 invalid_state (read it with GET /templates/{id}).

Wymagany scope: full · Uprawnienie: templates.manage

Parametry

Nazwa Gdzie Typ Wymagany Opis
id path string tak

Przykładowe żądanie (curl)

curl "https://apidly.com/api/v1/templates/tpl_example/export" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.templates.export("tpl_example");

Python (SDK)

client.templates.export("tpl_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (200)

{
  "format": "apidly-template",
  "version": 1,
  "template": {
    "name": "example",
    "summary": "example",
    "description": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "secretEnvNames": [
      "example"
    ],
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "appPort": 1,
    "inference": {
      "key": null
    },
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "defaultDiskGb": 1,
    "minVramGb": 1
  }
}

Statusy błędów: 401, 403, 404, 409, 429.

POST /templates/import

Utwórz szablon z wyeksportowanego pliku

json is the text of a file from GET /templates/{id}/export (or the console's Export). Secret variables arrive blank and the registry unset. 400 invalid_file when it is not such a file.

Wymagany scope: full · Uprawnienie: templates.manage · Można bezpiecznie ponowić z: Idempotency-Key

Treść żądania

Nazwa Typ Wymagany Opis
json string tak

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/templates/import" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"json":"example"}'

JavaScript (SDK)

await apidly.templates.import("example");

Python (SDK)

client.templates.import_file(file="example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 400, 401, 403, 409, 429.

POST /template-shares/{token}/import

Skopiuj udostępniony szablon do swojej organizacji

token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.

Wymagany scope: full · Uprawnienie: templates.manage · Można bezpiecznie ponowić z: Idempotency-Key

Parametry

Nazwa Gdzie Typ Wymagany Opis
token path string tak

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/template-shares/templateshare_example/import" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

JavaScript (SDK)

await apidly.templates.importShared("templateshare_example");

Python (SDK)

client.templates.import_shared("templateshare_example")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "summary": "example",
    "category": "example",
    "image": "docker.io/library/ubuntu",
    "tag": "example",
    "launchMode": "ssh",
    "env": {
      "key": "example"
    },
    "ports": [
      {
        "port": 1,
        "protocol": "tcp",
        "label": "example"
      }
    ],
    "startScript": "example",
    "onStart": "example",
    "args": "example",
    "description": "example",
    "secretEnvKeys": [
      "example"
    ],
    "registryId": "id_example",
    "appPort": 1,
    "defaultDiskGb": 1,
    "minVramGb": 1,
    "recommendedVramGb": 1,
    "constraints": {
      "key": null
    },
    "latestCudaTag": false,
    "inference": {
      "api": "http",
      "healthPath": "example",
      "port": 1
    },
    "custom": false,
    "firstBootMinutes": 1,
    "revision": 1,
    "sort": 1,
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

Statusy błędów: 401, 403, 404, 409, 429.

POST /template-shares/{token}/report

Zgłoś udostępniony szablon naszemu zespołowi (najwyżej 10 na godzinę na organizację)

Opens a support ticket for staff with the reason (malware, illegal, secrets, other) and your details. Five reports an hour per key and ten an hour per organization, across all its keys.

Wymagany scope: servers · Można bezpiecznie ponowić z: Idempotency-Key

Parametry

Nazwa Gdzie Typ Wymagany Opis
token path string tak

Treść żądania

Nazwa Typ Wymagany Opis
details string nie
reason malware | illegal | secrets | other tak

Przykładowe żądanie (curl)

curl -X POST "https://apidly.com/api/v1/template-shares/templateshare_example/report" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"reason":"malware"}'

JavaScript (SDK)

await apidly.templates.reportShared("templateshare_example", {
  reason: "malware"
});

Python (SDK)

client.templates.report_shared("templateshare_example", reason="malware")

Narzędzie wiersza poleceń: apidly templates (Dokumentacja CLI)

Przykładowa odpowiedź (201)

{
  "ticketId": "id_example"
}

Statusy błędów: 400, 401, 403, 404, 429.

Gotowy, by spróbować?

Załóż darmowe konto i doładuj saldo, gdy zechcesz uruchomić serwer. Najmniejsze doładowanie to 10 $.

Załóż darmowe konto

Czy to było pomocne?

Nadal nie działa? Skontaktuj się z nami