@seamapi/http - v1.70.0
    Preparing search index...

    Class SeamHttpSpaces

    Index

    Constructors

    Properties

    client: AxiosInstance
    defaults: Required<SeamHttpRequestOptions>
    ltsVersion: "1.0.0" = seamApiLtsVersion
    ltsVersion: string = seamApiLtsVersion

    Methods

    • Parameters

      • Optionalparameters: { device_ids: string[]; space_id: string }
        • device_ids: string[]

          IDs of the devices that you want to add to the space.

        • space_id: string

          ID of the space to which you want to add devices.

      • options: SpacesAddDevicesOptions = {}

      Returns SpacesAddDevicesRequest

    • Parameters

      • Optionalparameters: {
            acs_entrance_ids?: string[];
            device_ids?: string[];
            name: string;
            space_key?: string;
        }
        • Optionalacs_entrance_ids?: string[]

          IDs of the entrances that you want to add to the new space.

        • Optionaldevice_ids?: string[]

          IDs of the devices that you want to add to the new space.

        • name: string

          Name of the space that you want to create.

        • Optionalspace_key?: string

          Unique key for the space within the workspace.

      • options: SpacesCreateOptions = {}

      Returns SpacesCreateRequest

    • Parameters

      • Optionalparameters: {
            exclude?: (
                | "acs_entrances"
                | "acs_systems"
                | "connected_accounts"
                | "devices"
                | "spaces"
            )[];
            include?: (
                | "acs_entrances"
                | "acs_systems"
                | "connected_accounts"
                | "devices"
                | "spaces"
            )[];
            space_ids?: string[];
            space_keys?: string[];
        }
        • Optionalexclude?: ("acs_entrances" | "acs_systems" | "connected_accounts" | "devices" | "spaces")[]
        • Optionalinclude?: ("acs_entrances" | "acs_systems" | "connected_accounts" | "devices" | "spaces")[]
        • Optionalspace_ids?: string[]

          IDs of the spaces that you want to get along with their related resources.

        • Optionalspace_keys?: string[]

          Keys of the spaces that you want to get along with their related resources.

      • options: SpacesGetRelatedOptions = {}

      Returns SpacesGetRelatedRequest

    • Parameters

      • Optionalparameters: {
            connected_account_id?: string;
            customer_key?: string;
            search?: string;
            space_key?: string;
        }
        • Optionalconnected_account_id?: string

          Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.

        • Optionalcustomer_key?: string

          Customer key for which you want to list spaces.

        • Optionalsearch?: string

          String for which to search. Filters returned spaces to include all records that satisfy a partial match using name.

        • Optionalspace_key?: string

          Filter spaces by space_key.

      • options: SpacesListOptions = {}

      Returns SpacesListRequest

    • Parameters

      • Optionalparameters: {
            acs_entrance_ids?: string[];
            device_ids?: string[];
            name?: string;
            space_id?: string;
            space_key?: string;
        }
        • Optionalacs_entrance_ids?: string[]

          IDs of the entrances that you want to set for the space. If specified, this will replace all existing entrances.

        • Optionaldevice_ids?: string[]

          IDs of the devices that you want to set for the space. If specified, this will replace all existing devices.

        • Optionalname?: string

          Name of the space.

        • Optionalspace_id?: string

          ID of the space that you want to update.

        • Optionalspace_key?: string

          Unique key of the space that you want to update.

      • options: SpacesUpdateOptions = {}

      Returns SpacesUpdateRequest

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>