PATCH /projects/{projectId}

Update project by ID

Path parameters

  • projectId string Required

    Project ID

application/json

Body

  • name string
  • access string

    Access control

    Values are private or public.

Responses

  • 200 application/json

    OK

    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

  • 404 application/json

    Not Found

    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

PATCH /projects/{projectId}
curl \
 --request PATCH 'https://api.metafold3d.com/projects/{projectId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"My Project","access":"public"}'
Request example
{
  "name": "My Project",
  "access": "public"
}
Response examples (200)
{
  "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"
}
Response examples (404)
{
  "code": 404,
  "name": "Not Found",
  "description": "Resource does not exist"
}