Skip to main content

Resource

A file, link, or embedded piece of content attached to an accord — or a folder that groups other resources.

type Resource implements Node {
nodeId: ID!
id: String!
title: String
url: String
blob: String
blobType: String
accordId: String
ownerId: String
version: Int!
deletedAt: Datetime
updatedAt: Datetime!
createdAt: Datetime!
workspaceId: String
internal: Boolean
resourceId: String
parentFolderId: String
isPinned: Boolean!
pinnedAt: Datetime
libraryResourceVersionId: String
description: String
fileName: String
previewImageUrl: String
pinnedOrder: Int!
content: String
uploadedPreviewImageUrl: String
ownerWorkspacePlaceholderRoleId: String
allDomains: Boolean!
accord: Accord
ownerAccount: Account
ownerProfile: Profile
parentFolder: Resource
libraryResourceVersion: LibraryResourceVersion
activitiesConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [ActivitiesOrderBy!] = [PRIMARY_KEY_ASC]
condition: ActivityCondition
filter: ActivityFilter
): ActivitiesConnection! @deprecated
activities(
first: Int
offset: Int
orderBy: [ActivitiesOrderBy!]
condition: ActivityCondition
filter: ActivityFilter
): [Activity!]! @deprecated
resourcesByParentFolderIdConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [ResourcesOrderBy!] = [PRIMARY_KEY_ASC]
condition: ResourceCondition
filter: ResourceFilter
): ResourcesConnection!
resourcesByParentFolderId(
first: Int
offset: Int
orderBy: [ResourcesOrderBy!]
condition: ResourceCondition
filter: ResourceFilter
): [Resource!]!
resourceEntitlementsConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [ResourceEntitlementsOrderBy!] = [PRIMARY_KEY_ASC]
condition: ResourceEntitlementCondition
filter: ResourceEntitlementFilter
): ResourceEntitlementsConnection!
resourceEntitlements(
first: Int
offset: Int
orderBy: [ResourceEntitlementsOrderBy!]
condition: ResourceEntitlementCondition
filter: ResourceEntitlementFilter
): [ResourceEntitlement!]!
stepResourcesConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [StepResourcesOrderBy!] = [PRIMARY_KEY_ASC]
condition: StepResourceCondition
filter: StepResourceFilter
): StepResourcesConnection!
stepResources(
first: Int
offset: Int
orderBy: [StepResourcesOrderBy!]
condition: StepResourceCondition
filter: StepResourceFilter
): [StepResource!]!
effectiveOwnerAccountId: String
}

Fields

Resource.nodeId ● ID! non-null scalar

A globally unique identifier. Can be used in various places throughout the system to identify this single value.

Resource.id ● String! non-null scalar

Resource.title ● String scalar

Resource.url ● String scalar

Resource.blob ● String scalar

Inline-stored content for uploaded or embedded resources, as an alternative to a linked url.

Resource.blobType ● String scalar

Discriminator for the resource kind: folder marks the row as a folder, which is the value every folder check in the API and the webapp keys on. The webapp writes only folder or null.

Resource.accordId ● String scalar

Resource.ownerId ● String scalar

Resource.version ● Int! non-null scalar

Resource.deletedAt ● Datetime scalar

Resource.updatedAt ● Datetime! non-null scalar

Resource.createdAt ● Datetime! non-null scalar

Resource.workspaceId ● String scalar

Resource.internal ● Boolean scalar

When true, the resource is visible only to the internal seller side, not the customer.

Resource.resourceId ● String scalar

Lineage pointer to the resource this one was copied from, used to pair a copy with its source when steps are re-copied.

Resource.parentFolderId ● String scalar

When set, the folder resource this one is nested under.

Resource.isPinned ● Boolean! non-null scalar

Whether the resource is pinned to surface prominently on the accord.

Resource.pinnedAt ● Datetime scalar

Resource.libraryResourceVersionId ● String scalar

The library-resource version this resource was instantiated from.

Resource.description ● String scalar

Resource.fileName ● String scalar

Original filename, for uploaded-file resources.

Resource.previewImageUrl ● String scalar

Auto-generated thumbnail/preview image URL.

Resource.pinnedOrder ● Int! non-null scalar

Display order among pinned resources.

Resource.content ● String scalar

