Validate project template
POST /api/v1/template
POST
/api/v1/template
Accepts a raw .warden.json body, validates it against the ProjectTemplate schema, applies security sanitization, and returns the cleaned template. Used by the frontend import-from-file flow.
Request Body required
Section titled “Request Body required ”Raw template JSON
One of:
object
Raw template JSON
object
agents
object
key
additional properties
object
allowedDomains
Array<string>
costBudget
number
forwardedPorts
Array<integer>
image
string
networkMode
NetworkMode controls the container’s network isolation level.
string
runtimes
Array<string>
skipPermissions
boolean
Responses
Section titled “ Responses ”OK
Template holds project template values loaded from .warden.json, if present.
object
agents
object
key
additional properties
object
allowedDomains
Array<string>
costBudget
number
forwardedPorts
Array<integer>
image
string
networkMode
NetworkMode controls the container’s network isolation level.
string
runtimes
Array<string>
skipPermissions
boolean
Bad Request
object
code
string
error
string