Anchor to companyLocationAssignStaffMemberscompany
companyLocationAssignStaffMembers
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Creates one or more mappings between a staff member at a shop and a company location.
Anchor to Arguments
Arguments
- Anchor to companyLocationIdcompany•
Location Id ID!required The ID of the company location to assign the staff member to.
- Anchor to staffMemberIdsstaff•
Member Ids [ID!]!required The list of IDs of the staff members to assign.
Was this section helpful?
Anchor to CompanyLocationAssignStaffMembersPayload returnsCompanyLocationAssignStaffMembersPayload returns
- Anchor to companyLocationStaffMemberAssignmentscompany•
Location Staff Member Assignments The list of created staff member assignments.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation companyLocationAssignStaffMembers($companyLocationId: ID!, $staffMemberIds: [ID!]!) {
companyLocationAssignStaffMembers(companyLocationId: $companyLocationId, staffMemberIds: $staffMemberIds) {
companyLocationStaffMemberAssignments {
# CompanyLocationStaffMemberAssignment fields
}
userErrors {
field
message
}
}
}
Input
{
"companyLocationId": "gid://shopify/<objectName>/10079785100",
"staffMemberIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"companyLocationId": "gid://shopify/<objectName>/10079785100",
"staffMemberIds": [
"gid://shopify/<objectName>/10079785100"
]
}