Rendered text content, for embedded rich-text resources.

Resource.uploadedPreviewImageUrl ● String scalar

User-supplied override for the preview image.

Resource.ownerWorkspacePlaceholderRoleId ● String scalar

Placeholder role that owns the resource, when ownership is assigned to a role rather than a specific person. Mutually exclusive with owner_id — a check constraint rejects setting both, though leaving both null is allowed.

Resource.allDomains ● Boolean! non-null scalar

Partner scoping for this resource: true opens it to every partner domain, false leaves access to its resource_entitlement domain rows. Scoping — here or on the library resource it was instantiated from — hides it from customers who are not partners; with neither it is visible to every customer. An internal resource cannot be opened to partners; a check constraint rejects setting both.

Resource.accord ● Accord object

Reads a single Accord that is related to this Resource.

Resource.ownerAccount ● Account object

Reads a single Account that is related to this Resource.

Resource.ownerProfile ● Profile object

Reads a single Profile that is related to this Resource.

Resource.parentFolder ● Resource object

Reads a single Resource that is related to this Resource.

Resource.libraryResourceVersion ● LibraryResourceVersion object

Reads a single LibraryResourceVersion that is related to this Resource.

Resource.resourcesByParentFolderIdConnection ● ResourcesConnection! non-null object

Reads and enables pagination through a set of Resource.

Resource.resourcesByParentFolderIdConnection.first ● Int scalar

Only read the first n values of the set.

Resource.resourcesByParentFolderIdConnection.last ● Int scalar

Only read the last n values of the set.

Resource.resourcesByParentFolderIdConnection.offset ● Int scalar

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

Resource.resourcesByParentFolderIdConnection.before ● Cursor scalar

Read all values in the set before (above) this cursor.

Resource.resourcesByParentFolderIdConnection.after ● Cursor scalar

Read all values in the set after (below) this cursor.

Resource.resourcesByParentFolderIdConnection.orderBy ● [ResourcesOrderBy!] list enum

The method to use when ordering Resource.

Resource.resourcesByParentFolderIdConnection.condition ● ResourceCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.resourcesByParentFolderIdConnection.filter ● ResourceFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.resourcesByParentFolderId ● [Resource!]! non-null object

Reads and enables pagination through a set of Resource.

Resource.resourcesByParentFolderId.first ● Int scalar

Only read the first n values of the set.

Resource.resourcesByParentFolderId.offset ● Int scalar

Skip the first n values.

Resource.resourcesByParentFolderId.orderBy ● [ResourcesOrderBy!] list enum

The method to use when ordering Resource.

Resource.resourcesByParentFolderId.condition ● ResourceCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.resourcesByParentFolderId.filter ● ResourceFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.resourceEntitlementsConnection ● ResourceEntitlementsConnection! non-null object

Reads and enables pagination through a set of ResourceEntitlement.

Resource.resourceEntitlementsConnection.first ● Int scalar

Only read the first n values of the set.

Resource.resourceEntitlementsConnection.last ● Int scalar

Only read the last n values of the set.

Resource.resourceEntitlementsConnection.offset ● Int scalar

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

Resource.resourceEntitlementsConnection.before ● Cursor scalar

Read all values in the set before (above) this cursor.

Resource.resourceEntitlementsConnection.after ● Cursor scalar

Read all values in the set after (below) this cursor.

Resource.resourceEntitlementsConnection.orderBy ● [ResourceEntitlementsOrderBy!] list enum

The method to use when ordering ResourceEntitlement.

Resource.resourceEntitlementsConnection.condition ● ResourceEntitlementCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.resourceEntitlementsConnection.filter ● ResourceEntitlementFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.resourceEntitlements ● [ResourceEntitlement!]! non-null object

Reads and enables pagination through a set of ResourceEntitlement.

Resource.resourceEntitlements.first ● Int scalar

Only read the first n values of the set.

Resource.resourceEntitlements.offset ● Int scalar

Skip the first n values.

Resource.resourceEntitlements.orderBy ● [ResourceEntitlementsOrderBy!] list enum

The method to use when ordering ResourceEntitlement.

Resource.resourceEntitlements.condition ● ResourceEntitlementCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.resourceEntitlements.filter ● ResourceEntitlementFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.stepResourcesConnection ● StepResourcesConnection! non-null object

