{
  "args": {
    "team_id": {
      "desc": "The ID of the workspace or organization.",
      "example": "T12345678",
      "required": true
    },
    "user_id": {
      "desc": "ID of the user to promote to owner.",
      "example": "W12345678",
      "required": true
    }
  },
  "desc": "Set an existing regular user or admin to be a workspace or org owner.",
  "errors": {
    "cannot_modify_primary_owner": "The primary owner cannot be modified.",
    "failed_to_set_owner_on_workspaces": "Failed to set the user as an owner on all workspaces.",
    "failed_to_set_user_to_owner": "The change to the user's role failed.",
    "feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
    "invalid_role_for_user": "The user cannot be made into an owner.",
    "not_an_admin": "This method can only be accessed by org owners and admins.",
    "not_an_owner": "This method can only be accessed by org owners. The app's installing user must retain org owner status for this method to function.",
    "not_supported": "This is not a supported action.",
    "team_not_found": "`team_id` was not found.",
    "user_must_be_in_workspace": "This user must be a member of at least one workspace.",
    "user_not_found": "The requested 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"
      }
    ]
  }
}

