getAttachment method

Future<AttachmentMetadata> getAttachment(
  1. String id
)

Returns the metadata for an attachment. Note that the attachment itself is not returned.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<AttachmentMetadata> getAttachment(String id) async {
  return AttachmentMetadata.fromJson(await _client.send(
    'get',
    'rest/api/3/attachment/{id}',
    pathParameters: {
      'id': id,
    },
  ));
}