---
updatedAt: 2025-06-11T23:23:08.000Z
agentTools:
  projectIndex: https://developers.workramp.com/llms.txt
---

# Update User

Updates a user's attributes

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "json-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://app.workramp.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "ACCESS_TOKEN"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/users/{user_id}": {
      "post": {
        "summary": "Update User",
        "description": "Updates a user's attributes",
        "operationId": "update-user-1",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "ID of user to update",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "[Optional]"
                  },
                  "name": {
                    "type": "string",
                    "description": "[Optional]"
                  },
                  "isAdmin": {
                    "type": "boolean",
                    "description": "[Optional]"
                  },
                  "isDeleted": {
                    "type": "boolean",
                    "description": "[Optional]"
                  },
                  "managerEmails": {
                    "type": "array",
                    "description": "[Optional] Array of existing manager emails.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "overwriteManagerEmails": {
                    "type": "boolean",
                    "description": "[Optional] If set to true, user's managers will be exactly what `managerEmails` is set to. Having an empty array for `mangerEmails` while this is true will delete all managers of the user."
                  },
                  "custom_attributes": {
                    "type": "object",
                    "description": "[Optional] An object that represents all custom attributes the user should have. This will OVERWRITE the existing custom attributes and be set exactly as the object that is passed in.",
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "API key for this custom attribute"
                      },
                      "value": {
                        "type": "string",
                        "description": "Value to set this custom attribute to"
                      }
                    }
                  },
                  "update_custom_attributes": {
                    "type": "object",
                    "description": "[Optional] Create/update custom attributes for this user without deleting the existing values first. Use this INSTEAD OF custom_attributes!",
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "API key for this custom attribute"
                      },
                      "value": {
                        "type": "string",
                        "description": "Value to set this custom attribute to"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": 5065,\n  \"name\": \"Jane Doe\",\n  \"email\": \"ted+apitester1234@workramp.com\",\n  \"isAdmin\": false,\n  \"isDeleted\": false,\n  \"isPermanentlyDeleted\": false,\n  \"createdAt\": 1488144236206.5808,\n  \"updatedAt\": 1488144236206.5808,\n  \"mentors\": [\n    {\n      \"id\": 7,\n      \"name\": \"John Doe\",\n      \"email\": \"jdoe@workramp.com\",\n      \"isAdmin\": false,\n      \"isDeleted\": false,\n      \"isPermanentlyDeleted\": false,\n      \"createdAt\": 1564692110394,\n      \"updatedAt\": 1589355546681\n    },\n    {\n      \"id\": 4,\n      \"name\": \"John Smith\",\n      \"email\": \"jsmith@workramp.com\",\n      \"isAdmin\": false,\n      \"isDeleted\": false,\n      \"isPermanentlyDeleted\": false,\n      \"createdAt\": 1564692048130,\n      \"updatedAt\": 1589359593434\n    }\n  ],\n  \"mentorsViaGroups\": []\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 5065,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "Jane Doe"
                    },
                    "email": {
                      "type": "string",
                      "example": "ted+apitester1234@workramp.com"
                    },
                    "isAdmin": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "isPermanentlyDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "createdAt": {
                      "type": "number",
                      "example": 1488144236206.5808,
                      "default": 0
                    },
                    "updatedAt": {
                      "type": "number",
                      "example": 1488144236206.5808,
                      "default": 0
                    },
                    "mentors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 7,
                            "default": 0
                          },
                          "name": {
                            "type": "string",
                            "example": "John Doe"
                          },
                          "email": {
                            "type": "string",
                            "example": "jdoe@workramp.com"
                          },
                          "isAdmin": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "isDeleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "isPermanentlyDeleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "createdAt": {
                            "type": "integer",
                            "example": 1564692110394,
                            "default": 0
                          },
                          "updatedAt": {
                            "type": "integer",
                            "example": 1589355546681,
                            "default": 0
                          }
                        }
                      }
                    },
                    "mentorsViaGroups": {
                      "type": "array"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```