Update a Credential
Update the code for a specified credential
Updates the code for a specified credential (acs_credential
object).
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
Sample Request
seam.acs.credentials.update(
acs_credential_id="66666666-6666-6666-6666-666666666666",
code="7890"
)
curl -X 'POST' \
"https://connect.getseam.com/acs/credentials/update" \
-H 'accept: application/json' \
-H "Authorization: Bearer ${API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"acs_credential_id": "66666666-6666-6666-6666-666666666666",
"code": "7890"
}'
await seam.acs.credentials.update({
acs_credential_id: "66666666-6666-6666-6666-666666666666",
code: "7890"
});
# Coming soon!
$seam->acs->credentials->update(
acs_credential_id: "66666666-6666-6666-6666-666666666666",
code: "7890"
);
seam.CredentialsAcs.Update(
acsCredentialId: "66666666-6666-6666-6666-666666666666",
code: "7890"
);
// Coming soon!
acs_credential, uErr := client.Acs.Credentials.Update(
context.Background(), &acs.CredentialsUpdateRequest{
AcsCredentialId: api.String("66666666-6666-6666-6666-666666666666"),
Code: "7890",
},
)
Response
Returns an acs_credential
containing the following properties:
Sample Response
This response contains manufacturer-specific metadata that may vary by manufacturer.
AcsCredential(
acs_credential_id='99999999-9999-9999-9999-999999999999',
acs_user_id='33333333-3333-3333-3333-333333333333',
display_name='Multi Phone Sync Credential',
code='7890',
acs_system_id='11111111-1111-1111-1111-111111111111',
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,
# manufacturer-specific metadata
)
{
"acs_credential": {
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": "7890",
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"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,
# manufacturer-specific metadata
},
"ok": true
}
{
acs_credential_id: '99999999-9999-9999-9999-999999999999',
acs_user_id: '33333333-3333-3333-3333-333333333333',
display_name: 'Multi Phone Sync Credential',
code: '7890',
acs_system_id: '11111111-1111-1111-1111-111111111111',
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,
// manufacturer-specific metadata
}
# Coming soon!
{
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": "7890",
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"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,
// manufacturer-specific metadata
}
{
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": "7890",
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"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,
// manufacturer-specific metadata
}
// Coming soon!
{
"acs_credential": {
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": "7890",
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"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,
# manufacturer-specific metadata
},
"ok": true
}
Last updated