Sablonok: az API v1 minden művelete a szükséges scope-pal, paraméterekkel, curl-, JavaScript- és Python-példákkal, valamint válaszokkal. A hitelesítés, a hibák, a lapozás, a korlátok és az idempotencia az API-referencia áttekintésében található; lásd még az SDK-kat és a parancssort.
Próbálja ki a kulcsával: hozzon létre API-kulcsot a konzolban, futtassa a terminálban az
export APIDLY_API_KEY=...parancsot, majd illesszen be egy curl-példát lent. A példaértékek szemléltető jellegűek. Ezen az oldalon nincs mező kulcs megadására.
A műveletek és mezők leírása az API-definícióból származik, és angol nyelvű.
| Művelet | Szükséges scope | Összefoglaló |
|---|---|---|
GET /templates |
read |
Nyilvános sablonok és a szervezete saját sablonjai |
POST /templates |
full |
Szervezeti sablon létrehozása |
GET /templates/{id} |
read |
Egy sablon |
PATCH /templates/{id} |
full |
A szervezete egyik sablonjának frissítése |
DELETE /templates/{id} |
full |
Sablon törlése, vagy elrejtése, ha szerverek még hivatkoznak rá |
POST /templates/{id}/share |
full |
Megosztási link létrehozása a szervezete egyik sablonjához |
DELETE /templates/{id}/share |
full |
Egy sablon megosztási linkjeinek visszavonása |
GET /templates/{id}/share |
full |
Egy sablon megosztási hivatkozásai |
POST /templates/{id}/duplicate |
full |
A szervezete egyik sablonjának másolása |
GET /templates/{id}/revisions |
read |
Egy sablon változattörténete, a legújabb elöl |
POST /templates/{id}/revisions/{rev}/restore |
full |
Régebbi változat visszaállítása újként |
GET /templates/{id}/export |
full |
Sablon exportálása hordozható fájlba |
POST /templates/import |
full |
Sablon létrehozása exportált fájlból |
POST /template-shares/{token}/import |
full |
Megosztott sablon másolása az Ön szervezetébe |
POST /template-shares/{token}/report |
servers |
Megosztott sablon bejelentése munkatársainknak (szervezetenként óránként legfeljebb 10) |
GET /templates
Nyilvános sablonok és a szervezete saját sablonjai
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.
Szükséges scope: read
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
limit |
query | integer | nem | |
cursor |
query | string | nem | |
q |
query | string | nem | |
category |
query | base | llm | image | notebook | training | custom |
nem | |
source |
query | builtin | own |
nem | |
vramGb |
query | integer | nem |
Példakérés (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()Parancssori eszköz: apidly templates, apidly export, apidly plan, apidly apply (CLI-referencia)
Példaválasz (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"
}Hibaállapotok: 401, 403, 429.
POST /templates
Szervezeti sablon létrehozása
Szükséges scope: full · Létrehozó szerepe: admin · Biztonságosan újrapróbálható ezzel: Idempotency-Key
Kérés törzse
| Név | Típus | Kötelező | Leírás |
|---|---|---|---|
name |
string | igen | |
summary |
string | nem | |
description |
string | nem | |
image |
string | igen | |
tag |
string | nem | |
launchMode |
ssh | jupyter | app |
igen | |
env |
object | nem | |
secretEnv |
object | nem | |
ports |
object tömb | nem | |
startScript |
string | nem | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nem | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nem | |
appPort |
integer vagy null | nem | |
defaultDiskGb |
integer | nem | |
minVramGb |
integer | nem | |
constraints |
object | nem | |
recommendedVramGb |
integer vagy null | nem | |
inference |
object vagy null | nem | |
registryId |
string vagy null | nem | |
latestCudaTag |
boolean | nem | |
inheritSecretsFrom |
string | nem |
Példakérés (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",
})Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 400, 401, 403, 409, 429.
GET /templates/{id}
Egy sablon
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Szükséges scope: read
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 401, 403, 404, 429.
PATCH /templates/{id}
A szervezete egyik sablonjának frissítése
Szükséges scope: full · Létrehozó szerepe: admin
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Kérés törzse
| Név | Típus | Kötelező | Leírás |
|---|---|---|---|
name |
string | nem | |
summary |
string | nem | |
description |
string | nem | |
image |
string | nem | |
tag |
string | nem | |
launchMode |
ssh | jupyter | app |
nem | |
env |
object | nem | |
secretEnv |
object | nem | |
ports |
object tömb | nem | |
startScript |
string | nem | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nem | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nem | |
appPort |
integer vagy null | nem | |
defaultDiskGb |
integer | nem | |
minVramGb |
integer | nem | |
constraints |
object | nem | |
recommendedVramGb |
integer vagy null | nem | |
inference |
object vagy null | nem | |
registryId |
string vagy null | nem | |
latestCudaTag |
boolean | nem |
Példakérés (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",
})Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Sablon törlése, vagy elrejtése, ha szerverek még hivatkoznak rá
Szükséges scope: full · Létrehozó szerepe: admin
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (200)
{
"deleted": false,
"hidden": false
}Hibaállapotok: 401, 403, 404, 429.
POST /templates/{id}/share
Megosztási link létrehozása a szervezete egyik sablonjához
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.
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Kérés törzse
| Név | Típus | Kötelező | Leírás |
|---|---|---|---|
displayName |
string vagy null | nem | |
includeStartScript |
boolean | nem | |
expiresInDays |
integer vagy null | nem |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Egy sablon megosztási linkjeinek visszavonása
Revokes one link with ?shareId=, or every active link of the template when omitted.
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (200)
{
"revoked": 1
}Hibaállapotok: 401, 403, 404, 429.
GET /templates/{id}/share
Egy sablon megosztási hivatkozásai
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
]
}Hibaállapotok: 401, 403, 404, 429.
POST /templates/{id}/duplicate
A szervezete egyik sablonjának másolása
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Egy sablon változattörténete, a legújabb elöl
Secret values are never included.
Szükséges scope: read
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Hibaállapotok: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Régebbi változat visszaállítása újként
History is never rewritten: the restored copy becomes the newest revision.
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen | |
rev |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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
}Hibaállapotok: 401, 403, 404, 429.
GET /templates/{id}/export
Sablon exportálása hordozható fájlba
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}).
Szükséges scope: full · Jogosultság: templates.manage
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
id |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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
}
}Hibaállapotok: 401, 403, 404, 409, 429.
POST /templates/import
Sablon létrehozása exportált fájlból
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.
Szükséges scope: full · Jogosultság: templates.manage · Biztonságosan újrapróbálható ezzel: Idempotency-Key
Kérés törzse
| Név | Típus | Kötelező | Leírás |
|---|---|---|---|
json |
string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Megosztott sablon másolása az Ön szervezetébe
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Szükséges scope: full · Jogosultság: templates.manage · Biztonságosan újrapróbálható ezzel: Idempotency-Key
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
token |
path | string | igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (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"
}
}Hibaállapotok: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Megosztott sablon bejelentése munkatársainknak (szervezetenként óránként legfeljebb 10)
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.
Szükséges scope: servers · Biztonságosan újrapróbálható ezzel: Idempotency-Key
Paraméterek
| Név | Hol | Típus | Kötelező | Leírás |
|---|---|---|---|---|
token |
path | string | igen |
Kérés törzse
| Név | Típus | Kötelező | Leírás |
|---|---|---|---|
details |
string | nem | |
reason |
malware | illegal | secrets | other |
igen |
Példakérés (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")Parancssori eszköz: apidly templates (CLI-referencia)
Példaválasz (201)
{
"ticketId": "id_example"
}Hibaállapotok: 400, 401, 403, 404, 429.
Készen áll a kipróbálásra?
Hozzon létre ingyenes fiókot, és töltsön fel kreditet, amikor szervert szeretne indítani. A legkisebb feltöltés 10 $.
Hasznos volt?