POST
/
fastedge
/
v1
/
template
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
template_short = client.fastedge.templates.create(
    binary_id=0,
    name="name",
    owned=True,
    params=[{
        "data_type": "string",
        "mandatory": True,
        "name": "name",
    }],
)
print(template_short.id)
{
  "id": 123,
  "name": "<string>",
  "short_descr": "<string>",
  "long_descr": "<string>",
  "api_type": "<string>",
  "owned": true
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Template details

binary_id
integer
required

Binary ID

name
string
required

Name of the template

owned
boolean
required

Is the template owned by user?

params
object[]
required

Parameters

short_descr
string

Short description of the template

long_descr
string

Long description of the template

Response

Ok

id
integer
required

Template ID

name
string
required

Name of the template

api_type
string
required

Wasm API type

owned
boolean
required

Is the template owned by user?

short_descr
string

Short description of the template

long_descr
string

Long description of the template