LogoFreestyle
API Reference/Dev servers

Restart the dev server (systemctl restart freestyle-run-dev)

POST/ephemeral/v1/dev-servers/restart

Request Body

application/jsonRequired
devServerRequiredobject

Response Body

200

Successful

restartedRequiredboolean

500

Internal Server Error

responseRequiredstring
curl -X POST "https://api.freestyle.sh/ephemeral/v1/dev-servers/restart" \
  -H "Content-Type: application/json" \
  -d '{
    "devServer": {
      "repoId": "c7c90052-c566-40b6-94a5-a1e9a44bfdc7",
      "gitRef": "string",
      "kind": "repo"
    }
  }'

Successful

{
  "restarted": true
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.