POST /projects

Create project with the given data

application/json

Body Required

  • name string Required
  • access string

    Access control

    Values are private or public.

Responses

  • 201 application/json

    Created

    Hide response attributes Show response attributes object
    • id string Required
    • user string Required

      Owner ID

    • name string Required
    • access string

      Access control

      Values are private or public.

    • created string Required

      ISO 8601 datetime

    • modified string Required

      ISO 8601 datetime

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

POST /projects
curl \
 --request POST 'https://api.metafold3d.com/projects' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"My Project"}'
Request example
{
  "name": "My Project"
}
Response examples (201)
{
  "id": "123",
  "name": "my-project",
  "user": "auth0|668d4279b22e4ed36b598305",
  "access": "private",
  "created": "2006-01-02T22:04:05+00:00",
  "modified": "2006-01-02T22:04:05+00:00"
}
Response examples (400)
{
  "code": 400,
  "name": "Bad Request",
  "description": "Expected parameter \"foo\""
}
Response examples (401)
{
  "code": 401,
  "name": "Unauthorzed",
  "description": "Token has expired"
}