Skip to content

Create Project

POST
/api/projects
curl --request POST \
--url http://localhost:8000/api/projects \
--header 'Content-Type: application/json' \
--cookie factory_session=<factory_session> \
--data '{ "name": "example", "description": "example", "default_repo": { "installation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "repo_id": 1 } }'
Media typeapplication/json
CreateProject
object
name
required
Name
string
>= 1 characters <= 100 characters
description
Any of:
string
<= 1000 characters
default_repo
required
RepoRef
object
installation_id
required
Installation Id
string format: uuid
repo_id
required
Repo Id
integer

Example generated

{
"name": "example",
"description": "example",
"default_repo": {
"installation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"repo_id": 1
}
}

Successful Response

Media typeapplication/json
Response Create Project Api Projects Post
object
key
additional properties
any

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}