Edge Functions
Get all Edge Functions in a configuration
GET /api/v4.0/conf/{config}/edge-functions HTTP/1.1
Host:
Accept: */*
Edge Functions retrieved successfully
{
"total": 1,
"items": [
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
]
}
Update an existing set of Edge Functions for a configuration
Edge Function Code
""
Unique id
^[A-Za-z0-9_]*$
PUT /api/v4.0/conf/{config}/edge-functions HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 78
[
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
]
{
"message": "Successfully updated entry"
}
Create a complete set of Edge Functions for a configuration
Edge Function Code
""
Unique id
^[A-Za-z0-9_]*$
POST /api/v4.0/conf/{config}/edge-functions HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 78
[
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
]
{
"message": "Successfully created entry"
}
Delete all Edge Functions in a configuration
DELETE /api/v4.0/conf/{config}/edge-functions HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully deleted entry"
}
Get an Edge Function from the specified configuration
GET /api/v4.0/conf/{config}/edge-functions/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
Update an individual Edge Function within a configuration
Edge Function Code
""
Unique id
^[A-Za-z0-9_]*$
PUT /api/v4.0/conf/{config}/edge-functions/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
{
"message": "Successfully updated entry"
}
Create an individual Edge Function within a configuration
Edge Function Code
""
Unique id
^[A-Za-z0-9_]*$
POST /api/v4.0/conf/{config}/edge-functions/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
{
"message": "Successfully created entry"
}
Delete an individual Edge Function from the specified configuration
DELETE /api/v4.0/conf/{config}/edge-functions/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully deleted entry"
}
Get list of versions of Edge Functions in a configuration
GET /api/v4.0/conf/{config}/edge-functions/versions HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"author": "text",
"email": "[email protected]",
"message": "text",
"date": "2025-07-14T13:32:38.597Z",
"version": "42bcc1282349db1e5791484c3d69420b1d8a8bc1",
"parents": [
"f44073242093228b45bff7eb7a065559fa9b46aa"
]
}
]
}
Get a specific version of an Edge Function
GET /api/v4.0/conf/{config}/edge-functions/versions/{version} HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"code": "text",
"description": "",
"id": "text",
"name": "text",
"phase": "request"
}
]
}
Set a previous Edge Function version to be the current one
PUT /api/v4.0/conf/{config}/edge-functions/versions/{version}/revert HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully updated entry"
}
Last updated
Was this helpful?