Update an Access Grant
Updates an existing Access Grant's time window.
Updates an existing Access Grant's time window.
Code:
await seam.accessGrants.update({
access_grant_id: "4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1",
starts_at: "2025-06-19T18:01:32.000Z",
ends_at: "2025-06-22T13:24:50.000Z",
});Output:
// voidUpdates an existing Access Grant's time window.
Code:
curl --include --request POST "https://connect.getseam.com/access_grants/update" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"access_grant_id": "4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1",
"starts_at": "2025-06-19T18:01:32.000Z",
"ends_at": "2025-06-22T13:24:50.000Z"
}
EOFOutput:
{}Updates an existing Access Grant's time window.
Code:
seam.access_grants.update(
access_grant_id="4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1",
starts_at="2025-06-19T18:01:32.000Z",
ends_at="2025-06-22T13:24:50.000Z",
)Output:
NoneUpdates an existing Access Grant's time window.
Code:
seam.access_grants.update(
access_grant_id: "4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1",
starts_at: "2025-06-19T18:01:32.000Z",
ends_at: "2025-06-22T13:24:50.000Z",
)Output:
nilUpdates an existing Access Grant's time window.
Code:
$seam->access_grants->update(
access_grant_id: "4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1",
starts_at: "2025-06-19T18:01:32.000Z",
ends_at: "2025-06-22T13:24:50.000Z"
);Output:
Updates an existing Access Grant's time window.
Code:
seam access-grants update --access_grant_id "4ec65722-bf38-4b2f-b4c8-f488aa6ba3f1" --starts_at "2025-06-19T18:01:32.000Z" --ends_at "2025-06-22T13:24:50.000Z"Output:
{}Request Parameters
access_grant_id String (Required)
ID of the Access Grant to update.
ends_at String
Date and time at which the validity of the grant ends, in ISO 8601 format. Must be a time in the future and after starts_at.
name String
Display name for the access grant.
starts_at String
Date and time at which the validity of the grant starts, in ISO 8601 format.
Response
void
Last updated
Was this helpful?

