Company Contact Role Assignment
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
The CompanyContactRoleAssignment describes the company and location associated to a company contact's role.
Anchor to FieldsFields
- Anchor to companycompany•Company!non-null
The company this role assignment belongs to.
- Anchor to companyContactcompany•Company
Contact Contact!non-null The company contact for whom this role is assigned.
- Anchor to companyLocationcompany•Company
Location Location!non-null The company location to which the role is assigned.
- Anchor to createdAtcreated•Date
At Time!non-null The date and time (ISO 8601 format) when the assignment record was created.
- •ID!non-null
A globally-unique ID.
- Anchor to rolerole•Company
Contact Role!non-null The role that's assigned to the company contact.
- Anchor to updatedAtupdated•Date
At Time!non-null The date and time (ISO 8601 format) when the assignment record was last updated.
Anchor to MutationsMutations
- •mutation
Assigns a role to a contact for a location.
- Anchor to companyContactIdcompany•ID!required
Contact Id The ID of the contact to assign a role to.
- Anchor to companyContactRoleIdcompany•ID!required
Contact Role Id The ID of the role to assign to a contact.
- Anchor to companyLocationIdcompany•ID!required
Location Id The ID of the location to assign a role to a contact.
Arguments
- Anchor to companyContactRoleAssignmentcompany•Company
Contact Role Assignment Contact Role Assignment The company contact role assignment.
- Anchor to userErrorsuser•[Business
Errors Customer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Assigns roles on a company contact.
- Anchor to companyContactIdcompany•ID!required
Contact Id The contact whose roles are being assigned.
- Anchor to rolesToAssignroles•[Company
To Assign Contact Role Assign!]!required The new roles to assign.
Arguments
- Anchor to roleAssignmentsrole•[Company
Assignments Contact Role Assignment!] A list of newly created assignments of company contacts to a company location.
- Anchor to userErrorsuser•[Business
Errors Customer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Assigns roles on a company location.
- Anchor to companyLocationIdcompany•ID!required
Location Id The location whose roles are being assigned.
- Anchor to rolesToAssignroles•[Company
To Assign Location Role Assign!]!required The roles to assign.
Arguments
- Anchor to roleAssignmentsrole•[Company
Assignments Contact Role Assignment!] A list of newly created assignments of company contacts to a company location.
- Anchor to userErrorsuser•[Business
Errors Customer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields