githubEdit

Update a Credential

Update the code for a specified credential

Updates the code for a specified credential.

/acs/credentials/update

post

Updates the code and ends at date and time for a specified credential.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
acs_credential_idstringRequired

ID of the credential that you want to update.

codestringOptional

Replacement access (PIN) code for the credential that you want to update.

Pattern: ^\d+$
ends_atstring · date-timeOptional

Replacement date and time at which the validity of the credential ends, in ISO 8601 format. Must be a time in the future and after the starts_at value that you set when creating the credential.

Responses
chevron-right
200

OK

application/json
okbooleanRequired
post
/acs/credentials/update

Request

Specify the desired credential and updated code by including the corresponding acs_credential_id and code parameters, respectively, in the request body.

Request Body Parameters

Parameter
Type
Description

acs_credential_id

String (UUID) Required

ID of the desired credential

code

String Required

Replacement access (PIN) code for the credential

Sample Request

Response

Returns an acs_credential containing the following properties:

Property
Description

acs_credential_id

ID of the credential

acs_user_id

ID of the user to whom the credential belongs

display_name

Display name that corresponds to the credential type

code

Access (PIN) code for the credential

acs_system_id

ID of the access control system that contains the credential

access_method

Access method for the credential. Supported values: code, card, mobile_key

external_type

Brand-specific terminology for the credential type

external_type_display_name

Display name that corresponds to the brand-specific terminology for the credential type

workspace_id

ID of the workspace that contains the credential

created_at

Date and time at which the credential was created

is_multi_phone_sync_credential

Indicates whether the credential is a multi-phone sync credential

starts_at

Date and time at which the credential validity starts, in ISO 8601arrow-up-right format

ends_at

Date and time at which the credential validity ends, in ISO 8601arrow-up-right format

XXX_metadata

ACS manufacturer-specific metadata for the credential, where XXX is the manufacturer

Sample Response

circle-info

This response contains manufacturer-specific metadata that may vary by manufacturer.

Last updated

Was this helpful?