{
  "args": {
    "team_id": {
      "desc": "The ID of the workspace or organization.",
      "example": "T12345678",
      "required": true
    },
    "user_id": {
      "desc": "The ID of the user to designate as an admin.",
      "example": "W12345678",
      "required": true,
      "type": "string"
    }
  },
  "desc": "Set an existing regular user or owner to be a workspace or org admin.",
  "errors": {
    "cannot_modify_primary_owner": "The primary owner cannot be modified.",
    "failed_to_set_admin_on_workspaces": "Failed to set the user as an admin on all workspaces.",
    "failed_to_set_user_to_admin": "Designating this user as an admin failed.",
    "feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
    "invalid_permissions": "This method is only accessible by org owners and admins.",
    "invalid_role_for_user": "The user cannot be made into an admin.",
    "not_an_admin": "This method can only be accessed by org owners and admins.",
    "team_not_found": "`team_id` was not found.",
    "user_not_found": "The user was not found."
  },
  "rate_limit": {
    "label": "Tier 2: 20+ per minute",
    "url": "https://docs.slack.dev/apis/web-api/rate-limits"
  },
  "scopes": {
    "user": [
      {
        "name": "admin.users:write",
        "url": "https://docs.slack.dev/reference/scopes/admin.users.write"
      }
    ]
  }
}

