Skip to main content

addCompanyManager

Assign a user as an account manager for a specific company.

Creates a management relationship between a user and a company, granting the user elevated permissions to manage the company's data and operations.

Possible errors:

  • USER_NOT_FOUND_ERROR: User with the specified ID does not exist
  • COMPANY_NOT_FOUND_ERROR: Company with the specified ID does not exist
  • USER_UPDATE_ERROR: Failed to establish the management relationship

AUTH: Role=[user.OWNER,user.EDITOR]

addCompanyManager(
userId: Int!
companyId: Int!
): String!

Arguments

addCompanyManager.userId ● Int! non-null scalar

Unique identifier of the user to assign as account manager.

Must be a valid user ID representing an existing user who will gain management permissions for the specified company.

addCompanyManager.companyId ● Int! non-null scalar

Unique identifier of the company to be managed.

Must be a valid company ID representing an existing company that will be managed by the specified user.

Type

String scalar

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.