removeLabelFromContent method

Future<void> removeLabelFromContent({
  1. required String id,
  2. required String label,
})

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 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.

Permissions required: Permission to update the content.

Implementation

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