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
}
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
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Template details
The body is of type object
.
Ok
The response is of type object
.
Was this page helpful?