• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Update team member

PUT /v2/team-members/{team_member_id}

Updates a single TeamMember object.

The TeamMember object is returned on successful updates. Learn about Troubleshooting the Team API.


Permissions
EMPLOYEES_WRITE
Guide
Update a team member
Try in API Explorer
Name Description
team_member_id
string

Required

The ID of the team member to update.

Name Description
team_member
TeamMember

The data used to update the TeamMember object.

Response Fields

Name Description
team_member
TeamMember

The successfully updated TeamMember object.

errors
Error [ ]

The errors that occurred during the request.

Examples

You are viewing an old version of the API
PUT /v2/team-members/{team_member_id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
  • Node.js
curl https://connect.squareup.com/v2/team-members/1yJlHapkseYnNPETIU1B \
  -X PUT \
  -H 'Square-Version: 2021-05-13' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "team_member": {
      "reference_id": "reference_id_1",
      "status": "ACTIVE",
      "given_name": "Joe",
      "family_name": "Doe",
      "email_address": "joe_doe@gmail.com",
      "phone_number": "+14159283333",
      "assigned_locations": {
        "location_ids": [
          "YSGH2WBKG94QZ",
          "GA2Y9HSJ8KRYT"
        ],
        "assignment_type": "EXPLICIT_LOCATIONS"
      }
    }
  }'
Response JSON
{
  "team_member": {
    "id": "1yJlHapkseYnNPETIU1B",
    "reference_id": "reference_id_1",
    "is_owner": false,
    "status": "ACTIVE",
    "given_name": "Joe",
    "family_name": "Doe",
    "email_address": "joe_doe@gmail.com",
    "phone_number": "+14159283333",
    "created_at": "2020-06-11T22:55:45.867Z",
    "assigned_locations": {
      "assignment_type": "EXPLICIT_LOCATIONS",
      "location_ids": [
        "GA2Y9HSJ8KRYT",
        "YSGH2WBKG94QZ"
      ]
    }
  }
}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?