List Action Attempts
Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
await seam.actionAttempts.list({
action_attempt_ids: [
"5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
],
});Output:
[
{
"action_attempt_id": "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"action_type": "UNLOCK_DOOR",
"error": null,
"result": {},
"status": "success"
},
{
"action_attempt_id": "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
"action_type": "LOCK_DOOR",
"error": null,
"result": {},
"status": "success"
}
]Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
curl --include --request POST "https://connect.getseam.com/action_attempts/list" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"action_attempt_ids": [
"5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f"
]
}
EOFOutput:
{
"action_attempts": [
{
"action_attempt_id": "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"action_type": "UNLOCK_DOOR",
"error": null,
"result": {},
"status": "success"
},
{
"action_attempt_id": "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
"action_type": "LOCK_DOOR",
"error": null,
"result": {},
"status": "success"
}
]
}Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
seam.action_attempts.list(
action_attempt_ids=[
"5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
]
)Output:
[
ActionAttempt(
action_attempt_id="5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
action_type="UNLOCK_DOOR",
error=None,
result={},
status="success",
),
ActionAttempt(
action_attempt_id="3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
action_type="LOCK_DOOR",
error=None,
result={},
status="success",
),
]Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
seam.action_attempts.list(
action_attempt_ids: %w[5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f 3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f],
)Output:
[
{
"action_attempt_id" => "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"action_type" => "UNLOCK_DOOR",
"error" => nil,
"result" => {
},
"status" => "success",
},
{
"action_attempt_id" => "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
"action_type" => "LOCK_DOOR",
"error" => nil,
"result" => {
},
"status" => "success",
},
]Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
$seam->action_attempts->list(
action_attempt_ids: [
"5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
]
);Output:
[
[
"action_attempt_id" => "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"action_type" => "UNLOCK_DOOR",
"error" => null,
"result" => [],
"status" => "success",
],
[
"action_attempt_id" => "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
"action_type" => "LOCK_DOOR",
"error" => null,
"result" => [],
"status" => "success",
],
];Returns a list of the action attempts that you specify as an array of action_attempt_ids.
Code:
seam action-attempts list --action_attempt_ids ["5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f","3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f"]Output:
[
{
"action_attempt_id": "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
"action_type": "UNLOCK_DOOR",
"error": null,
"result": {},
"status": "success"
},
{
"action_attempt_id": "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
"action_type": "LOCK_DOOR",
"error": null,
"result": {},
"status": "success"
}
]Request Parameters
action_attempt_ids Array of UUIDs (Required)
IDs of the action attempts that you want to retrieve.
Response
Array of action_attempts
Last updated
Was this helpful?

