project

Update user project

Changed on

You need to pass only those fields that need to be changed.

patch/api/v1/project/{id}

Request

  • Base URL
    http://localhost:8888
  • Auth
    none declared

Path parameters

idinteger required

Project ID

Request body multipart/form-data

namestring
imagestring binary
remove_imageboolean

Example request

{
  "name": "Test Project"
}

Response

Project

Example response

{
  "project": {
    "id": 1,
    "name": "Test project",
    "avatar": "https://tonapi.io/static/test.png",
    "date_create": 1690889913000
  }
}

Changes

    • warning

      added the new stats enum value to the // response property for the response status

    • info

      added the required property / to the response with the status