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

The body is of type object.

Response

200
application/json

Ok

The response is of type object.