Gå til hovedindhold
Apidly Cloud
Cookiepolitik

Cookies til analyse og annoncer forbliver slået fra, medmindre du accepterer dem. Cookiepolitik

Vi vil gerne bruge Google Analytics og Microsoft Clarity til at forstå, hvordan de offentlige sider bruges, herunder sidevisninger og sessionsoptagelser, samt Reddit Pixel til at måle, om vores annoncer på Reddit fører til besøg og tilmeldinger. Du vælger her, om de er slået til. Afvisning ændrer ikke på, hvordan siden fungerer.

API-reference: Skabeloner

Handlinger i API v1 for Skabeloner: scope, parametre, eksempler i curl, JavaScript og Python samt svar.

Senest opdateret 21. november 20268 min. læsetid
Vis som Markdown

Skabeloner: alle handlinger i API v1 med scope, parametre, eksempler i curl, JavaScript og Python samt svar. Godkendelse, fejl, sideinddeling, grænser og idempotens står i oversigten over API-referencen; se også SDK'erne og kommandolinjen.

Prøv med din nøgle: opret en API-nøgle i konsollen, kør export APIDLY_API_KEY=... i terminalen, og indsæt et curl-eksempel nedenfor. Eksempelværdierne er illustrative. Der er intet felt til at indtaste en nøgle på denne side.

Beskrivelserne af operationer og felter kommer fra API-definitionen og er på engelsk.

Handling Påkrævet scope Resumé
GET /templates read Offentlige skabeloner og din organisations egne
POST /templates full Opret en organisationsskabelon
GET /templates/{id} read Én skabelon
PATCH /templates/{id} full Opdater en af din organisations skabeloner
DELETE /templates/{id} full Slet en skabelon, eller skjul den, når servere stadig refererer til den
POST /templates/{id}/share full Opret et delingslink til en af din organisations skabeloner
DELETE /templates/{id}/share full Træk delingslinks til en skabelon tilbage
GET /templates/{id}/share full Delingslinks til en skabelon
POST /templates/{id}/duplicate full Kopiér en af din organisations skabeloner
GET /templates/{id}/revisions read Revisionshistorik for en skabelon, nyeste først
POST /templates/{id}/revisions/{rev}/restore full Gendan en ældre revision som en ny
GET /templates/{id}/export full Eksportér en skabelon som en flytbar fil
POST /templates/import full Opret en skabelon ud fra en eksporteret fil
POST /template-shares/{token}/import full Kopiér en delt skabelon til din organisation
POST /template-shares/{token}/report servers Anmeld en delt skabelon til vores medarbejdere (højst 10 i timen pr. organisation)

GET /templates

Offentlige skabeloner og din organisations egne

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.

Påkrævet scope: read

Parametre

Navn I Type Påkrævet Beskrivelse
limit query integer nej
cursor query string nej
q query string nej
category query base | llm | image | notebook | training | custom nej
source query builtin | own nej
vramGb query integer nej

Eksempel på anmodning (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()

Kommandolinjeværktøj: apidly templates, apidly export, apidly plan, apidly apply (CLI-reference)

Eksempel på svar (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"
}

Fejlstatusser: 401, 403, 429.

POST /templates

Opret en organisationsskabelon

Påkrævet scope: full · Opretterens rolle: admin · Kan gentages sikkert med: Idempotency-Key

Anmodningens indhold

Navn Type Påkrævet Beskrivelse
name string ja
summary string nej
description string nej
image string ja
tag string nej
launchMode ssh | jupyter | app ja
env object nej
secretEnv object nej
ports array af object nej
startScript string nej Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart.
onStart string nej Deprecated name of startScript, read until 2027-05-31. Send startScript.
args string nej
appPort integer eller null nej
defaultDiskGb integer nej
minVramGb integer nej
constraints object nej
recommendedVramGb integer eller null nej
inference object eller null nej
registryId string eller null nej
latestCudaTag boolean nej
inheritSecretsFrom string nej

Eksempel på anmodning (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",
})

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 400, 401, 403, 409, 429.

GET /templates/{id}

Én skabelon

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

