Πρότυπα: όλες οι λειτουργίες του API v1 με το απαιτούμενο scope, τις παραμέτρους, παραδείγματα σε curl, JavaScript και Python και τις απαντήσεις. Η ταυτοποίηση, τα σφάλματα, η σελιδοποίηση, τα όρια και η αυτοδυναμία περιγράφονται στην επισκόπηση της αναφοράς API· δείτε και τα SDK και τη γραμμή εντολών.
Δοκιμάστε το με το κλειδί σας: δημιουργήστε ένα κλειδί API στην κονσόλα, εκτελέστε
export APIDLY_API_KEY=...στο τερματικό και επικολλήστε οποιοδήποτε παράδειγμα curl παρακάτω. Οι τιμές των παραδειγμάτων είναι ενδεικτικές. Σε αυτή τη σελίδα δεν υπάρχει πεδίο για εισαγωγή κλειδιού.
Οι περιγραφές των λειτουργιών και των πεδίων προέρχονται από τον ορισμό του API και είναι στα αγγλικά.
| Λειτουργία | Απαιτούμενο scope | Περίληψη |
|---|---|---|
GET /templates |
read |
Δημόσια πρότυπα και τα πρότυπα του οργανισμού σας |
POST /templates |
full |
Δημιουργία προτύπου οργανισμού |
GET /templates/{id} |
read |
Ένα πρότυπο |
PATCH /templates/{id} |
full |
Ενημέρωση ενός προτύπου του οργανισμού σας |
DELETE /templates/{id} |
full |
Διαγραφή ενός προτύπου ή απόκρυψή του όταν διακομιστές το αναφέρουν ακόμη |
POST /templates/{id}/share |
full |
Δημιουργία συνδέσμου κοινής χρήσης για ένα πρότυπο του οργανισμού σας |
DELETE /templates/{id}/share |
full |
Ανάκληση των συνδέσμων κοινής χρήσης ενός προτύπου |
GET /templates/{id}/share |
full |
Σύνδεσμοι κοινής χρήσης ενός προτύπου |
POST /templates/{id}/duplicate |
full |
Αντιγραφή ενός προτύπου του οργανισμού σας |
GET /templates/{id}/revisions |
read |
Ιστορικό αναθεωρήσεων ενός προτύπου, οι νεότερες πρώτα |
POST /templates/{id}/revisions/{rev}/restore |
full |
Επαναφορά παλαιότερης αναθεώρησης ως νέας |
GET /templates/{id}/export |
full |
Εξαγωγή προτύπου σε φορητό αρχείο |
POST /templates/import |
full |
Δημιουργία προτύπου από εξαγόμενο αρχείο |
POST /template-shares/{token}/import |
full |
Αντιγραφή κοινόχρηστου προτύπου στον οργανισμό σας |
POST /template-shares/{token}/report |
servers |
Αναφορά κοινόχρηστου προτύπου στο προσωπικό μας (έως 10 την ώρα ανά οργανισμό) |
GET /templates
Δημόσια πρότυπα και τα πρότυπα του οργανισμού σας
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.
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
limit |
query | integer | όχι | |
cursor |
query | string | όχι | |
q |
query | string | όχι | |
category |
query | base | llm | image | notebook | training | custom |
όχι | |
source |
query | builtin | own |
όχι | |
vramGb |
query | integer | όχι |
Παράδειγμα αιτήματος (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()Εργαλείο γραμμής εντολών: apidly templates, apidly export, apidly plan, apidly apply (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}Καταστάσεις σφάλματος: 401, 403, 429.
POST /templates
Δημιουργία προτύπου οργανισμού
Απαιτούμενο scope: full · Ρόλος δημιουργού: admin · Ασφαλής επανάληψη με: Idempotency-Key
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
name |
string | ναι | |
summary |
string | όχι | |
description |
string | όχι | |
image |
string | ναι | |
tag |
string | όχι | |
launchMode |
ssh | jupyter | app |
ναι | |
env |
object | όχι | |
secretEnv |
object | όχι | |
ports |
πίνακας από object | όχι | |
startScript |
string | όχι | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | όχι | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | όχι | |
appPort |
integer ή null | όχι | |
defaultDiskGb |
integer | όχι | |
minVramGb |
integer | όχι | |
constraints |
object | όχι | |
recommendedVramGb |
integer ή null | όχι | |
inference |
object ή null | όχι | |
registryId |
string ή null | όχι | |
latestCudaTag |
boolean | όχι | |
inheritSecretsFrom |
string | όχι |
Παράδειγμα αιτήματος (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",
})Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 409, 429.
GET /templates/{id}
Ένα πρότυπο
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
PATCH /templates/{id}
Ενημέρωση ενός προτύπου του οργανισμού σας
Απαιτούμενο scope: full · Ρόλος δημιουργού: admin
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
name |
string | όχι | |
summary |
string | όχι | |
description |
string | όχι | |
image |
string | όχι | |
tag |
string | όχι | |
launchMode |
ssh | jupyter | app |
όχι | |
env |
object | όχι | |
secretEnv |
object | όχι | |
ports |
πίνακας από object | όχι | |
startScript |
string | όχι | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | όχι | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | όχι | |
appPort |
integer ή null | όχι | |
defaultDiskGb |
integer | όχι | |
minVramGb |
integer | όχι | |
constraints |
object | όχι | |
recommendedVramGb |
integer ή null | όχι | |
inference |
object ή null | όχι | |
registryId |
string ή null | όχι | |
latestCudaTag |
boolean | όχι |
Παράδειγμα αιτήματος (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",
})Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Διαγραφή ενός προτύπου ή απόκρυψή του όταν διακομιστές το αναφέρουν ακόμη
Απαιτούμενο scope: full · Ρόλος δημιουργού: admin
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"deleted": false,
"hidden": false
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
POST /templates/{id}/share
Δημιουργία συνδέσμου κοινής χρήσης για ένα πρότυπο του οργανισμού σας
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.
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
displayName |
string ή null | όχι | |
includeStartScript |
boolean | όχι | |
expiresInDays |
integer ή null | όχι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Ανάκληση των συνδέσμων κοινής χρήσης ενός προτύπου
Revokes one link with ?shareId=, or every active link of the template when omitted.
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"revoked": 1
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
GET /templates/{id}/share
Σύνδεσμοι κοινής χρήσης ενός προτύπου
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
]
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Αντιγραφή ενός προτύπου του οργανισμού σας
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Ιστορικό αναθεωρήσεων ενός προτύπου, οι νεότερες πρώτα
Secret values are never included.
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Επαναφορά παλαιότερης αναθεώρησης ως νέας
History is never rewritten: the restored copy becomes the newest revision.
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι | |
rev |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
GET /templates/{id}/export
Εξαγωγή προτύπου σε φορητό αρχείο
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}).
Απαιτούμενο scope: full · Δικαίωμα: templates.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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
}
}Καταστάσεις σφάλματος: 401, 403, 404, 409, 429.
POST /templates/import
Δημιουργία προτύπου από εξαγόμενο αρχείο
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.
Απαιτούμενο scope: full · Δικαίωμα: templates.manage · Ασφαλής επανάληψη με: Idempotency-Key
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
json |
string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Αντιγραφή κοινόχρηστου προτύπου στον οργανισμό σας
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Απαιτούμενο scope: full · Δικαίωμα: templates.manage · Ασφαλής επανάληψη με: Idempotency-Key
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
token |
path | string | ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (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"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Αναφορά κοινόχρηστου προτύπου στο προσωπικό μας (έως 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.
Απαιτούμενο scope: servers · Ασφαλής επανάληψη με: Idempotency-Key
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
token |
path | string | ναι |
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
details |
string | όχι | |
reason |
malware | illegal | secrets | other |
ναι |
Παράδειγμα αιτήματος (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")Εργαλείο γραμμής εντολών: apidly templates (Αναφορά CLI)
Παράδειγμα απάντησης (201)
{
"ticketId": "id_example"
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 429.
Έτοιμοι να το δοκιμάσετε;
Δημιουργήστε έναν δωρεάν λογαριασμό και προσθέστε πίστωση όταν θέλετε να ξεκινήσετε έναν διακομιστή. Η μικρότερη φόρτιση είναι 10 $.
Ήταν χρήσιμο;