Logo of FrontifyDeveloper PortalArrow to the right
GraphQL Reference
Mutation

createAttachment():CreateAttachment

Create a new Attachment. Attachments require a valid parent ID string. This mutation currently only supports attachments for parents of Asset type. Requires basic:write scope to be accessible and Asset permission level EDIT.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of CreateAttachmentInput
parentId: ID!

Parent Id.

fileId: ID!

File Id. Signed Id returned in uploadFile.

name: String!

Attachment name or display name.

externalId: ID

Attachment external Id.

Fields of CreateAttachment

The newly created Attachment processing job response.