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

GraphQLRepositoriesfieldPermission

entities.fieldPermission

Read field permission records with the fieldPermission repository, and change them with the field permission mutations. Same records as the REST FieldPermissions entity.

Queries

Fields of entities { fieldPermission { … } }.

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

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.

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

Access a user role has to a custom field: full access, read-only or hidden.

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.
fieldFieldEntityCustom field this permission applies to.
masterRightMasterRightEntityUser role granted (or restricted) on the field.
fieldIdID!Id of the custom field.
masterRightIdID!Id of the user role.
permissionLevelAccessLevelFieldEnumAccess the user role gets to the custom field: full access (view and edit), read-only, or hidden.
isPublishedBooleanTrue when the permission override 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.
FieldPermissionEntityConnection object pageInfo: PageInfo!, edges: [FieldPermissionEntityEdge]!, totalCount: Int

Paginated list of FieldPermission records.

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

A Relay edge containing a FieldPermissionEntity and its cursor.

FieldTypeDescription
nodeFieldPermissionEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
AccessLevelFieldEnumFilterInput input eq: [AccessLevelFieldEnum!], NOT: AccessLevelFieldEnumFilterInput

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

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

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

Input fieldTypeDescription
OR[FieldPermissionFilterInput!]Matches records that meet at least one of the listed filters.
AND[FieldPermissionFilterInput!]Matches records that meet all of the listed filters.
NOTFieldPermissionFilterInputMatches 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.
fieldIdEntityFilterStringFieldId of the custom field.
masterRightIdEntityFilterStringFieldId of the user role.
permissionLevelAccessLevelFieldEnumFilterInputAccess the user role gets to the custom field: full access (view and edit), read-only, or hidden.
isPublishedBooleanTrue when the permission override is published; false while it exists only as an unpublished draft.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
entityNameStringName of an entity, for example Account. Matches field permissions for fields of that entity.
fieldFieldFilterInputCustom field this permission applies to. Matches records where a related record meets these conditions.
masterRightMasterRightFilterInputUser role granted (or restricted) on the field. Matches records where a related record meets these conditions.
FieldPermissionOrderByInput input Asc or Desc per field

Sorting of FieldPermission 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.
field[FieldOrderByNestedInput!]Custom field this permission applies to. Sorts by fields of the related record, listed in order of priority.
masterRight[MasterRightOrderByNestedInput!]User role granted (or restricted) on the field. Sorts by fields of the related record, listed in order of priority.
fieldIdOrderByEnumId of the custom field.
masterRightIdOrderByEnumId of the user role.
permissionLevelOrderByEnumAccess the user role gets to the custom field: full access (view and edit), read-only, or hidden.
isPublishedOrderByEnumTrue when the permission override is published; false while it exists only as an unpublished draft.
revisionOrderByEnumRevision when entity was lastly changed.
AccessLevelFieldEnum enum FullAccess, Readonly, NoAccess

Level of access to a single field.

ValueDescription
FullAccessThe field can be viewed and edited.
ReadonlyThe field can be viewed but not edited.
NoAccessThe field is hidden.