Mutations
Navixy Repository API is a work in progress. This documentation is published for preview purposes only and doesn't reflect a stable release. Structure, field names, and behaviors are subject to change.
roleAssign
Assigns a role to an actor.
roleAssign(
input: RoleAssignInput!
): ActorRolePayloadArguments
input
RoleAssignInput!
The input fields for assigning the role.
Input types:
RoleAssignInput
Input for assigning a role to an actor.
actorId
ID!
The actor ID (user or integration).
roleId
ID!
The role ID to assign.
expireDate
DateTime
The expiration date. Null means the role is permanent.
Output types:
ActorRole (entity)
An assignment of a role to an actor.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
assignedAt
DateTime!
The date and time when the role was assigned.
expireDate
DateTime
The date and time when the role expires. Null means the role is permanent.
roleRevoke
Revokes a role from an actor.
Arguments
input
RoleRevokeInput!
The input fields for revoking the role.
Input types:
RoleRevokeInput
Input for revoking a role from an actor.
actorRoleId
ID!
The actor role assignment ID to revoke.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
permissionGrant
Grants a permission to a role.
Arguments
input
PermissionGrantInput!
The input fields for granting the permission.
Input types:
PermissionGrantInput
Input for granting a permission to a role.
roleId
ID!
The role ID.
permissionScopeId
ID!
The permission scope ID.
targetEntityId
ID
The specific entity ID. Null means all entities of the type.
Output types:
RolePermission (entity)
A permission granted to a role.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
targetEntityId
ID
The specific entity ID this permission applies to. Null means all entities of the type.
grantedAt
DateTime!
The date and time when the permission was granted.
permissionRevoke
Revokes a permission from a role.
Arguments
input
PermissionRevokeInput!
The input fields for revoking the permission.
Input types:
PermissionRevokeInput
Input for revoking a permission from a role.
permissionId
ID!
The role permission ID to revoke.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
userScopeSet
Sets a user scope restriction.
Arguments
input
UserScopeSetInput!
The input fields for setting the user scope.
Input types:
UserScopeSetInput
Input for setting a user scope restriction.
actorId
ID!
The actor ID to restrict.
permissionScopeId
ID!
The permission scope ID.
targetEntityId
ID!
The specific entity ID to allow access to.
Output types:
UserScope (entity)
A whitelist filter that restricts an actor's access to specific entities. When present, effective permissions = role permissions ∩ user scope.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
targetEntityId
ID!
The specific entity the actor can access.
userScopeRemove
Removes a user scope restriction.
Arguments
input
UserScopeRemoveInput!
The input fields for removing the user scope.
Input types:
UserScopeRemoveInput
Input for removing a user scope restriction.
userScopeId
ID!
The user scope ID to remove.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
roleCreate
Creates a new role.
Arguments
input
RoleCreateInput!
The input fields for creating the role.
Input types:
RoleCreateInput
Input for creating a role.
organizationId
ID!
The organization that will own the item.
code
Code!
The machine-readable code.
title
String!
The display name.
order
Int
The display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
Role (entity)
A role that can be assigned to actors to grant permissions.
Implements: CatalogItem, Node, Versioned, Titled
id
ID!
A globally unique identifier.
version
Int!
The version number for optimistic locking.
title
String!
The human-readable display name. Can be localized.
code
Code!
A machine-readable code, unique within the catalog scope.
order
Int!
The display order within the same level or category.
roleUpdate
Updates a role.
Arguments
input
RoleUpdateInput!
The input fields for updating the role.
Input types:
RoleUpdateInput
Input for updating a role.
id
ID!
The item ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
order
Int
The new display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
Role (entity)
A role that can be assigned to actors to grant permissions.
Implements: CatalogItem, Node, Versioned, Titled
id
ID!
A globally unique identifier.
version
Int!
The version number for optimistic locking.
title
String!
The human-readable display name. Can be localized.
code
Code!
A machine-readable code, unique within the catalog scope.
order
Int!
The display order within the same level or category.
roleDelete
Deletes a role.
Arguments
input
CatalogItemDeleteInput!
The input fields for deleting the role.
Input types:
CatalogItemDeleteInput
Input for deleting a catalog item.
id
ID!
The catalog item ID to delete.
version
Int!
The current version for optimistic locking.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
Last updated
Was this helpful?