Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriescloudObject

entities.cloudObject

Read cloud object records with the cloudObject repository, and change them with the cloud object mutations. Same records as the REST CloudObjects entity.

Queries

Fields of entities { cloudObject { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CloudObjectEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CloudObjectEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CloudObjectFilterInput, orderBy: [CloudObjectOrderByInput!], includeDeleted: Boolean, includeOwned: Boolean)
Returns the files that match the filter, paged with limit and offset.
[CloudObjectEntity!]!
QUERYgetByCriteria(filter: CloudObjectFilterInput, orderBy: [CloudObjectOrderByInput!], includeDeleted: Boolean, includeOwned: Boolean, before: String, after: String, first: Int, last: Int)
Returns the files that match the filter as a cursor-paginated connection.
CloudObjectEntityConnection
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!
QUERYgetSignedUrls(urls: [String!]!, expireIn: Int)
Returns SignedUrl with public downloadable url link and their id.
[SignedUrl!]!
QUERYgetDocumentPreviewUrl(entityId: UUID!)
Returns a URL of a PDF preview of an Office document (Word, Excel or PowerPoint file). When the preview cannot be produced, the URL is null and the error explains why.
DocumentPreviewUrl!
QUERYgetBySession(includedIds: [UUID!]!, excludedIds: [UUID!]!, sessionId: String!, before: String, after: String, first: Int, last: Int)
Returns a page of records selected in a list or report: all records of the given result plus the explicitly included ids, minus the excluded ids.
CloudObjectEntityConnection
QUERYgetByIdsForProcess(processId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that are attached to the process or to any email template. Ids of other files are ignored.
[CloudObjectEntity!]!
QUERYgetByIdsForEmailSequence(emailSequenceId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that are attached to the email sequence. Ids of files not attached to it are ignored.
[CloudObjectEntity!]!
QUERYgetByIdsForReportSchedule(reportScheduleId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that are attached to the report schedule. Ids of files not attached to it are ignored.
[CloudObjectEntity!]!
QUERYgetByIdsForApprovalProcess(approvalProcessId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that are attached to the approval process. Ids of files not attached to it are ignored.
[CloudObjectEntity!]!
QUERYgetByIdsForFieldMapping(fieldMappingId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that are attached to the field mapping. Ids of files not attached to it are ignored.
[CloudObjectEntity!]!
QUERYgetByIdsForOnlineFormType(onlineFormTypeId: UUID!, entityIds: [UUID!]!)
Returns those of the given files that were uploaded with a submission of the online form. Ids of other files are ignored.
[CloudObjectEntity!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateCloudObject(input: CreateCloudObjectInput!, validationLevel: [ValidationLevel!])Create one recordCreateCloudObjectPayload
MUTATIONupdateCloudObject(input: UpdateCloudObjectInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateCloudObjectPayload
MUTATIONbulkUpdateCloudObject(input: [CreateOrUpdateCloudObjectInput!]!, deleteInput: [DeleteCloudObjectInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateCloudObjectPayload
MUTATIONdeleteCloudObject(input: DeleteCloudObjectInput!)Soft-deleteDeleteCloudObjectPayload
MUTATIONcreateImageCloudObject(input: CreateImageInput!, validationLevel: [ValidationLevel!])Uploads an image and stores it as a new file in the space. GraphQL onlyCreateImageCloudObjectPayload
MUTATIONcloudObjectMakePublic(input: CloudObjectMakePublicInput!)Makes the file publicly accessible and returns its public URL. Anyone with the URL can download the file without signing in. GraphQL onlyCloudObjectMakePublicPayload
MUTATIONmoveCloudObjects(input: MoveCloudObjectsInput!)Move to another step GraphQL onlyMoveCloudObjectsPayload
MUTATIONdeleteCloudObjects(input: DeleteCloudObjectsInput!)Soft-deleteDeleteCloudObjectsPayload

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

CloudObjectEntity object 24 fields: isDeleteProtected, id, isDeleted, …

File stored in the space, such as a document, image or recording, that can be attached to records.

FieldTypeDescription
isDeleteProtectedBoolean!True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
applicationApplicationEntityApplication that produced the object (e.g. Online Forms).
companyCloudObjectFolderCloudObjectFolderEntityCompany-level folder that contains the object, when stored in the company document tree.
creatorClientEntityUser who uploaded the object.
applicationIdIDId of the producing application.
companyCloudObjectFolderIdIDId of the company folder, or empty when the object is not stored in the company tree.
creatorIdIDId of the uploading user.
filenameString!File name (with extension) used when downloading the object.
isPublicBooleanWhen true, the object can be served via a public URL (see publicUrl).
mimeTypeStringMime-type of the cloud object Is detected from content.
paramsJSONStringAdditional metadata about the object (e.g. image dimensions, audio duration), as a JSON object.
sizeInt!Size of the object in bytes.
typeCloudObjectTypeEnum!Where the file is stored and how its content is obtained: a file in Coevera storage, a file linked from a cloud drive such as Google Drive or OneDrive, or an external URL. Set on create only.
uploadSourceUploadSourceEnumEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
urlStringURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionIntRevision when entity was lastly changed.
dimensionsCloudObjectDimensionsWidth and height of the image in pixels; empty for files that are not images.
durationFloatDuration of the audio recording in seconds; empty for other files.
publicUrlStringPublicly accessible link to the file; empty unless the file is marked as public.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
CloudObjectEntityConnection object pageInfo: PageInfo!, edges: [CloudObjectEntityEdge]!, totalCount: Int

Paginated list of CloudObject records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[CloudObjectEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
CloudObjectEntityEdge object node: CloudObjectEntity, cursor: String!

A Relay edge containing a CloudObjectEntity and its cursor.

FieldTypeDescription
nodeCloudObjectEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
CloudObjectFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

Filter conditions for CloudObject records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

Input fieldTypeDescription
OR[CloudObjectFilterInput!]Matches records that meet at least one of the listed filters.
AND[CloudObjectFilterInput!]Matches records that meet all of the listed filters.
NOTCloudObjectFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
applicationIdEntityFilterStringFieldId of the producing application.
companyCloudObjectFolderIdEntityFilterStringFieldId of the company folder, or empty when the object is not stored in the company tree.
creatorIdEntityFilterStringFieldId of the uploading user.
filenameEntityFilterStringFieldFile name (with extension) used when downloading the object.
isPublicBooleanWhen true, the object can be served via a public URL (see publicUrl).
mimeTypeEntityFilterStringFieldMime-type of the cloud object Is detected from content.
sizeEntityFilterNumberFieldSize of the object in bytes.
typeCloudObjectTypeEnumFilterInputWhere the file is stored and how its content is obtained: a file in Coevera storage, a file linked from a cloud drive such as Google Drive or OneDrive, or an external URL. Set on create only.
uploadSourceUploadSourceEnumFilterInputEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
urlEntityFilterStringFieldURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
applicationApplicationFilterInputApplication that produced the object (e.g. Online Forms). Matches records where a related record meets these conditions.
companyCloudObjectFolderCloudObjectFolderFilterInputCompany-level folder that contains the object, when stored in the company document tree. Matches records where a related record meets these conditions.
creatorClientFilterInputUser who uploaded the object. Matches records where a related record meets these conditions.
CloudObjectOrderByInput input Asc or Desc per field

Sorting of CloudObject records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
application[ApplicationOrderByNestedInput!]Application that produced the object (e.g. Online Forms). Sorts by fields of the related record, listed in order of priority.
companyCloudObjectFolder[CloudObjectFolderOrderByNestedInput!]Company-level folder that contains the object, when stored in the company document tree. Sorts by fields of the related record, listed in order of priority.
creator[ClientOrderByNestedInput!]User who uploaded the object. Sorts by fields of the related record, listed in order of priority.
applicationIdOrderByEnumId of the producing application.
companyCloudObjectFolderIdOrderByEnumId of the company folder, or empty when the object is not stored in the company tree.
creatorIdOrderByEnumId of the uploading user.
filenameOrderByEnumFile name (with extension) used when downloading the object.
isPublicOrderByEnumWhen true, the object can be served via a public URL (see publicUrl).
mimeTypeOrderByEnumMime-type of the cloud object Is detected from content.
sizeOrderByEnumSize of the object in bytes.
urlOrderByEnumURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionOrderByEnumRevision when entity was lastly changed.
CloudObjectMakePublicInput input entityId: UUID!, clientMutationId: String

Parameters of the cloudObjectMakePublic mutation.

Input fieldTypeDescription
entityIdUUID!Id of the file to make public.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
CreateCloudObjectInput input 15 fields: clientMutationId, modified, created, …

Field values of a new CloudObject record.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
applicationIdIDId of the producing application.
companyCloudObjectFolderIdIDId of the company folder, or empty when the object is not stored in the company tree.
creatorIdIDId of the uploading user.
filenameString!File name (with extension) used when downloading the object.
isPublicBooleanWhen true, the object can be served via a public URL (see publicUrl).
mimeTypeStringMime-type of the cloud object Is detected from content.
paramsJSONStringAdditional metadata about the object (e.g. image dimensions, audio duration), as a JSON object.
typeCloudObjectTypeEnum!Where the file is stored and how its content is obtained: a file in Coevera storage, a file linked from a cloud drive such as Google Drive or OneDrive, or an external URL. Set on create only.
uploadSourceUploadSourceEnumEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
urlStringURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionIntRevision when entity was lastly changed.
contentBase64Data content of the object.
CreateImageInput input filename: String!, content: String!, uploadSource: UploadSourceEnum

Parameters of the createImageCloudObject mutation.

Input fieldTypeDescription
filenameString!File name of the image, including its extension.
contentString!Image content, base64-encoded.
uploadSourceUploadSourceEnumEditor the image is embedded in (e-mail template or rich-text editor). Leave empty for an image that is not embedded.
CreateOrUpdateCloudObjectInput input 16 fields: clientMutationId, id, modified, …

Field values of a CloudObject record to create, or to update when its id is set.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idIDUnique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
applicationIdIDId of the producing application.
companyCloudObjectFolderIdIDId of the company folder, or empty when the object is not stored in the company tree.
creatorIdIDId of the uploading user.
filenameStringFile name (with extension) used when downloading the object.
isPublicBooleanWhen true, the object can be served via a public URL (see publicUrl).
mimeTypeStringMime-type of the cloud object Is detected from content.
paramsJSONStringAdditional metadata about the object (e.g. image dimensions, audio duration), as a JSON object.
typeCloudObjectTypeEnumWhere the file is stored and how its content is obtained: a file in Coevera storage, a file linked from a cloud drive such as Google Drive or OneDrive, or an external URL. Set on create only.
uploadSourceUploadSourceEnumEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
urlStringURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionIntRevision when entity was lastly changed.
contentBase64Data content of the object.
DeleteCloudObjectInput input clientMutationId: String, id: ID!

Id of the CloudObject record to delete.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
DeleteCloudObjectsInput input bulkFilter: BulkOperationInput!, clientMutationId: String

Parameters of the deleteCloudObjects mutation.

Input fieldTypeDescription
bulkFilterBulkOperationInput!Files and folders to delete.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
MoveCloudObjectsInput input 5 fields: bulkFilter, folderId, entityId, …

Parameters of the moveCloudObjects mutation.

Input fieldTypeDescription
bulkFilterBulkOperationInput!Files and folders to move.
folderIdUUIDTarget folder. Required for company documents; for record documents, leave empty to move the files to the record's root.
entityIdUUIDId of the record whose documents are moved. Set together with entityType.
entityTypeBaseEntityTypeEnumType of the record whose documents are moved: Account, Contact, Lead, Opportunity, Task, Appointment, Project, Quote or CustomEntity. Set together with entityId.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateCloudObjectInput input 13 fields: clientMutationId, id, modified, …

Id of a CloudObject record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
applicationIdIDId of the producing application.
companyCloudObjectFolderIdIDId of the company folder, or empty when the object is not stored in the company tree.
creatorIdIDId of the uploading user.
filenameStringFile name (with extension) used when downloading the object.
isPublicBooleanWhen true, the object can be served via a public URL (see publicUrl).
paramsJSONStringAdditional metadata about the object (e.g. image dimensions, audio duration), as a JSON object.
uploadSourceUploadSourceEnumEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
urlStringURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionIntRevision when entity was lastly changed.
BulkUpdateCloudObjectPayload object result: BulkUpdateResults!

Result of the bulkUpdateCloudObject mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
CloudObjectMakePublicPayload object result: String!, clientMutationId: String

Result of the cloudObjectMakePublic mutation.

FieldTypeDescription
resultString!Public URL of the file.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
CreateCloudObjectPayload object cloudObject: CloudObjectEntity, clientMutationId: String

Result of the createCloudObject mutation.

FieldTypeDescription
cloudObjectCloudObjectEntityThe created record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
CreateImageCloudObjectPayload object cloudObject: CloudObjectEntity

Result of the createImageCloudObject mutation.

FieldTypeDescription
cloudObjectCloudObjectEntityThe created file.
DeleteCloudObjectPayload object cloudObject: CloudObjectEntity, clientMutationId: String

Result of the deleteCloudObject mutation.

FieldTypeDescription
cloudObjectCloudObjectEntityThe deleted record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
DeleteCloudObjectsPayload object clientMutationId: String

Result of the deleteCloudObjects mutation.

FieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
MoveCloudObjectsPayload object result: Boolean!, clientMutationId: String

Result of the moveCloudObjects mutation.

FieldTypeDescription
resultBoolean!True when all given files were moved.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateCloudObjectPayload object cloudObject: CloudObjectEntity, clientMutationId: String

Result of the updateCloudObject mutation.

FieldTypeDescription
cloudObjectCloudObjectEntityThe updated record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
CloudObjectDimensions object width: Int!, height: Int!

Width and height of an image file, in pixels.

FieldTypeDescription
widthInt!Width of the image in pixels.
heightInt!Height of the image in pixels.