Create a new project
1 min
POST
/v2/projects
Body Parameters
- bodyPublicCreateProjectDtorequiredDescription
- titlestringrequired
- workspaceIdstring<uuid>
Responses
200
- Enveloped_PublicProjectDto
- dataPublicProjectDtorequired
- createdAtstring<date-time>required
- idstring<uuid>required
- titlestringrequired
- workspaceIdstring<uuid>required
400
- BadRequest
- errorCodestring
- messagestringrequired
401
- Unauthorized
- messagestringrequired
403
- Forbidden
- messagestringrequired
404
- NotFound
- messagestringrequired
413
- PayloadTooLarge
- messagestringrequired
500
- InternalServerError
- messagestringrequired
curl
curl --request POST \
--url /v2/projects \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"title": ""
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"title": ""
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("/v2/projects", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/v2/projects")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"title": ""
})
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/v2/projects"
payload = json.dumps({
"title": ""
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
{
"data": {
"createdAt": "",
"id": "",
"title": "",
"workspaceId": ""
}
}400
// Bad request
{
"errorCode": "",
"message": ""
}401
// Unauthorized
{
"message": ""
}403
// Forbidden
{
"message": ""
}404
// Not found
{
"message": ""
}413
// Payload too large
{
"message": ""
}500
// Internal server error
{
"message": ""
}Create a new project. It is required to provide a workspace id you have access to multiple workspaces.
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.