Create a project
POST
/api/orgs/{org}/projects
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","importUrl":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Project
Media typeapplication/json
object
Example
{ "visibility": "private", "role": "owner"}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}OrgNotFound
Media typeapplication/json
object
_tag
required
string
org
required
string
Example
{ "_tag": "OrgNotFound"}ProjectExists
Media typeapplication/json
object
_tag
required
string
project
required
string
Example
{ "_tag": "ProjectExists"}InvalidInput
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "InvalidInput"}