You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: unexpected response for system id string: 404\n{\"error\":\"Key not present: string\"} (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:60:5 in 'get_system'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: unexpected response for staff [email protected]: 404\n{\"error\":\"user [email protected] not found\"} (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:105:5 in 'staff_details'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
user
Parameters
Name
Required?
Type
Default
Description
id
true
String
Response Schema
Example Responses
1. If user ID not found:
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: Not Found (PlaceOS::Client::API::Error)",
"backtrace": [
"repositories/drivers/lib/placeos/src/placeos/api_wrapper/endpoint.cr:17:9 in 'fetch'",
"repositories/drivers/drivers/place/staff_api.cr:119:5 in 'user'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
create_user
Parameters
Name
Required?
Type
Default
Description
body_json
true
String
Response Schema
Example Responses
1. Failed to create user:
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: failed to create user: 403 (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:127:5 in 'create_user'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
update_user
Parameters
Name
Required?
Type
Default
Description
id
true
String
Nil
body_json
true
String
Nil
Response Schema
Example Responses
1. Failed to update user:
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: failed to update user a: 404 (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:137:5 in 'update_user'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
delete_user
Parameters
Name
Required?
Type
Default
Description
id
true
String
Nil
foce_removal
false
Boolean
false
Response Schema
Example Responses
1. Failed to delete user:
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: failed to delete user a: 403 (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:143:5 in 'delete_user'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
revive_user
Parameters
Name
Required?
Type
Default
Description
id
true
String
Nil
Response Schema
Example Responses
1. If unsuccessful:
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: failed to revive user a: 403 (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:149:5 in 'revive_user'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: unexpected response 404\n{\"error\":\" (Clear::SQL::RecordNotFoundError)\\n from app/lib/clear/src/clear/model/collection.cr:509:7 in 'find!'\\n from app/lib/clear/src/clear/model/collection.cr:506:5 in 'find!'\\n from app/src/controllers/guests.cr:20:16 in 'find_guest'\\n from app/src/controllers/guests.cr:3:1 in '_before_action_find_guest_wrapper_'\\n from app/src/controllers/guests.cr:3:1 in 'get__api_staff_v1_guests__id'\\n from app/src/controllers/guests.cr:3:1 in '->'\\n from app/lib/action-controller/src/action-controller/router/route_handler.cr:39:25 in 'process_request'\\n from app/lib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/frameworks/spider-gazelle.cr:62:9 in 'process_request'\\n from app/lib/action-controller/src/action-controller/router/route_handler.cr:30:7 in 'call'\\n from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'\\n from app/lib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/crystal/http_server.cr:48:9 in 'call_next'\\n from app/lib/action-controller/src/action-controller/log_handler.cr:57:13 in 'call'\\n from usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'\\n from app/lib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/crystal/http_server.cr:48:9 in 'call_next'\\n from app/lib/action-controller/src/action-controller/error_handler.cr:70:5 in 'call'\\n from app/lib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/crystal/http_server.cr:192:23 in 'process'\\n from usr/share/crystal/src/http/server.cr:515:5 in 'handle_client'\\n from app/lib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/crystal/http_server.cr:86:9 in 'handle_client'\\n from usr/share/crystal/src/http/server.cr:468:13 in '->'\\n from usr/share/crystal/src/fiber.cr:146:11 in 'run'\\n from usr/share/crystal/src/fiber.cr:98:34 in '->'\\n from ???\\n\"} (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:182:5 in 'guest_details'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
update_guest
Parameters
Name
Required?
Type
Default
Description
id
true
String
nil
body_json
true
String
nil
Response Schema
Example Responses
1. Failed to update guest:
{
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: failed to update guest asdasd: 404 (Exception)",
"backtrace": [
"repositories/drivers/drivers/place/staff_api.cr:198:5 in 'update_guest'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
}
query_guests
Parameters
Name
Required?
Type
Default
Description
period_start
true
Int64
period_end
true
Int64
zones
true
String
Response Schema
Example Responses
1. If successful:
query_events
Parameters
Name
Required?
Type
Default
Description
period_start
true
Int64
period_end
true
Int64
zones
false
String
nil
systems
false
String
nil
capacity
false
Int32
nil
features
false
String
nil
bookable
false
Boolean
nil
include_cancelled
false
Boolean
nil
Response Schema
Example Responses
1. If successful:
[]
update_event
Parameters
Name
Required?
Type
Default
Description
system_id
true
String
event
true
PlaceCalendar
Response Schema
Example Responses
1. If successful:
delete_event
Parameters
Name
Required?
Type
Default
Description
system_id
true
String
event_id
true
String
Response Schema
Example Responses
1. If successful:
patch_event_metadata
Parameters
Name
Required?
Type
Default
Description
system_id
true
String
event_id
true
String
metadata
true
Response Schema
Example Responses
1. If successful:
replace_event_metadata
Parameters
Name
Required?
Type
Default
Description
system_id
true
String
event_id
true
String
metadata
true
Response Schema
Example Responses
1. If successful:
metadata
Parameters
Name
Required?
Type
Default
Description
id
true
String
key
false
String
nil
Response Schema
Example Responses
1. If successful:
{}
metadata_children
Parameters
Name
Required?
Type
Default
Description
id
true
String
key
false
String
nil
Response Schema
Example Responses
1. Metadata not found:
{
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: Not Found (PlaceOS::Client::API::Error)",
"backtrace": [
"repositories/drivers/lib/placeos/src/placeos/api_wrapper/metadata.cr:13:7 in 'children'",
"repositories/drivers/drivers/place/staff_api.cr:293:5 in 'metadata_children'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
}
write_metadata
Parameters
Name
Required?
Type
Default
Description
id
true
String
key
true
String
null
payload
true
description
false
String
""
Response Schema
Example Responses
1. If successful:
merge_metadata
Parameters
Name
Required?
Type
Default
Description
id
true
String
key
true
String
null
payload
true
description
false
String
""
Response Schema
Example Responses
1. If successful:
zone
Parameters
Name
Required?
Type
Default
Description
zone_id
true
String
null
Response Schema
Example Responses
1. Zone ID not found:
{
"error": "request failed",
"sys_id": "sys-ELNF3KjDuK",
"module_name": "StaffAPI",
"index": 1,
"message": "module raised: Not Found (PlaceOS::Client::API::Error)",
"backtrace": [
"repositories/drivers/lib/placeos/src/placeos/api_wrapper/endpoint.cr:17:9 in 'fetch'",
"repositories/drivers/drivers/place/staff_api.cr:310:5 in 'zone'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in '->'",
"repositories/drivers/drivers/place/staff_api.cr:7:1 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:164:5 in 'execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver.cr:522:1 in 'run_execute'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:262:24 in 'process'",
"repositories/drivers/lib/placeos-driver/src/placeos-driver/driver_manager.cr:179:7 in '->'",
"/usr/share/crystal/src/fiber.cr:146:11 in 'run'",
"/usr/share/crystal/src/fiber.cr:98:34 in '->'",
"???"
]
}