getAttachmentOperations method

Future<PermittedOperationsResponse> getAttachmentOperations(
  1. int id
)

Returns the permitted operations on specific attachment.

Permissions required: Permission to view the parent content of the attachment and its corresponding space.

Implementation

Future<PermittedOperationsResponse> getAttachmentOperations(int id) async {
  return PermittedOperationsResponse.fromJson(await _client.send(
    'get',
    'attachments/{id}/operations',
    pathParameters: {
      'id': '$id',
    },
  ));
}