Confluence.js - Cloud and Server API library
    Preparing search index...

    Class Space

    Index

    Constructors

    Methods

    • Creates a new space that is only visible to the creator. This method is the same as the Create space method with permissions set to the current user only. Note, currently you cannot set space labels when creating a space.

      Permissions required: 'Create Space(s)' global permission.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Creates a new space that is only visible to the creator. This method is the same as the Create space method with permissions set to the current user only. Note, currently you cannot set space labels when creating a space.

      Permissions required: 'Create Space(s)' global permission.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this method has returned. Clients should poll the status link that is returned in the response until the task completes.

      Permissions required: 'Admin' permission for the space.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this method has returned. Clients should poll the status link that is returned in the response until the task completes.

      Permissions required: 'Admin' permission for the space.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns a space. This includes information like the name, description, and permissions, but not the content in the space.

      Permissions required: 'View' permission for the space.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns a space. This includes information like the name, description, and permissions, but not the content in the space.

      Permissions required: 'View' permission for the space.

      Type Parameters

      Parameters

      • parameters: GetSpace
      • Optionalcallback: undefined

      Returns Promise<T>

    • Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key.

      Permissions required: Permission to access the Confluence site ('Can use' global permission). Note, the returned list will only contain spaces that the current user has permission to view.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key.

      Permissions required: Permission to access the Confluence site ('Can use' global permission). Note, the returned list will only contain spaces that the current user has permission to view.

      Type Parameters

      Parameters

      • Optionalparameters: GetSpaces
      • Optionalcallback: undefined

      Returns Promise<T>

    • Updates the name, description, or homepage of a space.

      • For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead.
      • Currently you cannot set space labels when updating a space.

      Permissions required: 'Admin' permission for the space.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Updates the name, description, or homepage of a space.

      • For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead.
      • Currently you cannot set space labels when updating a space.

      Permissions required: 'Admin' permission for the space.

      Type Parameters

      Parameters

      Returns Promise<T>