Skip to content

Create a project

POST
/api/orgs/{org}/projects
curl --request POST \
--url https://api-dev.wrktr.com/api/orgs/example/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "importUrl": "example" }'

An empty git repo, or a copy of an HTTPS git remote (such as a GitHub repo) when importUrl is given.

org
required
string
Media typeapplication/json
object
name
required
string
description
Any of:
string
importUrl
Any of:
string
Examplegenerated
{
"name": "example",
"description": "example",
"importUrl": "example"
}

Project

Media typeapplication/json
object
id
required
string
org
required
string
name
required
string
remote
required
string
defaultBranch
required
string
lastPushAt
required
Any of:
string
visibility
required
string
Allowed values: private public
role
required
Any of:
string
Allowed values: owner member
forkedFrom
required
Any of:
object
org
required
string
name
required
string
Example
{
"visibility": "private",
"role": "owner"
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

OrgNotFound

Media typeapplication/json
object
_tag
required
string
Allowed values: OrgNotFound
org
required
string
Example
{
"_tag": "OrgNotFound"
}

ProjectExists

Media typeapplication/json
object
_tag
required
string
Allowed values: ProjectExists
project
required
string
Example
{
"_tag": "ProjectExists"
}

InvalidInput

Media typeapplication/json
object
_tag
required
string
Allowed values: InvalidInput
message
required
string
Example
{
"_tag": "InvalidInput"
}