v1

latestOpenAPI 3.0.22026-07-24154101.1 MB
External User Mappings

Update External User Mapping

Deprecated, see PUT /api/v2/company/{company_id}/external_user_mappings/{identifier}

put/v2/company/{company_id}/location/{location_id}/external_user_mappings/{identifier}

Path parameters

company_idinteger required

Company ID

location_idinteger required

Location ID

identifierstring required

User ID. Accepted values are 7Shifts user id or external user id. Use prefix ext: for external id

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Request body

user_idinteger

User ID in 7Shifts

external_user_idstring

User ID in External System

Response

OK

object'external_user_mapping' required

Example response

{
  "data": {
    "created": "2021-01-01T00:00:00.000Z",
    "modified": "2021-01-01T00:00:00.000Z"
  }
}