Constructors

Properties

client: Client

Methods

  • Type Parameters

    Parameters

    Returns Promise<void>

    Deprecated

    Will be removed in the next major version. Use getRelationship instead.

  • Type Parameters

    Parameters

    Returns Promise<T>

    Deprecated

    Will be removed in the next major version. Use getRelationship instead.

  • Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by default, but you can use this method to create any type of relationship between two entities.

    For example, the following method creates a 'sibling' relationship between two pieces of content: GET https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Type Parameters

    Parameters

    Returns Promise<void>

  • Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by default, but you can use this method to create any type of relationship between two entities.

    For example, the following method creates a 'sibling' relationship between two pieces of content: GET https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Type Parameters

    Parameters

    Returns Promise<T>

  • Type Parameters

    • T = void

    Parameters

    Returns Promise<void>

    Deprecated

    Will be removed in the next major version. Use deleteRelationship instead.

  • Type Parameters

    • T = void

    Parameters

    • parameters: Delete
    • Optional callback: undefined

    Returns Promise<T>

    Deprecated

    Will be removed in the next major version. Use deleteRelationship instead.

  • Deletes a relationship between two entities (user, space, content).

    Permissions required: Permission to access the Confluence site ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite relationships. A space administrator can delete favourite relationships for any user.

    Type Parameters

    • T = void

    Parameters

    Returns Promise<void>

  • Deletes a relationship between two entities (user, space, content).

    Permissions required: Permission to access the Confluence site ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite relationships. A space administrator can delete favourite relationships for any user.

    Type Parameters

    • T = void

    Parameters

    Returns Promise<T>

  • Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.

    For example, the following method finds all users that have a 'collaborator' relationship to a piece of content with an ID of '1234': GET https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user Note, 'collaborator' is an example custom relationship type.

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<void>

  • Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.

    For example, the following method finds all users that have a 'collaborator' relationship to a piece of content with an ID of '1234': GET https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user Note, 'collaborator' is an example custom relationship type.

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<T>

  • Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.

    For example, the following method finds all content that the current user has an 'ignore' relationship with: GET https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content Note, 'ignore' is an example custom relationship type.

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<void>

  • Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.

    For example, the following method finds all content that the current user has an 'ignore' relationship with: GET https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content Note, 'ignore' is an example custom relationship type.

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<T>

  • Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships are one way.

    For example, you can use this method to find whether the current user has selected a particular page as a favorite (i.e. 'save for later'): GET https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<void>

  • Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships are one way.

    For example, you can use this method to find whether the current user has selected a particular page as a favorite (i.e. 'save for later'): GET https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123

    Permissions required: Permission to view both the target entity and source entity.

    Type Parameters

    Parameters

    Returns Promise<T>

Generated using TypeDoc v0.25.12