Skip to content

Create a serve static rule

POST
/api/v2/organizations/{organization}/projects/{project}/rules/serve-static

Authorizations

Parameters

Path Parameters

organization
required
string

Organization identifier

project
required
string

Project identifier

Request Body required

object
static_file_path
required

Path to the static file to serve

string
/index.html

Responses

200

The request has succeeded.

object
action_config
required
object
static_file_path

Path to the static file to serve

string
/index.html

400

The server could not understand the request due to invalid syntax.

object
message
required

Error message

string
The requested resource was not found
error
required

Error flag

boolean
true

403

Access is forbidden.

object
message
required

Error message

string
The requested resource was not found
error
required

Error flag

boolean
true