Skip to main content
POST
/
v1
/
arc
/
projects
Create project
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    name: '<string>',
    slug: '<string>',
    description: '<string>',
    visibility: 'org',
    metadata: {}
  })
};

fetch('http://localhost:4005/v1/arc/projects', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "organizationId": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "visibility": "org",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "metadata": {},
    "deletedAt": "2023-11-07T05:31:56Z",
    "userRole": "admin"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Body

application/json
name
string
required
Required string length: 1 - 255
slug
string
required
Required string length: 1 - 255
Pattern: ^[a-z0-9-]+$
description
string
Maximum string length: 1000
visibility
enum<string>
default:org
Available options:
org,
members_only
metadata
object

Response

Project created successfully

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required