Skip to main content

CreateLibraryResourceInput

No description

input CreateLibraryResourceInput {
libraryName: String!
defaultTitle: String!
description: String
url: String
fileName: String
internal: Boolean
isFolder: Boolean
approvedAt: Datetime
previewImageUrl: String
uploadedPreviewImageUrl: String
originUrl: String
content: String
ownerWorkspaceAccountId: String
expirationDate: Date
}

Fields​

CreateLibraryResourceInput.libraryName ● String! non-null scalar​

Name of the library the resource belongs to.

CreateLibraryResourceInput.defaultTitle ● String! non-null scalar​

Default display title for the resource.

CreateLibraryResourceInput.description ● String scalar​

Optional description of the resource.

CreateLibraryResourceInput.url ● String scalar​

External URL the resource points to, for link/file resources.

CreateLibraryResourceInput.fileName ● String scalar​

Original file name, for uploaded file resources.

CreateLibraryResourceInput.internal ● Boolean scalar​

When true, the resource is internal-only and not shown to customers.

CreateLibraryResourceInput.isFolder ● Boolean scalar​

When true, create a folder rather than a leaf resource.

CreateLibraryResourceInput.approvedAt ● Datetime scalar​

Timestamp marking the resource as approved; null leaves it unapproved.

CreateLibraryResourceInput.previewImageUrl ● String scalar​

URL of a generated preview image for the resource.

CreateLibraryResourceInput.uploadedPreviewImageUrl ● String scalar​

URL of a preview image explicitly uploaded by a user.

CreateLibraryResourceInput.originUrl ● String scalar​

URL the resource was originally imported/scraped from.

CreateLibraryResourceInput.content ● String scalar​

Rich-text (Lexical) content for content-page resources.

CreateLibraryResourceInput.ownerWorkspaceAccountId ● String scalar​

Workspace account to record as the resource's owner.

CreateLibraryResourceInput.expirationDate ● Date scalar​

Date after which the resource is considered expired.

Member Of​

createLibraryResource mutation