---
updatedAt: 2025-11-06T17:22:50.000Z
agentTools:
  projectIndex: https://blockmate.readme.io/llms.txt
---

# Update user

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Blockmate",
    "description": "Blockmate API OpenAPI documentation",
    "termsOfService": "https://www.blockmate.io/term/terms-and-conditions",
    "version": "0.0.2"
  },
  "servers": [
    {
      "description": "Blockmate API",
      "url": "https://api.blockmate.io"
    }
  ],
  "paths": {
    "/v1/users/{id}": {
      "post": {
        "summary": "Update user",
        "operationId": "UpdateUser",
        "tags": [
          "User management"
        ],
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "parameters": [
          {
            "description": "User id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "4301140e-d639-11ec-9120-00155d03ab64"
            }
          }
        ],
        "requestBody": {
          "description": "User",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "example": "some-name"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "User",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "missing key in request header"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "UserJWT": {
        "description": "User JWT Token",
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "ProjectJWT": {
        "description": "Project JWT Token",
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "ProjectToken": {
        "description": "Project Token used to manage users and to get JWT tokens used outside of Authentication API",
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    },
    "schemas": {
      "User": {
        "title": "User",
        "description": "Represents a user",
        "type": "object",
        "required": [
          "uuid",
          "name"
        ],
        "properties": {
          "uuid": {
            "type": "string",
            "example": "4301140e-d639-11ec-9120-00155d03ab64"
          },
          "name": {
            "type": "string",
            "example": "some-name"
          }
        }
      }
    }
  },
  "security": [
    {
      "UserJWT": []
    },
    {
      "ProjectJWT": []
    },
    {
      "ProjectToken": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```