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

GraphQLRepositoriescloudObjectTemplate

entities.cloudObjectTemplate

Read cloud object template records with the cloudObjectTemplate repository, and change them with the cloud object template mutations. Same records as the REST CloudObjectTemplates entity.

Queries

Fields of entities { cloudObjectTemplate { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
CloudObjectTemplateEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[CloudObjectTemplateEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: CloudObjectTemplateFilterInput, orderBy: [CloudObjectTemplateOrderByInput!], includeDeleted: Boolean, includeOwned: Boolean)
Returns the files that match the filter, paged with limit and offset.
[CloudObjectTemplateEntity!]!
QUERYgetByCriteria(filter: CloudObjectTemplateFilterInput, orderBy: [CloudObjectTemplateOrderByInput!], includeDeleted: Boolean, includeOwned: Boolean, before: String, after: String, first: Int, last: Int)
Returns the files that match the filter as a cursor-paginated connection.
CloudObjectTemplateEntityConnection
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!

Mutations

KindMutationDoesReturns
MUTATIONcreateCloudObjectTemplate(input: CreateCloudObjectTemplateInput!, validationLevel: [ValidationLevel!])Create one recordCreateCloudObjectTemplatePayload
MUTATIONupdateCloudObjectTemplate(input: UpdateCloudObjectTemplateInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateCloudObjectTemplatePayload
MUTATIONbulkUpdateCloudObjectTemplate(input: [CreateOrUpdateCloudObjectTemplateInput!]!, deleteInput: [DeleteCloudObjectTemplateInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateCloudObjectTemplatePayload
MUTATIONdeleteCloudObjectTemplate(input: DeleteCloudObjectTemplateInput!)Soft-deleteDeleteCloudObjectTemplatePayload

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.

CloudObjectTemplateEntity object 23 fields: isDeleteProtected, id, isDeleted, …

Document template, such as a Word or Excel file with placeholders, used to generate documents filled with record data.

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.
sizeInt!Size of the object in bytes.
statusCloudObjectTemplateStatusEnumWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameEntityNameEnum!Entity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
typeCloudObjectTypeEnum!Where the template file is stored: S3File for a file uploaded to Coevera storage (the default) or GoogleDriveFile for a Google Drive document. 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.
templateEntityApiNameStringAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
CloudObjectTemplateEntityConnection object pageInfo: PageInfo!, edges: [CloudObjectTemplateEntityEdge]!, totalCount: Int

Paginated list of CloudObjectTemplate records.

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

A Relay edge containing a CloudObjectTemplateEntity and its cursor.

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

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

Input fieldTypeDescription
OR[CloudObjectTemplateFilterInput!]Matches records that meet at least one of the listed filters.
AND[CloudObjectTemplateFilterInput!]Matches records that meet all of the listed filters.
NOTCloudObjectTemplateFilterInputMatches 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.
statusCloudObjectTemplateStatusEnumFilterInputWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameEntityNameEnumEntity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
typeCloudObjectTypeEnumFilterInputWhere the template file is stored: S3File for a file uploaded to Coevera storage (the default) or GoogleDriveFile for a Google Drive document. 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.
templateEntityApiNameStringAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
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.
CloudObjectTemplateOrderByInput input Asc or Desc per field

Sorting of CloudObjectTemplate 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.
statusOrderByEnumWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameOrderByEnumEntity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
urlOrderByEnumURL of the object. If URL scheme is not defined "http://" is automatically prepended to supplied URL.
revisionOrderByEnumRevision when entity was lastly changed.
templateEntityApiNameOrderByEnumAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
CloudObjectTemplateStatusEnumFilterInput input eq: [CloudObjectTemplateStatusEnum!], NOT: CloudObjectTemplateStatusEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[CloudObjectTemplateStatusEnum!]Matches any of the listed values.
NOTCloudObjectTemplateStatusEnumFilterInputMatches values that do not meet this condition.
CreateCloudObjectTemplateInput input 16 fields: clientMutationId, modified, created, …

Field values of a new CloudObjectTemplate 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).
statusCloudObjectTemplateStatusEnumWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameEntityNameEnum!Entity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
typeCloudObjectTypeEnum!Where the template file is stored: S3File for a file uploaded to Coevera storage (the default) or GoogleDriveFile for a Google Drive document. 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.
templateEntityApiNameStringAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
CreateOrUpdateCloudObjectTemplateInput input 17 fields: clientMutationId, id, modified, …

Field values of a CloudObjectTemplate 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).
statusCloudObjectTemplateStatusEnumWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameEntityNameEnumEntity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
typeCloudObjectTypeEnumWhere the template file is stored: S3File for a file uploaded to Coevera storage (the default) or GoogleDriveFile for a Google Drive document. 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.
templateEntityApiNameStringAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
DeleteCloudObjectTemplateInput input clientMutationId: String, id: ID!

Id of the CloudObjectTemplate 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.
UpdateCloudObjectTemplateInput input 15 fields: clientMutationId, id, modified, …

Id of a CloudObjectTemplate 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).
statusCloudObjectTemplateStatusEnumWhether the document template is active and offered for generating documents, or inactive and kept for later use. Defaults to Active.
templateEntityNameEntityNameEnumEntity type the template renders (e.g. Account, Opportunity, Quote). For custom entities, the value is "CustomEntity" and the API name is exposed via templateEntityApiName.
uploadSourceUploadSourceEnumEditor the uploaded image is embedded in, such as an email template or rich-text content. Empty for files that are not embedded images.
revisionIntRevision when entity was lastly changed.
contentBase64Data content of the object.
templateEntityApiNameStringAPI name of the custom entity the template renders. Set only when templateEntityName is "CustomEntity"; otherwise empty.
BulkUpdateCloudObjectTemplatePayload object result: BulkUpdateResults!

Result of the bulkUpdateCloudObjectTemplate mutation.

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

Result of the createCloudObjectTemplate mutation.

FieldTypeDescription
cloudObjectTemplateCloudObjectTemplateEntityThe 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).
DeleteCloudObjectTemplatePayload object cloudObjectTemplate: CloudObjectTemplateEntity, clientMutationId: String

Result of the deleteCloudObjectTemplate mutation.

FieldTypeDescription
cloudObjectTemplateCloudObjectTemplateEntityThe 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).
UpdateCloudObjectTemplatePayload object cloudObjectTemplate: CloudObjectTemplateEntity, clientMutationId: String

Result of the updateCloudObjectTemplate mutation.

FieldTypeDescription
cloudObjectTemplateCloudObjectTemplateEntityThe 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).
CloudObjectTemplateStatusEnum enum Active, Inactive

Whether a document template is available for use.

ValueDescription
ActiveTemplate is available for generating documents.
InactiveTemplate is kept but not offered for generating documents.