Hierarchy

  • CommonHttpService
    • RedactionsService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns RedactionsService

Methods

  • Redacts sensitive content in a Confluence blog post by replacing specified text ranges with redaction markers. Each redaction in the response includes a unique UUID for restoration (except code block redactions). The response metadata items maintain the same order as the input redaction pointers, and completely overlapping redactions are merged into a single redaction with one UUID.

    Note: This endpoint requires Atlassian Guard Premium.

    Parameters

    • params: {
          id: number;
          requestBody: {
              body?: {
                  redactions?: Redaction[];
              } & {
                  [key: string]: unknown;
              };
              cleanHistory: boolean;
              createdAt: string;
              title?: {
                  redactions?: Redaction[];
              } & {
                  [key: string]: unknown;
              };
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the blog post to redact content from.

      • requestBody: {
            body?: {
                redactions?: Redaction[];
            } & {
                [key: string]: unknown;
            };
            cleanHistory: boolean;
            createdAt: string;
            title?: {
                redactions?: Redaction[];
            } & {
                [key: string]: unknown;
            };
        } & {
            [key: string]: unknown;
        }

    Returns Promise<RedactionResponse>

    Redaction Accepted. The response contains details about the redactions that were applied.

    POST /blogposts/{id}/redact @scopes-current write:page:confluence

  • Redacts sensitive content in a Confluence page by replacing specified text ranges with redaction markers. Each redaction in the response includes a unique UUID for restoration (except code block redactions). The response metadata items maintain the same order as the input redaction pointers, and completely overlapping redactions are merged into a single redaction with one UUID.

    Note: This endpoint requires Atlassian Guard Premium.

    Parameters

    • params: {
          id: number;
          requestBody: {
              body?: {
                  redactions?: Redaction[];
              } & {
                  [key: string]: unknown;
              };
              cleanHistory: boolean;
              createdAt: string;
              title?: {
                  redactions?: Redaction[];
              } & {
                  [key: string]: unknown;
              };
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the page to redact content from.

      • requestBody: {
            body?: {
                redactions?: Redaction[];
            } & {
                [key: string]: unknown;
            };
            cleanHistory: boolean;
            createdAt: string;
            title?: {
                redactions?: Redaction[];
            } & {
                [key: string]: unknown;
            };
        } & {
            [key: string]: unknown;
        }

    Returns Promise<RedactionResponse>

    Redaction Accepted. The response contains details about the redactions that were applied.

    POST /pages/{id}/redact @scopes-current write:page:confluence

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

    Returns void