---
updatedAt: 2026-08-06T09:24:03.000Z
agentTools:
  projectIndex: https://developers.alcmeon.com/llms.txt
---

# Update

This endpoint makes it possible to:

  - Reset the list of roles associated with an account. 
  - Reset the list of teams associated with an account. 
  - Deactivate or Activate an account


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.alcmeon.com/",
      "description": "Production api server"
    }
  ],
  "info": {
    "title": "User Provisionning",
    "version": "1.0"
  },
  "x-readme": {
    "explorer-enabled": false
  },
  "components": {
    "securitySchemes": {
      "basic_auth": {
        "description": "Basic authentication using your environment Instance ID as username and Application Secret as password.\n",
        "type": "http",
        "scheme": "basic"
      },
      "bearer_token": {
        "description": "OAuth 2.0 Bearer token authentication.  Obtain a token by calling the /v1/oauth2/token endpoint with your credentials. The token is valid for one hour.\n",
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "AnyValue": {
        "description": "Can be any value - string, number, boolean, array or object."
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "description": "details about what error happened",
            "type": "object",
            "properties": {
              "reason": {
                "description": "A text constant that describes the reason for the error",
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/AnyValue"
              },
              "error_message_translation_key": {
                "type": "string"
              },
              "error_message_place_holders": {
                "type": "object"
              }
            }
          }
        }
      },
      "RateLimitResponseError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Rate limit reached"
          },
          "details": {
            "type": "string",
            "description": "A string showing the time when the rate limit will be reset. Example: {'rate_limited_until': '2024-01-22T13:05:41Z'}\n"
          }
        }
      }
    }
  },
  "security": [
    {
      "basic_auth": []
    },
    {
      "bearer_token": []
    }
  ],
  "paths": {
    "/accounts/{account_id}": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Update",
        "description": "This endpoint makes it possible to:\n\n  - Reset the list of roles associated with an account. \n  - Reset the list of teams associated with an account. \n  - Deactivate or Activate an account\n",
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "schema": {
              "type": "integer"
            },
            "required": true,
            "description": "Numeric ID of the account to update"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "roles": {
                    "description": "The list of role ids we want to assign to a user account. Setting an empty list of roles will remove all permissions from the user.\n",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "teams": {
                    "description": "The list of team ids we want to assign to a user account. Setting an empty list of teams will remove all teams from the user.\n",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "is_active": {
                    "description": "Set to ``true`` to enable a user account. ``false`` to disable this user account.\n\nDisabled accounts are not able to login anymore, regardless of what the SSO might say about the status of the user account.\n",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returned upon succes"
          },
          "400": {
            "description": "If the account_id or one of the input role id is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached. Default limit is set to 15 requests per minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitResponseError"
                }
              }
            }
          }
        }
      }
    }
  }
}
```