Hierarchy

  • CommonHttpService
    • ContentPropertiesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns ContentPropertiesService

Methods

  • Retrieves all Content Properties tied to a specified attachment.

    Permissions required: Permission to view the attachment.

    Parameters

    • params: {
          attachmentId: string;
          cursor?: string;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • attachmentId: string

        The ID of the attachment for which content properties should be returned.

      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /attachments/{attachment-id}/properties @scopes-current read:attachment:confluence

  • Retrieves all Content Properties tied to a specified blog post.

    Permissions required: Permission to view the blog post.

    Parameters

    • params: {
          blogpostId: number;
          cursor?: string;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • blogpostId: number

        The ID of the blog post for which content properties should be returned.

      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /blogposts/{blogpost-id}/properties @scopes-current read:page:confluence

  • Retrieves Content Properties attached to a specified comment.

    Permissions required: Permission to view the comment.

    Parameters

    • params: {
          commentId: number;
          cursor?: string;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • commentId: number

        The ID of the comment for which content properties should be returned.

      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /comments/{comment-id}/properties @scopes-current read:comment:confluence

  • Retrieves Content Properties tied to a specified custom content.

    Permissions required: Permission to view the custom content.

    Parameters

    • params: {
          cursor?: string;
          customContentId: number;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • customContentId: number

        The ID of the custom content for which content properties should be returned.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /custom-content/{custom-content-id}/properties @scopes-current read:custom-content:confluence

  • Retrieves Content Properties tied to a specified database.

    Permissions required: Permission to view the database.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the database for which content properties should be returned.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /databases/{id}/properties @scopes-current read:database:confluence

  • Retrieves Content Properties tied to a specified folder.

    Permissions required: Permission to view the folder.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the folder for which content properties should be returned.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

  • Retrieves Content Properties tied to a specified page.

    Permissions required: Permission to view the page.

    Parameters

    • params: {
          cursor?: string;
          key?: string;
          limit?: number;
          pageId: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • pageId: number

        The ID of the page for which content properties should be returned.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

  • Retrieves Content Properties tied to a specified Smart Link in the content tree.

    Permissions required: Permission to view the Smart Link in the content tree.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the Smart Link in the content tree for which content properties should be returned.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of Smart Links per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

  • Retrieves Content Properties tied to a specified whiteboard.

    Permissions required: Permission to view the whiteboard.

    Parameters

    • params: {
          cursor?: string;
          id: number;
          key?: string;
          limit?: number;
          sort?: ContentPropertySortOrder;
      }
      • Optionalcursor?: string

        Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

      • id: number

        The ID of the whiteboard for which content properties should be returned.

      • Optionalkey?: string

        Filters the response to return a specific content property with matching key (case sensitive).

      • Optionallimit?: number

        Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

      • Optionalsort?: ContentPropertySortOrder

        Used to sort the result by a particular field.

    Returns Promise<{
        _links?: MultiEntityLinks;
        results?: ContentProperty[];
    } & {
        [key: string]: unknown;
    }>

    Returned if the requested content properties are successfully retrieved.

    GET /whiteboards/{id}/properties @scopes-current read:whiteboard:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void