Creates a project with the provided configuration. Only the project name is required; everything else overrides a default.
Parameters
teamIdstringqueryThe team identifier to perform the request on behalf of.
slugstringqueryThe team slug to perform the request on behalf of.
Request body
namestringrequiredThe project name. Lowercase, up to 100 characters.
frameworkstringThe framework preset, or null for other.
buildCommandstringOverrides the detected build command.
rootDirectorystringThe folder inside the repository that holds the app.
environmentVariablesobject[]Variables to create with the project.
Show child parameters
keystringvaluestringtargetstring{
"name": "string",
"framework": "nextjs",
"buildCommand": "string",
"rootDirectory": "string",
"environmentVariables": [
{
"key": "string",
"value": "string",
"target": "production"
}
]
}Code samples
TypeScript
const res = await fetch('https://api.ridgeline.run/v11/projects?teamId=&slug=', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"name":"string","framework":"nextjs","buildCommand":"string","rootDirectory":"string","environmentVariables":[{"key":"string","value":"string","target":"production"}]}),
});
const data = await res.json();cURL
curl -X POST "https://api.ridgeline.run/v11/projects?teamId=&slug=" \
-H "Content-Type: application/json" \
-d '{"name":"string","framework":"nextjs","buildCommand":"string","rootDirectory":"string","environmentVariables":[{"key":"string","value":"string","target":"production"}]}'Python
import requests
res = requests.request(
"POST",
"https://api.ridgeline.run/v11/projects?teamId=&slug=",
headers={
"Content-Type": "application/json",
},
json={"name": "string", "framework": "nextjs", "buildCommand": "string", "rootDirectory": "string", "environmentVariables": [{"key": "string", "value": "string", "target": "production"}]},
)
data = res.json()Responses
200 OK
Example
{
"id": "prj_8f3k2",
"name": "my-app",
"framework": "nextjs",
"createdAt": 1760000000000
}Schema
idstringnamestringframeworkstringcreatedAtinteger400 One of the provided values is invalid.
403 You do not have permission to access this resource.