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•
Contact CompanyContact!non-null The company contact for whom this role is assigned.
- Anchor to companyLocationcompany•
Location CompanyLocation!non-null The company location to which the role is assigned.
- Anchor to createdAtcreated•
At DateTime!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•
At DateTime!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•
Contact Id ID!required The ID of the contact to assign a role to.
- Anchor to companyContactRoleIdcompany•
Contact Role Id ID!required The ID of the role to assign to a contact.
- Anchor to companyLocationIdcompany•
Location Id ID!required The ID of the location to assign a role to a contact.
Arguments
- Anchor to companyContactRoleAssignmentcompany•
Contact Role Assignment The company contact role assignment.
- Anchor to userErrorsuser•
Errors [BusinessCustomer 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•
Contact Id ID!required The contact whose roles are being assigned.
- Anchor to rolesToAssignroles•
To Assign [CompanyContact Role Assign!]!required The new roles to assign.
Arguments
- Anchor to roleAssignmentsrole•
Assignments A list of newly created assignments of company contacts to a company location.
- Anchor to userErrorsuser•
Errors [BusinessCustomer 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•
Location Id ID!required The location whose roles are being assigned.
- Anchor to rolesToAssignroles•
To Assign [CompanyLocation Role Assign!]!required The roles to assign.
Arguments
- Anchor to roleAssignmentsrole•
Assignments A list of newly created assignments of company contacts to a company location.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields