companyContactAssignRole
mutation
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Assign a role to a B2B customer for a specified company location.
Arguments
input param
Return
Error message
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Assigns roles to company contacts for a company location.
Code
mutation MyMutation {
companyContactAssignRole(input: {
companyContactId: "gid://shopline/CompanyContact/******789",
companyLocationId: "gid://shopline/CompanyLocation/************9046926",
companyContactRoleId: "gid://shopline/CompanyContactRole/***********20701"
}) {
userErrors {
field
message
}
}
}
Response
{
"data": {
"companyContactAssignRole": {
"userErrors": []
}
}
}
Was this article helpful to you?