Create a Credential for an ACS User
POST /acs/credentials/create ⇒ { acs_credential }
Creates a new credential for a specified ACS user.
Request
await seam.acs.credentials.create({
acs_user_id: "33333333-3333-3333-3333-333333333333",
access_method: "mobile_key",
allowed_acs_entrance_ids: [
"55555555-5555-5555-5555-555555555555",
"55555555-5555-5555-5555-000000000000",
],
credential_manager_acs_system_id: "88888888-8888-8888-8888-888888888888",
is_multi_phone_sync_credential: true,
starts_at: "2024-03-01T10:40:00Z",
ends_at: "2024-03-04T10:40:00Z",
});
Response
{
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": null,
"acs_system_id": "88888888-8888-8888-8888-888888888888",
"access_method": "mobile_key",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential": true
}
Authentication Methods
API key
Personal access token Must also include the
seam-workspace
header in the request.
Request Parameters
access_method
access_method
Type: string
Required: Yes
Access method for the new credential. Supported values: code
, card
, mobile_key
.
acs_user_id
acs_user_id
Type: string
Required: Yes
ID of the ACS user to whom the new credential belongs.
allowed_acs_entrance_ids
allowed_acs_entrance_ids
Type: array
Required: No
Set of IDs of the entrances for which the new credential grants access.
assa_abloy_vostio_metadata
assa_abloy_vostio_metadata
Type: object
Required: No
Vostio-specific metadata for the new credential.
code
code
Type: string
Required: No
Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable device or system integration guide.
credential_manager_acs_system_id
credential_manager_acs_system_id
Type: string
Required: No
ACS system ID of the credential manager for the new credential.
ends_at
ends_at
Type: string
Required: No
Date and time at which the validity of the new credential ends, in ISO 8601 format. Must be a time in the future and after starts_at
.
is_multi_phone_sync_credential
is_multi_phone_sync_credential
Type: boolean
Required: No
Indicates whether the new credential is a multi-phone sync credential.
salto_space_metadata
salto_space_metadata
Type: object
Required: No
Salto Space-specific metadata for the new credential.
starts_at
starts_at
Type: string
Required: No
Date and time at which the validity of the new credential starts, in ISO 8601 format.
visionline_metadata
visionline_metadata
Type: object
Required: No
Visionline-specific metadata for the new credential.
Return Type
Last updated
Was this helpful?