Påkrævet scope: read

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 401, 403, 404, 429.

PATCH /templates/{id}

Opdater en af din organisations skabeloner

Påkrævet scope: full · Opretterens rolle: admin

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Anmodningens indhold

Navn Type Påkrævet Beskrivelse
name string nej
summary string nej
description string nej
image string nej
tag string nej
launchMode ssh | jupyter | app nej
env object nej
secretEnv object nej
ports array af object nej
startScript string nej Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart.
onStart string nej Deprecated name of startScript, read until 2027-05-31. Send startScript.
args string nej
appPort integer eller null nej
defaultDiskGb integer nej
minVramGb integer nej
constraints object nej
recommendedVramGb integer eller null nej
inference object eller null nej
registryId string eller null nej
latestCudaTag boolean nej

Eksempel på anmodning (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",
})

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 400, 401, 403, 404, 429.

DELETE /templates/{id}

Slet en skabelon, eller skjul den, når servere stadig refererer til den

Påkrævet scope: full · Opretterens rolle: admin

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (200)

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

Fejlstatusser: 401, 403, 404, 429.

POST /templates/{id}/share

Opret et delingslink til en af din organisations skabeloner

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.

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Anmodningens indhold

Navn Type Påkrævet Beskrivelse
displayName string eller null nej
includeStartScript boolean nej
expiresInDays integer eller null nej

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 400, 401, 403, 404, 409, 429.

DELETE /templates/{id}/share

Træk delingslinks til en skabelon tilbage

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

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (200)

{
  "revoked": 1
}

Fejlstatusser: 401, 403, 404, 429.

GET /templates/{id}/share

Delingslinks til en skabelon

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
    }
  ]
}

Fejlstatusser: 401, 403, 404, 429.

POST /templates/{id}/duplicate

Kopiér en af din organisations skabeloner

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 401, 403, 404, 409, 429.

GET /templates/{id}/revisions

Revisionshistorik for en skabelon, nyeste først

Secret values are never included.

Påkrævet scope: read

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (200)

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

Fejlstatusser: 401, 403, 404, 429.

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

Gendan en ældre revision som en ny

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

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja
rev path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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
}

Fejlstatusser: 401, 403, 404, 429.

GET /templates/{id}/export

Eksportér en skabelon som en flytbar fil

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}).

Påkrævet scope: full · Tilladelse: templates.manage

Parametre

Navn I Type Påkrævet Beskrivelse
id path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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
  }
}

Fejlstatusser: 401, 403, 404, 409, 429.

POST /templates/import

Opret en skabelon ud fra en eksporteret fil

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.

Påkrævet scope: full · Tilladelse: templates.manage · Kan gentages sikkert med: Idempotency-Key

Anmodningens indhold

Navn Type Påkrævet Beskrivelse
json string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 400, 401, 403, 409, 429.

POST /template-shares/{token}/import

Kopiér en delt skabelon til din organisation

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

Påkrævet scope: full · Tilladelse: templates.manage · Kan gentages sikkert med: Idempotency-Key

Parametre

Navn I Type Påkrævet Beskrivelse
token path string ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (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"
  }
}

Fejlstatusser: 401, 403, 404, 409, 429.

POST /template-shares/{token}/report

Anmeld en delt skabelon til vores medarbejdere (højst 10 i timen pr. organisation)

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.

Påkrævet scope: servers · Kan gentages sikkert med: Idempotency-Key

Parametre

Navn I Type Påkrævet Beskrivelse
token path string ja

Anmodningens indhold

Navn Type Påkrævet Beskrivelse
details string nej
reason malware | illegal | secrets | other ja

Eksempel på anmodning (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")

Kommandolinjeværktøj: apidly templates (CLI-reference)

Eksempel på svar (201)

{
  "ticketId": "id_example"
}

Fejlstatusser: 400, 401, 403, 404, 429.

Klar til at prøve det?

Opret en gratis konto, og tilføj kredit, når du vil starte en server. Den mindste optopning er 10 $.

Opret en gratis konto

Var det nyttigt?

Sidder du stadig fast? Kontakt os