removeLabelFromContentUsingQueryParameter method

Future<void> removeLabelFromContentUsingQueryParameter({
  1. required String id,
  2. required String name,
})

Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to Remove label from content 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 does not accept "/" characters for the label name.

Permissions required: Permission to update the content.

Implementation

Future<void> removeLabelFromContentUsingQueryParameter(
    {required String id, required String name}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/content/{id}/label',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      'name': name,
    },
  );
}