Reads and enables pagination through a set of StepResource.

Resource.stepResourcesConnection.first ● Int scalar

Only read the first n values of the set.

Resource.stepResourcesConnection.last ● Int scalar

Only read the last n values of the set.

Resource.stepResourcesConnection.offset ● Int scalar

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

Resource.stepResourcesConnection.before ● Cursor scalar

Read all values in the set before (above) this cursor.

Resource.stepResourcesConnection.after ● Cursor scalar

Read all values in the set after (below) this cursor.

Resource.stepResourcesConnection.orderBy ● [StepResourcesOrderBy!] list enum

The method to use when ordering StepResource.

Resource.stepResourcesConnection.condition ● StepResourceCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.stepResourcesConnection.filter ● StepResourceFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.stepResources ● [StepResource!]! non-null object

Reads and enables pagination through a set of StepResource.

Resource.stepResources.first ● Int scalar

Only read the first n values of the set.

Resource.stepResources.offset ● Int scalar

Skip the first n values.

Resource.stepResources.orderBy ● [StepResourcesOrderBy!] list enum

The method to use when ordering StepResource.

Resource.stepResources.condition ● StepResourceCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.stepResources.filter ● StepResourceFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.effectiveOwnerAccountId ● String scalar

Show deprecated

Resource.activitiesConnection ● ActivitiesConnection! deprecated non-null object

DEPRECATED

Use GET https://api.inaccord.com/1/analytics/activities instead. Same Bearer API key; cursor-paginated and ordered by updatedAt. It exports the whole workspace and takes no accordId filter, so a per-accord read pages the export and filters on each node accordId. See https://developers.inaccord.com/activity-export. This table is removed once every consumer has migrated.

Reads and enables pagination through a set of Activity.

Resource.activitiesConnection.first ● Int scalar

Only read the first n values of the set.

Resource.activitiesConnection.last ● Int scalar

Only read the last n values of the set.

Resource.activitiesConnection.offset ● Int scalar

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

Resource.activitiesConnection.before ● Cursor scalar

Read all values in the set before (above) this cursor.

Resource.activitiesConnection.after ● Cursor scalar

Read all values in the set after (below) this cursor.

Resource.activitiesConnection.orderBy ● [ActivitiesOrderBy!] list enum

The method to use when ordering Activity.

Resource.activitiesConnection.condition ● ActivityCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.activitiesConnection.filter ● ActivityFilter input

A filter to be used in determining which values should be returned by the collection.

Resource.activities ● [Activity!]! deprecated non-null object

DEPRECATED

Use GET https://api.inaccord.com/1/analytics/activities instead. Same Bearer API key; cursor-paginated and ordered by updatedAt. It exports the whole workspace and takes no accordId filter, so a per-accord read pages the export and filters on each node accordId. See https://developers.inaccord.com/activity-export. This table is removed once every consumer has migrated.

Reads and enables pagination through a set of Activity.

Resource.activities.first ● Int scalar

Only read the first n values of the set.

Resource.activities.offset ● Int scalar

Skip the first n values.

Resource.activities.orderBy ● [ActivitiesOrderBy!] list enum

The method to use when ordering Activity.

Resource.activities.condition ● ActivityCondition input

A condition to be used in determining which values should be returned by the collection.

Resource.activities.filter ● ActivityFilter input

A filter to be used in determining which values should be returned by the collection.

Interfaces

Node interface

An object with a globally unique ID.

Returned By

getAllAccordLibraryResources query ● resource query ● resourceByNodeId query ● resources query

Member Of

Accord object ● Account object ● Activity object ● CreateResourceEntitlementPayload object ● CreateResourcePayload object ● CreateStepResourcePayload object ● DeleteResourceEntitlementPayload object ● DeleteResourcePayload object ● DeleteStepResourcePayload object ● LibraryResourceVersion object ● LinkLibraryResourcesPayload object ● Profile object ● RecoverResourcePayload object ● RecoverStepResourcePayload object ● Resource object ● ResourceEntitlement object ● ResourcesConnection object ● ResourcesEdge object ● StepResource object ● UpdateResourceEntitlementPayload object ● UpdateResourcePayload object ● UpdateStepResourcePayload object