Hierarchy

  • CategoriesService

Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Create a category

    Throws

    ApiError

    Parameters

    • options: {
          requestBody: {
              groupId?: string;
              name: string;
          };
          serverId: string;
      }
      • requestBody: {
            groupId?: string;
            name: string;
        }
        • Optional groupId?: string

          The ID of the group. If not provided, the category will be created in the "Server home" group from serverId.

        • name: string

          Name of the category

      • serverId: string

    Returns CancelablePromise<{
        category: CategoryPayload;
    }>

    any Success

  • Update a category

    Throws

    ApiError

    Parameters

    • options: {
          categoryId: number;
          requestBody: {
              name?: string;
              priority?: number;
          };
          serverId: string;
      }
      • categoryId: number
      • requestBody: {
            name?: string;
            priority?: number;
        }
        • Optional name?: string

          Name of the category

        • Optional priority?: number

          The priority of the category will determine its position relative to other categories in the group. The higher the value, the higher up it will be displayed in the UI. Returned values can be null, in which case sorting will be done by createdAt in descending order. Due to legacy issues, sending a null value is not possible

      • serverId: string

    Returns CancelablePromise<{
        category: CategoryPayload;
    }>

    any Success

Generated using TypeDoc