Class ConfluenceRestClientContentLabelsConsumerApi

java.lang.Object
io.github.primelib.confluence4j.rest.v1.client.ConfluenceRestClientContentLabelsConsumerApi

@Generated("io.github.primelib.primecodegen") public class ConfluenceRestClientContentLabelsConsumerApi extends Object
ConfluenceRestClientContentLabelsConsumerApi
  • Constructor Details

  • Method Details

    • PostContentByIDLabelV1

      public LabelArray PostContentByIDLabelV1(Consumer<PostContentByIDLabelV1OperationSpec> spec)
      PostContentByIDLabelV1 Add labels to content Adds labels to a piece of content. Does not modify the existing labels. Notes: - Labels can also be added when creating content ([Create content](#api-content-post)). - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing labels and replace them with the labels in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
      Parameters:
      spec - a consumer that creates the payload for this operation. Supports the following properties:
      • id: The ID of the content that will have labels added to it.
      • payload: The labels to add to the content.
    • DeleteContentByIDLabelV1

      public void DeleteContentByIDLabelV1(Consumer<DeleteContentByIDLabelV1OperationSpec> spec)
      DeleteContentByIDLabelV1 Remove label from content using query parameter Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove label from content](#api-content-id-label-label-delete) except that the label name is specified via a query parameter. Use this method if the label name has "/" characters, as [Remove label from content using query parameter](#api-content-id-label-delete) does not accept "/" characters for the label name. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
      Parameters:
      spec - a consumer that creates the payload for this operation. Supports the following properties:
      • id: The ID of the content that the label will be removed from.
      • name: The name of the label to be removed.
    • DeleteContentByIDLabelByLabelV1

      public void DeleteContentByIDLabelByLabelV1(Consumer<DeleteContentByIDLabelByLabelV1OperationSpec> spec)
      DeleteContentByIDLabelByLabelV1 Remove label from content Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove label from content using query parameter](#api-content-id-label-delete) except that the label name is specified via a path parameter. Use this method if the label name does not have "/" characters, as the path parameter does not accept "/" characters for security reasons. Otherwise, use [Remove label from content using query parameter](#api-content-id-label-delete). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
      Parameters:
      spec - a consumer that creates the payload for this operation. Supports the following properties:
      • id: The ID of the content that the label will be removed from.
      • label: The name of the label to be removed.