API ReferenceWeb
Deploy a Website
Deploy a website. Files is a map of file paths to file contents. Configuration is optional and contains additional information about the deployment.
Request Body
application/json
source*||
config*
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.freestyle.sh/web/v1/deployment" \ -H "Content-Type: application/json" \ -d '{ "source": { "files": { "property1": { "content": "string" }, "property2": { "content": "string" } }, "kind": "files" }, "config": {} }'{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
"domains": [
"string"
],
"entrypoint": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}