POST /acs/credentials/create ⇒ { acs_credential }
Creates a new for a specified .
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
}
Request
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
AcsCredential(
acs_credential_id="99999999-9999-9999-9999-999999999999",
acs_user_id="33333333-3333-3333-3333-333333333333",
display_name="Multi Phone Sync Credential",
code=None,
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,
)
Request
seam.acs.credentials.create(
acs_user_id: "33333333-3333-3333-3333-333333333333",
access_method: "mobile_key",
allowed_acs_entrance_ids: %w[
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" => nil,
"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,
}
Request
<?php
$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
<?php
[
"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,
];
Request
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
}
Request
package main
import api "github.com/seamapi/go"
import credentials "github.com/seamapi/go/credentials"
func main() {
client.Acs.Credentials.Create(
context.Background(),
credentials.CredentialsCreateRequest{
AcsUserId: api.String("33333333-3333-3333-3333-333333333333"),
AccessMethod: api.String("mobile_key"),
AllowedAcsEntranceIds: [2]string{api.String("55555555-5555-5555-5555-555555555555"), api.String("55555555-5555-5555-5555-000000000000")},
CredentialManagerAcsSystemId: api.String("88888888-8888-8888-8888-888888888888"),
IsMultiPhoneSyncCredential: api.Bool(true),
StartsAt: api.String("2024-03-01T10:40:00Z"),
EndsAt: api.String("2024-03-04T10:40:00Z"),
},
)
}
Response
api.AcsCredential{AcsCredentialId: "99999999-9999-9999-9999-999999999999", AcsUserId: "33333333-3333-3333-3333-333333333333", DisplayName: "Multi Phone Sync Credential", Code: nil, AcsSystemId: "88888888-8888-8888-8888-888888888888", AccessMethod: "mobile_key", WorkspaceId: "00000000-0000-0000-0000-000000000000", CreatedAt: "2024-04-12T03:56:22.396Z", IsMultiPhoneSyncCredential: true}
Authentication Methods
Personal access token
Must also include the seam-workspace
header in the request.
Request Parameters
access_method
Format: Enum
Required: Yes
Access method for the new credential. Supported values: code
, card
, mobile_key
.
Possible enum values:
acs_user_id
Format: UUID
Required: Yes
ID of the ACS user to whom the new credential belongs.
allowed_acs_entrance_ids
Format: List
Item format: UUID
Required: No
Format: Object
Required: No
Vostio-specific metadata for the new credential.
join_all_guest_acs_entrances
Format: Boolean
override_all_guest_acs_entrances
Format: Boolean
override_guest_acs_entrance_ids
Format: List
code
Format: String
Required: No
credential_manager_acs_system_id
Format: UUID
Required: No
ACS system ID of the credential manager for the new credential.
ends_at
Format: Datetime
Required: No
is_multi_phone_sync_credential
Format: Boolean
Required: No
Format: Object
Required: No
Salto Space-specific metadata for the new credential.
assign_new_key
Format: Boolean
update_current_key
Format: Boolean
starts_at
Format: Datetime
Required: No
Format: Object
Required: No
Visionline-specific metadata for the new credential.
assa_abloy_credential_service_mobile_endpoint_id
Format: UUID
Deprecated. Read-only endpoint references moved to endpoint
.
auto_join
Format: Boolean
card_format
Format: Enum
card_function_type
Format: Enum
is_override_key
Format: Boolean
Deprecated. Use override
instead.
joiner_acs_credential_ids
Format: List
override
Format: Boolean
Return Type