---
updatedAt: 2025-08-20T15:27:41.000Z
agentTools:
  projectIndex: https://docs.developer.rabobank.com/smartpay/llms.txt
---

# Update an existing user

Update an existing user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "SmartPin API",
    "title": "SmartPin Public API",
    "version": "1.3.4",
    "x-api-id": "54b1a324-fe2b-41fe-95de-62380de2174b",
    "x-ibm-name": "smartpin-backend-api"
  },
  "servers": [
    {
      "url": "https://api.rabobank.nl/api/v1",
      "description": "Production server"
    }
  ],
  "paths": {
    "/user/{userId}": {
      "put": {
        "parameters": [
          {
            "description": "The contract ID",
            "example": "123456, C123456, U412345",
            "in": "header",
            "name": "Contract",
            "required": false,
            "schema": {
              "pattern": "^([A-Z][A-Z0-9]{1,10})|$",
              "type": "string"
            }
          },
          {
            "description": "The user ID",
            "example": 123,
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The user has been updated"
          }
        },
        "tags": [
          "Users"
        ],
        "description": "Update an existing user",
        "operationId": "updateUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRequest"
              }
            }
          },
          "required": true
        },
        "summary": "Update an existing user"
      }
    }
  },
  "components": {
    "schemas": {
      "UserRequest": {
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "receipt_name": {
            "type": "string"
          },
          "role": {
            "enum": [
              "none",
              "contract_owner",
              "administrator",
              "user_plus",
              "user_basic",
              "finance",
              "user_register"
            ],
            "type": "string"
          },
          "sites": {
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "email",
          "role"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "clientId": {
        "description": "ClientId as provided by the Rabobank developer portal.",
        "in": "header",
        "name": "X-IBM-Client-Id",
        "type": "apiKey"
      }
    }
  },
  "security": [
    {
      "clientId": []
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```