Skip to main content

Class: MediaAttachmentService

Defined in: service/MediaAttachmentService.ts:49

Backwards-compatible class form. New code should call mediaAttachmentService(client).

Constructors​

Constructor​

new MediaAttachmentService(client): MediaAttachmentService

Defined in: service/MediaAttachmentService.ts:51

Parameters​

client​

GraphQLClient

Returns​

MediaAttachmentService

Methods​

createMediaAttachment()​

createMediaAttachment(input): Promise<MediaAttachment>

Defined in: service/MediaAttachmentService.ts:56

Creates a new media attachment

Parameters​

input​

MediaAttachmentInput

Media attachment creation input

Returns​

Promise<MediaAttachment>


deleteMediaAttachment()​

deleteMediaAttachment(id): Promise<DeleteMediaAttachmentResponse>

Defined in: service/MediaAttachmentService.ts:66

Deletes a media attachment

Parameters​

id​

number

MediaAttachment ID to delete

Returns​

Promise<DeleteMediaAttachmentResponse>


updateMediaAttachment()​

updateMediaAttachment(variables): Promise<MediaAttachment>

Defined in: service/MediaAttachmentService.ts:61

Updates an existing media attachment

Parameters​

variables​

MediaAttachmentUpdateVariables

Media attachment update input

Returns​

Promise<MediaAttachment>