Update a User

Update the properties of a specified ACS user

Updates any of the following properties of a specified ACS user:

  • full_name

  • email_address

  • phone_number

  • access_schedule

/acs/users/update

POSThttps://connect.getseam.com/acs/users/update
Authorization
Body
access_schedulenullable object
acs_user_id*string (uuid)
full_namestring
phone_numberstring
email_addressstring (email)
hid_acs_system_idstring (uuid)
Response

OK

Body
ok*boolean
Request
const response = await fetch('https://connect.getseam.com/acs/users/update', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer API Key",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "acs_user_id": "123e4567-e89b-12d3-a456-426614174000"
    }),
});
const data = await response.json();
Response
{
  "ok": false
}

Request

Specify the desired ACS user by including the corresponding acs_user_id in the request body. In addition, in the request body, include the properties that you want to update, along with the desired replacement values.

Request Body Parameters

ParameterTypeDescription

acs_user_id

String (UUID) Required

ID of the desired ACS user.

full_name

String Optional

Replacement full name for the ACS user.

email_address

String Optional

Replacement email address for the ACS user.

phone_number

String Optional

Replacement phone number for the ACS user in E.164 format (for example, +15555550100).

access_schedule

Object Optional

Replacement starts_at and ends_at dates/times for the ACS user's access. If you specify an access_schedule, you must include both starts_at and ends_at. ends_at must be a time in the future and after starts_at. Only applicable to Salto KS access control systems.

Sample Request

seam.acs.users.update(
  acs_user_id="33333333-3333-3333-3333-333333333333",
  full_name="Jack Doe",
  email_address="jack@example.com",
  phone_number="+15555550101",
  access_schedule={
    "starts_at": "2024-04-01T10:40:00Z",
    "ends_at": "2024-04-04T10:40:00Z"
  }
)

Response

Returns a Boolean ok status indicator or void.

Sample Response

None

Last updated

Logo

© Seam Labs, Inc. All rights reserved.