Skip to main content
PUT
/
fastedge
/
v1
/
admin
/
template
/
{template_id}
Update template
curl --request PUT \
  --url https://api.gcore.com/fastedge/v1/admin/template/{template_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "binary_id": 12345,
  "name": "api-gateway-template",
  "owned": true,
  "params": [
    {
      "name": "api_key",
      "data_type": "string",
      "mandatory": true,
      "descr": "API key for external service authentication",
      "metadata": "<string>"
    }
  ],
  "short_descr": "HTTP API gateway with authentication",
  "long_descr": "Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities."
}
'
{
  "id": 123,
  "name": "<string>",
  "api_type": "<string>",
  "owned": true,
  "short_descr": "<string>",
  "long_descr": "<string>"
}

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

Path Parameters

template_id
integer<int64>
required

ID of the template

Body

application/json

Template details

binary_id
integer<int64>
required

ID of the WebAssembly binary to use for this template

Example:

12345

name
string
required

Unique name for the template (used for identification and searching)

Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9_ -]*$
Example:

"api-gateway-template"

owned
boolean
required

Is the template owned by user?

params
object[]
required

Parameters

short_descr
string

Brief one-line description displayed in template listings

Maximum string length: 255
Example:

"HTTP API gateway with authentication"

long_descr
string

Detailed markdown description explaining template features and usage

Maximum string length: 4096
Example:

"Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities."

Response

Template updated successfully, returns updated metadata

id
integer<int64>
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