Skip to main content

updateUserRelationship

Requires permission users:user:update.

Updates a reporting relationship in your organization. Needs users:user:update.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateUserRelationship($id: String!, $input: UpdateUserRelationshipInput!) {
updateUserRelationship(id: $id, input: $input) {
id
createdAt
isActive
notes
organizationId
relatedUserId
relatedUser {
id
postalCode
name
firstName
lastName
status
}
}
}

Variables:

{
"id": "string",
"input": {}
}

Response:

{
"data": {
"updateUserRelationship": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"isActive": true,
"notes": "string",
"organizationId": "string",
"relatedUserId": "string",
"relatedUser": {
"id": "id",
"postalCode": "string",
"name": "string",
"firstName": "string",
"lastName": "string",
"status": "ACTIVE"
}
}
}
}
updateUserRelationship(
id: String!
input: UpdateUserRelationshipInput!
): UserRelationship!

Arguments​

updateUserRelationship.id ● String! non-null scalar​

The ID of the user relationship.

updateUserRelationship.input ● UpdateUserRelationshipInput! non-null input​

The fields to change.

Type​

UserRelationship object​

A relationship between two users, such as who reports to whom.