# Update the starting and ending times
# for a group of linked access codes,
# using the common_code_key to identify
# the group of access codes to update.
seam.access_codes.update_multiple(
common_code_key = common_code_key,
starts_at = "2024-11-15T12:00:00Z",
ends_at = "2024-11-17T15:00:00Z"
)
Response:
None
Request:
# Update the starting and ending times
# for a group of linked access codes,
# using the common_code_key to identify
# the group of access codes to update.
curl -X 'POST' \
'https://connect.getseam.com/access_codes/update_multiple' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d "{
\"common_code_key\": \"${common_code_key}\",
\"starts_at\": \"2024-11-15T12:00:00Z\",
\"ends_at\": \"2024-11-17T15:00:00Z\"
}"
Response:
{
"ok": true
}
Request:
// Update the starting and ending times
// for a group of linked access codes,
// using the common_code_key to identify
// the group of access codes to update.
await seam.accessCodes.updateMultiple({
common_code_key: commonCodeKey,
starts_at: "2024-11-15T12:00:00Z",
ends_at: "2024-11-17T15:00:00Z"
});
Response:
void
Request:
# Update the starting and ending times
# for a group of linked access codes,
# using the common_code_key to identify
# the group of access codes to update.
client.access_codes.update_multiple(
common_code_key: common_code_key,
starts_at: "2024-11-15T12:00:00Z",
ends_at: "2024-11-17T15:00:00Z"
)
Response:
void
Request:
// Update the starting and ending times
// for a group of linked access codes,
// using the common_code_key to identify
// the group of access codes to update.
$seam->access_codes->update_multiple(
common_code_key: $common_code_key,
starts_at: "2024-11-15T12:00:00Z",
ends_at: "2024-11-17T15:00:00Z"
);
Response:
void
Request:
// Update the starting and ending times
// for a group of linked access codes,
// using the common_code_key to identify
// the group of access codes to update.
seam.AccessCodes.UpdateMultiple(
commonCodeKey: commonCodeKey,
startsAt: "2024-11-15T12:00:00Z",
endsAt: "2024-11-17T15:00:00Z"
);
Response:
void
Request:
// Update the starting and ending times
// for a group of linked access codes,
// using the common_code_key to identify
// the group of access codes to update.
seam.accessCodes()
.updateMultiple(AccessCodesUpdateMultipleRequest.builder()
.commonCodeKey(commonCodeKey)
.startsAt("2024-11-15T12:00:00Z")
.endsAt("2024-11-17T15:00:00Z")
.build());
Response:
void
Request:
// Update the starting and ending times
// for a group of linked access codes,
// using the common_code_key to identify
// the group of access codes to update.
client.AccessCodes.UpdateMultiple(
context.Background(),
&api.AccessCodesUpdateMultipleRequest{
CommonCodeKey: commonCodeKey,
StartsAt: api.String("2024-11-15T12:00:00Z"),
EndsAt: api.String("2024-11-17T15:00:00Z"),
},
)
if uErr != nil {
return uErr
}
return nil
Response:
void
Request Parameters
common_code_key
Type: string Required: Yes
Key that links the group of access codes, assigned on creation by /access_codes/create_multiple.
starts_as
Type: string Required: No
Date and time at which the validity of the linked access codes starts, in ISO 8601 format.
ends_at
Type: string Required: No
Date and time at which the validity of the linked access codes ends, in ISO 8601 format. Must be a time in the future and after starts_at.