trashCustomField method

Future trashCustomField(
  1. String id
)

Moves a custom field to trash. See Edit or delete a custom field for more information on trashing and deleting custom fields.

Permissions required: Administer Jira global permission.

Implementation

Future<dynamic> trashCustomField(String id) async {
  return await _client.send(
    'post',
    'rest/api/3/field/{id}/trash',
    pathParameters: {
      'id': id,
    },
  );
}