---
updatedAt: 2026-11-04T04:38:31.000Z
agentTools:
  projectIndex: https://developer.runn.io/llms.txt
---

# Update a user

Currently supports updating people team access for restricted people managers.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Runn API",
    "version": "1.0.0",
    "description": "<p>See <a target=\"_blank\" href=\"https://help.runn.io/en/articles/8579592-api-v1-beta\" title=\"Runn API full documentation\">the full documentation and guide</a> to using the Runn API.</p><p>The domain for your API endpoint can be found in <strong>Accounts > Settings > API</strong> in your Runn application</p>"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "BadRequest": {
        "type": "object",
        "required": [
          "error",
          "message",
          "statusCode"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "Bad Request"
            ]
          },
          "message": {
            "type": "string"
          },
          "statusCode": {
            "type": "number",
            "enum": [
              400
            ]
          }
        }
      },
      "NotFound": {
        "type": "object",
        "required": [
          "error",
          "message",
          "statusCode"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "Not Found"
            ]
          },
          "message": {
            "type": "string"
          },
          "statusCode": {
            "type": "number",
            "enum": [
              404
            ]
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "required": [
          "error",
          "message",
          "statusCode"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              401
            ]
          }
        }
      },
      "User": {
        "type": "object",
        "required": [
          "id",
          "firstName",
          "lastName",
          "email",
          "personId",
          "permissions",
          "peopleTeams",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "firstName": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string"
          },
          "personId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "permissions": {
            "type": "object",
            "required": [
              "type",
              "userType",
              "financial",
              "editProjects",
              "manageProjects",
              "editOthers",
              "managePeople",
              "manageAccount",
              "addAllPeopleToProjects",
              "viewPlanner"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "admin",
                  "editor",
                  "viewer_all",
                  "viewer_basic",
                  "timesheet_only"
                ],
                "deprecated": true,
                "description": "Mapped permission type (deprecated: use userType)"
              },
              "userType": {
                "type": "string",
                "enum": [
                  "admin",
                  "manager",
                  "contributor"
                ],
                "description": "The user's unmapped database permission type"
              },
              "financial": {
                "type": "string",
                "enum": [
                  "all",
                  "no_salaries",
                  "restricted",
                  "none"
                ]
              },
              "editProjects": {
                "type": "string",
                "enum": [
                  "all",
                  "specific",
                  "restricted",
                  "none"
                ],
                "deprecated": true,
                "description": "Edit projects permission (deprecated: use manageProjects)"
              },
              "manageProjects": {
                "type": "string",
                "enum": [
                  "all",
                  "specific",
                  "restricted",
                  "none"
                ]
              },
              "editOthers": {
                "type": "string",
                "enum": [
                  "all",
                  "none"
                ],
                "deprecated": true,
                "description": "Edit others permission (deprecated: use managePeople)"
              },
              "managePeople": {
                "type": "string",
                "enum": [
                  "all",
                  "restricted",
                  "none"
                ]
              },
              "manageAccount": {
                "type": "boolean"
              },
              "addAllPeopleToProjects": {
                "type": "boolean"
              },
              "viewPlanner": {
                "type": "boolean"
              }
            }
          },
          "peopleTeams": {
            "description": "Teams this user manages people through when their managePeople permission is 'restricted'. Always returned; empty when they have no team grants.",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                }
              }
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when the object was created."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when the object was last updated."
          }
        }
      }
    }
  },
  "paths": {
    "/users/{userId}": {
      "patch": {
        "operationId": "updateUser",
        "summary": "Update a user",
        "description": "Currently supports updating people team access for restricted people managers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "peopleTeams": {
                    "maxItems": 1000,
                    "uniqueItems": true,
                    "description": "Teams whose members this restricted people manager can manage. An empty array revokes every team grant; omitting the field leaves them untouched. Sending this field, including an empty array, returns 403 when the account does not have the feature.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "properties": {
                        "id": {
                          "minimum": 1,
                          "maximum": 2147483647,
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "integer"
            },
            "in": "path",
            "name": "userId",
            "required": true
          },
          {
            "schema": {
              "default": "1.0.0",
              "enum": [
                "1.0.0"
              ]
            },
            "in": "header",
            "name": "accept-version",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest"
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.runn.io",
      "description": "EU Server"
    },
    {
      "url": "https://api.us.runn.io",
      "description": "US Server"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  }
}
```