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

GraphQLRepositorieswebresource

entities.webresource

Read webresource records with the webresource repository, and change them with the webresource mutations. Same records as the REST Webresources entity.

Queries

Fields of entities { webresource { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
WebresourceEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[WebresourceEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[WebresourceEntity!]!
QUERYgetByCriteria(filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
WebresourceEntityConnection
QUERYgetPublished(limit: Int, offset: Int, filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean)
Returns the published records that match the filter, paged with limit and offset.
[WebresourceEntity!]!
QUERYgetDrafts(filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!])
Returns the records that match the filter, with pending unpublished changes applied where a draft exists.
[WebresourceEntity!]!
QUERYgetDraftById(entityId: ID!)
Returns the record with the given id, with its pending unpublished changes applied when a draft exists.
WebresourceEntity!

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.

WebresourceEntity object 14 fields: isDeleteProtected, hasDraft, id, …

Web page embedded in the app for records of an entity, with its URL filled from the record's field values.

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.
hasDraftBooleanTrue when the record has unpublished draft changes, including pending translation changes, that can be published.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
displayParamInt!Bit flag controlling how the web resource is displayed (e.g. full-screen, in a tab).
entityString!Name of the entity the web resource is attached to (e.g. "Account", "Lead").
nameString!Name of the entity and its default text representation.
requestMethodRequestMethodEnumHTTP method (Get or Post) used to open the url of the web resource.
urlStringURL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values.
isPublishedBooleanTrue when the web resource is published; false while it exists only as an unpublished draft.
revisionIntRevision when entity was lastly changed.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
WebresourceEntityConnection object pageInfo: PageInfo!, edges: [WebresourceEntityEdge]!, totalCount: Int

Paginated list of Webresource records.

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

A Relay edge containing a WebresourceEntity and its cursor.

FieldTypeDescription
nodeWebresourceEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
DisplayParamEnumFilterInput input eq: [DisplayParamEnum!], NOT: DisplayParamEnumFilterInput

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

Input fieldTypeDescription
eq[DisplayParamEnum!]Matches any of the listed values.
NOTDisplayParamEnumFilterInputMatches values that do not meet this condition.
RequestMethodEnumFilterInput input eq: [RequestMethodEnum!], NOT: RequestMethodEnumFilterInput

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

Input fieldTypeDescription
eq[RequestMethodEnum!]Matches any of the listed values.
NOTRequestMethodEnumFilterInputMatches values that do not meet this condition.
WebresourceFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

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

Input fieldTypeDescription
OR[WebresourceFilterInput!]Matches records that meet at least one of the listed filters.
AND[WebresourceFilterInput!]Matches records that meet all of the listed filters.
NOTWebresourceFilterInputMatches 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.
displayParamDisplayParamEnumFilterInputBit flag controlling how the web resource is displayed (e.g. full-screen, in a tab).
entityEntityFilterStringFieldName of the entity the web resource is attached to (e.g. "Account", "Lead").
nameEntityFilterStringFieldName of the entity and its default text representation.
requestMethodRequestMethodEnumFilterInputHTTP method (Get or Post) used to open the url of the web resource.
urlEntityFilterStringFieldURL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values.
isPublishedBooleanTrue when the web resource is published; false while it exists only as an unpublished draft.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
WebresourceOrderByInput input Asc or Desc per field

Sorting of Webresource 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.
nameOrderByEnumName of the entity and its default text representation.
requestMethodOrderByEnumHTTP method (Get or Post) used to open the url of the web resource.
urlOrderByEnumURL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values.
isPublishedOrderByEnumTrue when the web resource is published; false while it exists only as an unpublished draft.
revisionOrderByEnumRevision when entity was lastly changed.
DisplayParamEnum enum FullScreen, DoNotShowIfEmpty

Display flags of a web resource embedded in a record's detail; values can be combined.

ValueDescription
FullScreenThe web resource is displayed in full-screen mode.
DoNotShowIfEmptyThe web resource is hidden when all record values inserted into its URL are empty.
RequestMethodEnum enum Get, Post

HTTP method used to open a web resource's URL.

ValueDescription
GetThe URL is opened with a GET request.
PostThe URL is opened with a POST request.