younifyd
Menu

companyLocationRemoveStaffMembers

Deletes one or more existing mappings between a staff member at a shop and a company location.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the companyLocationRemoveStaffMembers action (under Company).
  3. Fill in the fields below, then reference the result from later steps as {{companylocationremovestaffmembers.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation CompanyLocationRemoveStaffMembers($companyLocationStaffMemberAssignmentIds: [ID!]!) {
  companyLocationRemoveStaffMembers(
    companyLocationStaffMemberAssignmentIds: $companyLocationStaffMemberAssignmentIds
  ) {
    deletedCompanyLocationStaffMemberAssignmentIds
    userErrors {
      code
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

companyLocationStaffMemberAssignmentIdsarray<string>required

The list of IDs of the company location staff member assignment to delete.

json
{
  "companyLocationStaffMemberAssignmentIds": [
    "string"
  ]
}

Response

Read the result with {{companylocationremovestaffmembers.response.data.data.companyLocationRemoveStaffMembers}}. If the API returns errors, the step fails and they are at {{companylocationremovestaffmembers.response.data.errors}}.

deletedCompanyLocationStaffMemberAssignmentIdsarray<string>
userErrorsarray<object>
codeobject
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

companyLocationRemoveStaffMembers — Shopify — Documentation