spatialflow 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spatialflow/__init__.py +91 -0
- spatialflow/_generated/.github/workflows/python.yml +31 -0
- spatialflow/_generated/.gitignore +66 -0
- spatialflow/_generated/.gitlab-ci.yml +31 -0
- spatialflow/_generated/.openapi-generator/FILES +390 -0
- spatialflow/_generated/.openapi-generator/VERSION +1 -0
- spatialflow/_generated/.openapi-generator-ignore +23 -0
- spatialflow/_generated/.spec-hash +1 -0
- spatialflow/_generated/.travis.yml +17 -0
- spatialflow/_generated/README.md +537 -0
- spatialflow/_generated/__init__.py +1 -0
- spatialflow/_generated/docs/APIUsageStats.md +32 -0
- spatialflow/_generated/docs/AccountApi.md +1751 -0
- spatialflow/_generated/docs/ActionDeliverySuccessMetrics.md +32 -0
- spatialflow/_generated/docs/ActionResponse.md +32 -0
- spatialflow/_generated/docs/ActionRetryConfigSchema.md +32 -0
- spatialflow/_generated/docs/ActivitySummary.md +30 -0
- spatialflow/_generated/docs/AdminApi.md +1787 -0
- spatialflow/_generated/docs/ApiKeyCreateRequest.md +31 -0
- spatialflow/_generated/docs/ApiKeyCreateResponse.md +31 -0
- spatialflow/_generated/docs/ApiKeyResponse.md +38 -0
- spatialflow/_generated/docs/ApiKeyUpdateRequest.md +33 -0
- spatialflow/_generated/docs/AsyncUploadGeofencesResponse.md +33 -0
- spatialflow/_generated/docs/AuthTypeEnum.md +17 -0
- spatialflow/_generated/docs/AuthenticationApi.md +1289 -0
- spatialflow/_generated/docs/BatchLocationUpdateIn.md +30 -0
- spatialflow/_generated/docs/BillingApi.md +925 -0
- spatialflow/_generated/docs/BulkGeofenceRequest.md +29 -0
- spatialflow/_generated/docs/ChangePasswordSchema.md +30 -0
- spatialflow/_generated/docs/CheckoutSessionRequest.md +32 -0
- spatialflow/_generated/docs/CheckoutSessionResponse.md +31 -0
- spatialflow/_generated/docs/CircuitBreakerSchema.md +33 -0
- spatialflow/_generated/docs/ConfigFieldDefinitionRequest.md +41 -0
- spatialflow/_generated/docs/ConfigFieldDefinitionResponse.md +43 -0
- spatialflow/_generated/docs/ConfirmPasswordResetSchema.md +31 -0
- spatialflow/_generated/docs/CreateFromTemplateIn.md +30 -0
- spatialflow/_generated/docs/CreateGeofenceRequest.md +36 -0
- spatialflow/_generated/docs/CreateIntegrationSchema.md +33 -0
- spatialflow/_generated/docs/CreateUserSchema.md +35 -0
- spatialflow/_generated/docs/CreateWebhookRequest.md +43 -0
- spatialflow/_generated/docs/DashboardComparisonMetrics.md +32 -0
- spatialflow/_generated/docs/DashboardMetricsResponse.md +36 -0
- spatialflow/_generated/docs/DefaultApi.md +585 -0
- spatialflow/_generated/docs/DeleteFileResponse.md +30 -0
- spatialflow/_generated/docs/DeliveryStatusEnum.md +15 -0
- spatialflow/_generated/docs/DeviceIn.md +32 -0
- spatialflow/_generated/docs/DeviceOut.md +37 -0
- spatialflow/_generated/docs/DevicesApi.md +1213 -0
- spatialflow/_generated/docs/E2ETestApi.md +271 -0
- spatialflow/_generated/docs/EmailApi.md +541 -0
- spatialflow/_generated/docs/EmailHealthResponse.md +31 -0
- spatialflow/_generated/docs/EmailQueueStats.md +34 -0
- spatialflow/_generated/docs/EmailStats.md +31 -0
- spatialflow/_generated/docs/EmailStatusResponse.md +36 -0
- spatialflow/_generated/docs/ErrorResponse.md +32 -0
- spatialflow/_generated/docs/ExecutionOut.md +38 -0
- spatialflow/_generated/docs/ExportIntegrationSchema.md +35 -0
- spatialflow/_generated/docs/FileListResponse.md +31 -0
- spatialflow/_generated/docs/ForgotPasswordSchema.md +29 -0
- spatialflow/_generated/docs/GPXPlaybackOut.md +42 -0
- spatialflow/_generated/docs/GPXRouteOut.md +40 -0
- spatialflow/_generated/docs/GPXSimulatorApi.md +883 -0
- spatialflow/_generated/docs/GeoJSONPoint.md +31 -0
- spatialflow/_generated/docs/GeofenceListResponse.md +31 -0
- spatialflow/_generated/docs/GeofenceResponse.md +43 -0
- spatialflow/_generated/docs/GeofenceStats.md +30 -0
- spatialflow/_generated/docs/GeofenceTestResult.md +33 -0
- spatialflow/_generated/docs/GeofencesApi.md +1524 -0
- spatialflow/_generated/docs/HealthCheckResponse.md +31 -0
- spatialflow/_generated/docs/HealthResponse.md +32 -0
- spatialflow/_generated/docs/ImportIntegrationSchema.md +32 -0
- spatialflow/_generated/docs/ImportResultSchema.md +33 -0
- spatialflow/_generated/docs/IntegrationDetailSchema.md +44 -0
- spatialflow/_generated/docs/IntegrationResponseSchema.md +42 -0
- spatialflow/_generated/docs/IntegrationStatsSchema.md +36 -0
- spatialflow/_generated/docs/IntegrationTypeListResponse.md +34 -0
- spatialflow/_generated/docs/IntegrationTypeRequest.md +40 -0
- spatialflow/_generated/docs/IntegrationTypeResponse.md +45 -0
- spatialflow/_generated/docs/IntegrationsApi.md +2008 -0
- spatialflow/_generated/docs/InvoiceLineItem.md +33 -0
- spatialflow/_generated/docs/InvoiceListResponse.md +31 -0
- spatialflow/_generated/docs/InvoiceResponse.md +40 -0
- spatialflow/_generated/docs/LocationBatchIn.md +31 -0
- spatialflow/_generated/docs/LocationImportResponse.md +41 -0
- spatialflow/_generated/docs/LocationIngestResponse.md +35 -0
- spatialflow/_generated/docs/LocationPointIn.md +38 -0
- spatialflow/_generated/docs/LocationUpdateIn.md +36 -0
- spatialflow/_generated/docs/LocationUpdateOut.md +32 -0
- spatialflow/_generated/docs/LoginResponse.md +33 -0
- spatialflow/_generated/docs/LoginSchema.md +30 -0
- spatialflow/_generated/docs/MemberActionResponse.md +33 -0
- spatialflow/_generated/docs/MemberSummary.md +36 -0
- spatialflow/_generated/docs/MethodEnum.md +17 -0
- spatialflow/_generated/docs/OAuthAuthorizeResponse.md +29 -0
- spatialflow/_generated/docs/OAuthCallbackQuery.md +32 -0
- spatialflow/_generated/docs/OAuthLinkResponse.md +31 -0
- spatialflow/_generated/docs/OAuthProvidersResponse.md +29 -0
- spatialflow/_generated/docs/OnboardingProgressResponse.md +37 -0
- spatialflow/_generated/docs/PaymentMethodResponse.md +37 -0
- spatialflow/_generated/docs/PingResponse.md +31 -0
- spatialflow/_generated/docs/PlanChangePreviewResponse.md +35 -0
- spatialflow/_generated/docs/PlanFeatures.md +36 -0
- spatialflow/_generated/docs/PlanLimits.md +34 -0
- spatialflow/_generated/docs/PlanResponse.md +37 -0
- spatialflow/_generated/docs/PortalSessionRequest.md +30 -0
- spatialflow/_generated/docs/PortalSessionResponse.md +30 -0
- spatialflow/_generated/docs/PresignedUrlRequest.md +31 -0
- spatialflow/_generated/docs/PresignedUrlResponse.md +35 -0
- spatialflow/_generated/docs/PrivacyErasureRequest.md +35 -0
- spatialflow/_generated/docs/PrivacyErasureResponse.md +36 -0
- spatialflow/_generated/docs/PublicApi.md +389 -0
- spatialflow/_generated/docs/PublicLocationIngestApi.md +249 -0
- spatialflow/_generated/docs/RateLimitResponse.md +32 -0
- spatialflow/_generated/docs/RecentActivity.md +31 -0
- spatialflow/_generated/docs/RefreshTokenSchema.md +29 -0
- spatialflow/_generated/docs/RegisterSchema.md +37 -0
- spatialflow/_generated/docs/ResendVerificationSchema.md +29 -0
- spatialflow/_generated/docs/ResetPasswordSchema.md +31 -0
- spatialflow/_generated/docs/RetryPolicyResponseSchema.md +32 -0
- spatialflow/_generated/docs/RetryPolicySchema.md +35 -0
- spatialflow/_generated/docs/RetryStrategyEnum.md +14 -0
- spatialflow/_generated/docs/SeedDataResponseSchema.md +31 -0
- spatialflow/_generated/docs/SendEmailRequest.md +33 -0
- spatialflow/_generated/docs/SetupIntentResponse.md +30 -0
- spatialflow/_generated/docs/SignupRequest.md +40 -0
- spatialflow/_generated/docs/StartPlaybackRequest.md +30 -0
- spatialflow/_generated/docs/StorageApi.md +494 -0
- spatialflow/_generated/docs/SubscriptionActionResponse.md +32 -0
- spatialflow/_generated/docs/SubscriptionResponse.md +36 -0
- spatialflow/_generated/docs/SubscriptionsApi.md +677 -0
- spatialflow/_generated/docs/SuccessResponse.md +31 -0
- spatialflow/_generated/docs/SystemApi.md +137 -0
- spatialflow/_generated/docs/TemplateOut.md +35 -0
- spatialflow/_generated/docs/TestEventRequest.md +29 -0
- spatialflow/_generated/docs/TestIntegrationResponseSchema.md +31 -0
- spatialflow/_generated/docs/TestPointRequest.md +34 -0
- spatialflow/_generated/docs/TestPointResponse.md +33 -0
- spatialflow/_generated/docs/TestWebhookRequest.md +32 -0
- spatialflow/_generated/docs/TestWorkflowIn.md +29 -0
- spatialflow/_generated/docs/TileMetadata.md +36 -0
- spatialflow/_generated/docs/TilesApi.md +462 -0
- spatialflow/_generated/docs/UnsubscribeRequest.md +29 -0
- spatialflow/_generated/docs/UnsubscribeResponse.md +31 -0
- spatialflow/_generated/docs/UpdateGeofenceRequest.md +37 -0
- spatialflow/_generated/docs/UpdateIntegrationSchema.md +33 -0
- spatialflow/_generated/docs/UpdateMemberRoleRequest.md +30 -0
- spatialflow/_generated/docs/UpdateOnboardingProgressRequest.md +30 -0
- spatialflow/_generated/docs/UpdateProfileRequest.md +45 -0
- spatialflow/_generated/docs/UpdateUserWorkspaceRequest.md +31 -0
- spatialflow/_generated/docs/UpdateWebhookRequest.md +43 -0
- spatialflow/_generated/docs/UploadGeofencesRequest.md +31 -0
- spatialflow/_generated/docs/UploadJobStatus.md +42 -0
- spatialflow/_generated/docs/UsageMetrics.md +33 -0
- spatialflow/_generated/docs/UsageResponse.md +36 -0
- spatialflow/_generated/docs/UsageStats.md +32 -0
- spatialflow/_generated/docs/UserActionResponse.md +35 -0
- spatialflow/_generated/docs/UserApprovalRequest.md +30 -0
- spatialflow/_generated/docs/UserInviteRequest.md +33 -0
- spatialflow/_generated/docs/UserInviteResponse.md +36 -0
- spatialflow/_generated/docs/UserListResponse.md +34 -0
- spatialflow/_generated/docs/UserProfileResponse.md +55 -0
- spatialflow/_generated/docs/UserRejectionRequest.md +30 -0
- spatialflow/_generated/docs/UserResponse.md +44 -0
- spatialflow/_generated/docs/UserSummary.md +41 -0
- spatialflow/_generated/docs/UserUsageResponse.md +38 -0
- spatialflow/_generated/docs/UserWorkspaceResponse.md +34 -0
- spatialflow/_generated/docs/WebhookDeliveryDetailResponse.md +49 -0
- spatialflow/_generated/docs/WebhookDeliveryListResponse.md +31 -0
- spatialflow/_generated/docs/WebhookDeliveryResponse.md +46 -0
- spatialflow/_generated/docs/WebhookListResponse.md +31 -0
- spatialflow/_generated/docs/WebhookMetricsResponse.md +31 -0
- spatialflow/_generated/docs/WebhookResponse.md +50 -0
- spatialflow/_generated/docs/WebhookTestResponse.md +36 -0
- spatialflow/_generated/docs/WebhooksApi.md +1384 -0
- spatialflow/_generated/docs/WorkflowImportSchema.md +30 -0
- spatialflow/_generated/docs/WorkflowIn.md +32 -0
- spatialflow/_generated/docs/WorkflowListOut.md +39 -0
- spatialflow/_generated/docs/WorkflowListResponse.md +32 -0
- spatialflow/_generated/docs/WorkflowOut.md +42 -0
- spatialflow/_generated/docs/WorkflowRetryPolicyUpdateSchema.md +32 -0
- spatialflow/_generated/docs/WorkflowStepRetrySchema.md +33 -0
- spatialflow/_generated/docs/WorkflowUpdate.md +33 -0
- spatialflow/_generated/docs/WorkflowsApi.md +2599 -0
- spatialflow/_generated/docs/WorkspaceDeleteResponse.md +33 -0
- spatialflow/_generated/docs/WorkspaceDetail.md +37 -0
- spatialflow/_generated/docs/WorkspaceDetailResponse.md +41 -0
- spatialflow/_generated/docs/WorkspaceIn.md +34 -0
- spatialflow/_generated/docs/WorkspaceListItem.md +39 -0
- spatialflow/_generated/docs/WorkspaceListResponse.md +34 -0
- spatialflow/_generated/docs/WorkspaceMembersResponse.md +35 -0
- spatialflow/_generated/docs/WorkspaceOut.md +38 -0
- spatialflow/_generated/docs/WorkspaceSummary.md +32 -0
- spatialflow/_generated/docs/WorkspaceUpdateRequest.md +34 -0
- spatialflow/_generated/docs/WorkspaceUpdateResponse.md +33 -0
- spatialflow/_generated/docs/WorkspacesApi.md +241 -0
- spatialflow/_generated/git_push.sh +57 -0
- spatialflow/_generated/pyproject.toml +91 -0
- spatialflow/_generated/requirements.txt +6 -0
- spatialflow/_generated/setup.cfg +2 -0
- spatialflow/_generated/setup.py +51 -0
- spatialflow/_generated/spatialflow_generated/__init__.py +216 -0
- spatialflow/_generated/spatialflow_generated/api/__init__.py +24 -0
- spatialflow/_generated/spatialflow_generated/api/account_api.py +5675 -0
- spatialflow/_generated/spatialflow_generated/api/admin_api.py +6173 -0
- spatialflow/_generated/spatialflow_generated/api/authentication_api.py +4753 -0
- spatialflow/_generated/spatialflow_generated/api/billing_api.py +3151 -0
- spatialflow/_generated/spatialflow_generated/api/default_api.py +2157 -0
- spatialflow/_generated/spatialflow_generated/api/devices_api.py +3965 -0
- spatialflow/_generated/spatialflow_generated/api/e2_e_test_api.py +1049 -0
- spatialflow/_generated/spatialflow_generated/api/email_api.py +1879 -0
- spatialflow/_generated/spatialflow_generated/api/geofences_api.py +4899 -0
- spatialflow/_generated/spatialflow_generated/api/gpx_simulator_api.py +2824 -0
- spatialflow/_generated/spatialflow_generated/api/integrations_api.py +6952 -0
- spatialflow/_generated/spatialflow_generated/api/public_api.py +1506 -0
- spatialflow/_generated/spatialflow_generated/api/public_location_ingest_api.py +845 -0
- spatialflow/_generated/spatialflow_generated/api/storage_api.py +1642 -0
- spatialflow/_generated/spatialflow_generated/api/subscriptions_api.py +2356 -0
- spatialflow/_generated/spatialflow_generated/api/system_api.py +529 -0
- spatialflow/_generated/spatialflow_generated/api/tiles_api.py +1626 -0
- spatialflow/_generated/spatialflow_generated/api/webhooks_api.py +4579 -0
- spatialflow/_generated/spatialflow_generated/api/workflows_api.py +8334 -0
- spatialflow/_generated/spatialflow_generated/api/workspaces_api.py +813 -0
- spatialflow/_generated/spatialflow_generated/api_client.py +800 -0
- spatialflow/_generated/spatialflow_generated/api_response.py +21 -0
- spatialflow/_generated/spatialflow_generated/configuration.py +599 -0
- spatialflow/_generated/spatialflow_generated/exceptions.py +199 -0
- spatialflow/_generated/spatialflow_generated/models/__init__.py +180 -0
- spatialflow/_generated/spatialflow_generated/models/action_delivery_success_metrics.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/action_response.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/action_retry_config_schema.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/activity_summary.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_create_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_create_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_response.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_update_request.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/api_usage_stats.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/async_upload_geofences_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/auth_type_enum.py +39 -0
- spatialflow/_generated/spatialflow_generated/models/batch_location_update_in.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/bulk_geofence_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/change_password_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/checkout_session_request.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/checkout_session_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/circuit_breaker_schema.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/config_field_definition_request.py +134 -0
- spatialflow/_generated/spatialflow_generated/models/config_field_definition_response.py +138 -0
- spatialflow/_generated/spatialflow_generated/models/confirm_password_reset_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/create_from_template_in.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/create_geofence_request.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/create_integration_schema.py +106 -0
- spatialflow/_generated/spatialflow_generated/models/create_user_schema.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/create_webhook_request.py +136 -0
- spatialflow/_generated/spatialflow_generated/models/dashboard_comparison_metrics.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/dashboard_metrics_response.py +108 -0
- spatialflow/_generated/spatialflow_generated/models/delete_file_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/delivery_status_enum.py +38 -0
- spatialflow/_generated/spatialflow_generated/models/device_in.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/device_out.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/email_health_response.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/email_queue_stats.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/email_stats.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/email_status_response.py +112 -0
- spatialflow/_generated/spatialflow_generated/models/error_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/execution_out.py +126 -0
- spatialflow/_generated/spatialflow_generated/models/export_integration_schema.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/file_list_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/forgot_password_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/geo_json_point.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_response.py +139 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_stats.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_test_result.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/gpx_playback_out.py +128 -0
- spatialflow/_generated/spatialflow_generated/models/gpx_route_out.py +119 -0
- spatialflow/_generated/spatialflow_generated/models/health_check_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/health_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/import_integration_schema.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/import_result_schema.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/integration_detail_schema.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/integration_response_schema.py +123 -0
- spatialflow/_generated/spatialflow_generated/models/integration_stats_schema.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_list_response.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_request.py +117 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_response.py +128 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_line_item.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_response.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/location_batch_in.py +102 -0
- spatialflow/_generated/spatialflow_generated/models/location_import_response.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/location_ingest_response.py +117 -0
- spatialflow/_generated/spatialflow_generated/models/location_point_in.py +129 -0
- spatialflow/_generated/spatialflow_generated/models/location_update_in.py +132 -0
- spatialflow/_generated/spatialflow_generated/models/location_update_out.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/login_response.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/login_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/member_action_response.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/member_summary.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/method_enum.py +39 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_authorize_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_callback_query.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_link_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_providers_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/onboarding_progress_response.py +112 -0
- spatialflow/_generated/spatialflow_generated/models/payment_method_response.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/ping_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/plan_change_preview_response.py +104 -0
- spatialflow/_generated/spatialflow_generated/models/plan_features.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/plan_limits.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/plan_response.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/portal_session_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/portal_session_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/presigned_url_request.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/presigned_url_response.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/privacy_erasure_request.py +118 -0
- spatialflow/_generated/spatialflow_generated/models/privacy_erasure_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/rate_limit_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/recent_activity.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/refresh_token_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/register_schema.py +133 -0
- spatialflow/_generated/spatialflow_generated/models/resend_verification_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/reset_password_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/retry_policy_response_schema.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/retry_policy_schema.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/retry_strategy_enum.py +38 -0
- spatialflow/_generated/spatialflow_generated/models/seed_data_response_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/send_email_request.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/setup_intent_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/signup_request.py +164 -0
- spatialflow/_generated/spatialflow_generated/models/start_playback_request.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/subscription_action_response.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/subscription_response.py +113 -0
- spatialflow/_generated/spatialflow_generated/models/success_response.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/template_out.py +104 -0
- spatialflow/_generated/spatialflow_generated/models/test_event_request.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/test_integration_response_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/test_point_request.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/test_point_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/test_webhook_request.py +106 -0
- spatialflow/_generated/spatialflow_generated/models/test_workflow_in.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/tile_metadata.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/unsubscribe_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/unsubscribe_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/update_geofence_request.py +142 -0
- spatialflow/_generated/spatialflow_generated/models/update_integration_schema.py +121 -0
- spatialflow/_generated/spatialflow_generated/models/update_member_role_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/update_onboarding_progress_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/update_profile_request.py +208 -0
- spatialflow/_generated/spatialflow_generated/models/update_user_workspace_request.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/update_webhook_request.py +186 -0
- spatialflow/_generated/spatialflow_generated/models/upload_geofences_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/upload_job_status.py +137 -0
- spatialflow/_generated/spatialflow_generated/models/usage_metrics.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/usage_response.py +105 -0
- spatialflow/_generated/spatialflow_generated/models/usage_stats.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/user_action_response.py +119 -0
- spatialflow/_generated/spatialflow_generated/models/user_approval_request.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/user_invite_request.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/user_invite_response.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/user_list_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/user_profile_response.py +158 -0
- spatialflow/_generated/spatialflow_generated/models/user_rejection_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/user_response.py +142 -0
- spatialflow/_generated/spatialflow_generated/models/user_summary.py +140 -0
- spatialflow/_generated/spatialflow_generated/models/user_usage_response.py +152 -0
- spatialflow/_generated/spatialflow_generated/models/user_workspace_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_detail_response.py +182 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_response.py +161 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_metrics_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_response.py +148 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_test_response.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_import_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_in.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_list_out.py +118 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_list_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_out.py +129 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_retry_policy_update_schema.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_step_retry_schema.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_update.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_delete_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_detail.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_detail_response.py +143 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_in.py +122 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_list_item.py +130 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_list_response.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_members_response.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_out.py +132 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_summary.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_update_request.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_update_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/py.typed +0 -0
- spatialflow/_generated/spatialflow_generated/rest.py +215 -0
- spatialflow/_generated/test-requirements.txt +6 -0
- spatialflow/_generated/tox.ini +9 -0
- spatialflow/client.py +137 -0
- spatialflow/exceptions.py +234 -0
- spatialflow/jobs.py +204 -0
- spatialflow/pagination.py +142 -0
- spatialflow/uploads.py +166 -0
- spatialflow/webhooks.py +126 -0
- spatialflow-0.1.0.dist-info/METADATA +249 -0
- spatialflow-0.1.0.dist-info/RECORD +404 -0
- spatialflow-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,1213 @@
|
|
|
1
|
+
# spatialflow_generated.DevicesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.spatialflow.io*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**apps_devices_api_activate_device**](DevicesApi.md#apps_devices_api_activate_device) | **POST** /api/v1/devices/{device_id}/activate | Activate Device
|
|
8
|
+
[**apps_devices_api_batch_update_locations**](DevicesApi.md#apps_devices_api_batch_update_locations) | **POST** /api/v1/devices/batch-update | Batch Update Locations
|
|
9
|
+
[**apps_devices_api_create_device**](DevicesApi.md#apps_devices_api_create_device) | **POST** /api/v1/devices/ | Create Device
|
|
10
|
+
[**apps_devices_api_deactivate_device**](DevicesApi.md#apps_devices_api_deactivate_device) | **POST** /api/v1/devices/{device_id}/deactivate | Deactivate Device
|
|
11
|
+
[**apps_devices_api_delete_device**](DevicesApi.md#apps_devices_api_delete_device) | **DELETE** /api/v1/devices/{device_id} | Delete Device
|
|
12
|
+
[**apps_devices_api_export_events_endpoint**](DevicesApi.md#apps_devices_api_export_events_endpoint) | **GET** /api/v1/devices/events/export | Export Events Endpoint
|
|
13
|
+
[**apps_devices_api_get_device**](DevicesApi.md#apps_devices_api_get_device) | **GET** /api/v1/devices/{device_id} | Get Device
|
|
14
|
+
[**apps_devices_api_get_device_events**](DevicesApi.md#apps_devices_api_get_device_events) | **GET** /api/v1/devices/{device_id}/events | Get Device Events
|
|
15
|
+
[**apps_devices_api_get_import_job**](DevicesApi.md#apps_devices_api_get_import_job) | **GET** /api/v1/devices/locations/import/{job_id} | Get Import Job
|
|
16
|
+
[**apps_devices_api_get_location_stats**](DevicesApi.md#apps_devices_api_get_location_stats) | **GET** /api/v1/devices/stats | Get Location Stats
|
|
17
|
+
[**apps_devices_api_get_recent_events**](DevicesApi.md#apps_devices_api_get_recent_events) | **GET** /api/v1/devices/events/recent | Get Recent Events
|
|
18
|
+
[**apps_devices_api_list_devices**](DevicesApi.md#apps_devices_api_list_devices) | **GET** /api/v1/devices/ | List Devices
|
|
19
|
+
[**apps_devices_api_update_device_location**](DevicesApi.md#apps_devices_api_update_device_location) | **POST** /api/v1/devices/{device_id}/location | Update Device Location
|
|
20
|
+
[**apps_devices_api_upload_csv_import**](DevicesApi.md#apps_devices_api_upload_csv_import) | **POST** /api/v1/devices/locations/import | Upload Csv Import
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# **apps_devices_api_activate_device**
|
|
24
|
+
> DeviceOut apps_devices_api_activate_device(device_id)
|
|
25
|
+
|
|
26
|
+
Activate Device
|
|
27
|
+
|
|
28
|
+
Activate a device (resume tracking).
|
|
29
|
+
|
|
30
|
+
### Example
|
|
31
|
+
|
|
32
|
+
* Api Key Authentication (APIKeyBearer):
|
|
33
|
+
* Bearer Authentication (JWTBearer):
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
import spatialflow_generated
|
|
37
|
+
from spatialflow_generated.models.device_out import DeviceOut
|
|
38
|
+
from spatialflow_generated.rest import ApiException
|
|
39
|
+
from pprint import pprint
|
|
40
|
+
|
|
41
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
42
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
43
|
+
configuration = spatialflow_generated.Configuration(
|
|
44
|
+
host = "https://api.spatialflow.io"
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
# The client must configure the authentication and authorization parameters
|
|
48
|
+
# in accordance with the API server security policy.
|
|
49
|
+
# Examples for each auth method are provided below, use the example that
|
|
50
|
+
# satisfies your auth use case.
|
|
51
|
+
|
|
52
|
+
# Configure API key authorization: APIKeyBearer
|
|
53
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
54
|
+
|
|
55
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
56
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
57
|
+
|
|
58
|
+
# Configure Bearer authorization: JWTBearer
|
|
59
|
+
configuration = spatialflow_generated.Configuration(
|
|
60
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
# Enter a context with an instance of the API client
|
|
64
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
65
|
+
# Create an instance of the API class
|
|
66
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
67
|
+
device_id = 'device_id_example' # str |
|
|
68
|
+
|
|
69
|
+
try:
|
|
70
|
+
# Activate Device
|
|
71
|
+
api_response = await api_instance.apps_devices_api_activate_device(device_id)
|
|
72
|
+
print("The response of DevicesApi->apps_devices_api_activate_device:\n")
|
|
73
|
+
pprint(api_response)
|
|
74
|
+
except Exception as e:
|
|
75
|
+
print("Exception when calling DevicesApi->apps_devices_api_activate_device: %s\n" % e)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
Name | Type | Description | Notes
|
|
84
|
+
------------- | ------------- | ------------- | -------------
|
|
85
|
+
**device_id** | **str**| |
|
|
86
|
+
|
|
87
|
+
### Return type
|
|
88
|
+
|
|
89
|
+
[**DeviceOut**](DeviceOut.md)
|
|
90
|
+
|
|
91
|
+
### Authorization
|
|
92
|
+
|
|
93
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
94
|
+
|
|
95
|
+
### HTTP request headers
|
|
96
|
+
|
|
97
|
+
- **Content-Type**: Not defined
|
|
98
|
+
- **Accept**: application/json
|
|
99
|
+
|
|
100
|
+
### HTTP response details
|
|
101
|
+
|
|
102
|
+
| Status code | Description | Response headers |
|
|
103
|
+
|-------------|-------------|------------------|
|
|
104
|
+
**200** | OK | - |
|
|
105
|
+
|
|
106
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
107
|
+
|
|
108
|
+
# **apps_devices_api_batch_update_locations**
|
|
109
|
+
> List[LocationUpdateOut] apps_devices_api_batch_update_locations(batch_location_update_in)
|
|
110
|
+
|
|
111
|
+
Batch Update Locations
|
|
112
|
+
|
|
113
|
+
Update locations for multiple devices in batch.
|
|
114
|
+
|
|
115
|
+
### Example
|
|
116
|
+
|
|
117
|
+
* Api Key Authentication (APIKeyBearer):
|
|
118
|
+
* Bearer Authentication (JWTBearer):
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
import spatialflow_generated
|
|
122
|
+
from spatialflow_generated.models.batch_location_update_in import BatchLocationUpdateIn
|
|
123
|
+
from spatialflow_generated.models.location_update_out import LocationUpdateOut
|
|
124
|
+
from spatialflow_generated.rest import ApiException
|
|
125
|
+
from pprint import pprint
|
|
126
|
+
|
|
127
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
128
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
129
|
+
configuration = spatialflow_generated.Configuration(
|
|
130
|
+
host = "https://api.spatialflow.io"
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
# The client must configure the authentication and authorization parameters
|
|
134
|
+
# in accordance with the API server security policy.
|
|
135
|
+
# Examples for each auth method are provided below, use the example that
|
|
136
|
+
# satisfies your auth use case.
|
|
137
|
+
|
|
138
|
+
# Configure API key authorization: APIKeyBearer
|
|
139
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
140
|
+
|
|
141
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
142
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
143
|
+
|
|
144
|
+
# Configure Bearer authorization: JWTBearer
|
|
145
|
+
configuration = spatialflow_generated.Configuration(
|
|
146
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
# Enter a context with an instance of the API client
|
|
150
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
151
|
+
# Create an instance of the API class
|
|
152
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
153
|
+
batch_location_update_in = [spatialflow_generated.BatchLocationUpdateIn()] # List[BatchLocationUpdateIn] |
|
|
154
|
+
|
|
155
|
+
try:
|
|
156
|
+
# Batch Update Locations
|
|
157
|
+
api_response = await api_instance.apps_devices_api_batch_update_locations(batch_location_update_in)
|
|
158
|
+
print("The response of DevicesApi->apps_devices_api_batch_update_locations:\n")
|
|
159
|
+
pprint(api_response)
|
|
160
|
+
except Exception as e:
|
|
161
|
+
print("Exception when calling DevicesApi->apps_devices_api_batch_update_locations: %s\n" % e)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Parameters
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
Name | Type | Description | Notes
|
|
170
|
+
------------- | ------------- | ------------- | -------------
|
|
171
|
+
**batch_location_update_in** | [**List[BatchLocationUpdateIn]**](BatchLocationUpdateIn.md)| |
|
|
172
|
+
|
|
173
|
+
### Return type
|
|
174
|
+
|
|
175
|
+
[**List[LocationUpdateOut]**](LocationUpdateOut.md)
|
|
176
|
+
|
|
177
|
+
### Authorization
|
|
178
|
+
|
|
179
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
180
|
+
|
|
181
|
+
### HTTP request headers
|
|
182
|
+
|
|
183
|
+
- **Content-Type**: application/json
|
|
184
|
+
- **Accept**: application/json
|
|
185
|
+
|
|
186
|
+
### HTTP response details
|
|
187
|
+
|
|
188
|
+
| Status code | Description | Response headers |
|
|
189
|
+
|-------------|-------------|------------------|
|
|
190
|
+
**200** | OK | - |
|
|
191
|
+
|
|
192
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
193
|
+
|
|
194
|
+
# **apps_devices_api_create_device**
|
|
195
|
+
> DeviceOut apps_devices_api_create_device(device_in)
|
|
196
|
+
|
|
197
|
+
Create Device
|
|
198
|
+
|
|
199
|
+
Register a new device for tracking.
|
|
200
|
+
|
|
201
|
+
### Example
|
|
202
|
+
|
|
203
|
+
* Api Key Authentication (APIKeyBearer):
|
|
204
|
+
* Bearer Authentication (JWTBearer):
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
import spatialflow_generated
|
|
208
|
+
from spatialflow_generated.models.device_in import DeviceIn
|
|
209
|
+
from spatialflow_generated.models.device_out import DeviceOut
|
|
210
|
+
from spatialflow_generated.rest import ApiException
|
|
211
|
+
from pprint import pprint
|
|
212
|
+
|
|
213
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
214
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
215
|
+
configuration = spatialflow_generated.Configuration(
|
|
216
|
+
host = "https://api.spatialflow.io"
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
# The client must configure the authentication and authorization parameters
|
|
220
|
+
# in accordance with the API server security policy.
|
|
221
|
+
# Examples for each auth method are provided below, use the example that
|
|
222
|
+
# satisfies your auth use case.
|
|
223
|
+
|
|
224
|
+
# Configure API key authorization: APIKeyBearer
|
|
225
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
226
|
+
|
|
227
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
228
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
229
|
+
|
|
230
|
+
# Configure Bearer authorization: JWTBearer
|
|
231
|
+
configuration = spatialflow_generated.Configuration(
|
|
232
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
# Enter a context with an instance of the API client
|
|
236
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
237
|
+
# Create an instance of the API class
|
|
238
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
239
|
+
device_in = spatialflow_generated.DeviceIn() # DeviceIn |
|
|
240
|
+
|
|
241
|
+
try:
|
|
242
|
+
# Create Device
|
|
243
|
+
api_response = await api_instance.apps_devices_api_create_device(device_in)
|
|
244
|
+
print("The response of DevicesApi->apps_devices_api_create_device:\n")
|
|
245
|
+
pprint(api_response)
|
|
246
|
+
except Exception as e:
|
|
247
|
+
print("Exception when calling DevicesApi->apps_devices_api_create_device: %s\n" % e)
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### Parameters
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
Name | Type | Description | Notes
|
|
256
|
+
------------- | ------------- | ------------- | -------------
|
|
257
|
+
**device_in** | [**DeviceIn**](DeviceIn.md)| |
|
|
258
|
+
|
|
259
|
+
### Return type
|
|
260
|
+
|
|
261
|
+
[**DeviceOut**](DeviceOut.md)
|
|
262
|
+
|
|
263
|
+
### Authorization
|
|
264
|
+
|
|
265
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
266
|
+
|
|
267
|
+
### HTTP request headers
|
|
268
|
+
|
|
269
|
+
- **Content-Type**: application/json
|
|
270
|
+
- **Accept**: application/json
|
|
271
|
+
|
|
272
|
+
### HTTP response details
|
|
273
|
+
|
|
274
|
+
| Status code | Description | Response headers |
|
|
275
|
+
|-------------|-------------|------------------|
|
|
276
|
+
**201** | Created | - |
|
|
277
|
+
**400** | Bad Request | - |
|
|
278
|
+
|
|
279
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
280
|
+
|
|
281
|
+
# **apps_devices_api_deactivate_device**
|
|
282
|
+
> DeviceOut apps_devices_api_deactivate_device(device_id)
|
|
283
|
+
|
|
284
|
+
Deactivate Device
|
|
285
|
+
|
|
286
|
+
Deactivate a device (stop tracking).
|
|
287
|
+
|
|
288
|
+
### Example
|
|
289
|
+
|
|
290
|
+
* Api Key Authentication (APIKeyBearer):
|
|
291
|
+
* Bearer Authentication (JWTBearer):
|
|
292
|
+
|
|
293
|
+
```python
|
|
294
|
+
import spatialflow_generated
|
|
295
|
+
from spatialflow_generated.models.device_out import DeviceOut
|
|
296
|
+
from spatialflow_generated.rest import ApiException
|
|
297
|
+
from pprint import pprint
|
|
298
|
+
|
|
299
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
300
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
301
|
+
configuration = spatialflow_generated.Configuration(
|
|
302
|
+
host = "https://api.spatialflow.io"
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
# The client must configure the authentication and authorization parameters
|
|
306
|
+
# in accordance with the API server security policy.
|
|
307
|
+
# Examples for each auth method are provided below, use the example that
|
|
308
|
+
# satisfies your auth use case.
|
|
309
|
+
|
|
310
|
+
# Configure API key authorization: APIKeyBearer
|
|
311
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
312
|
+
|
|
313
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
314
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
315
|
+
|
|
316
|
+
# Configure Bearer authorization: JWTBearer
|
|
317
|
+
configuration = spatialflow_generated.Configuration(
|
|
318
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
# Enter a context with an instance of the API client
|
|
322
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
323
|
+
# Create an instance of the API class
|
|
324
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
325
|
+
device_id = 'device_id_example' # str |
|
|
326
|
+
|
|
327
|
+
try:
|
|
328
|
+
# Deactivate Device
|
|
329
|
+
api_response = await api_instance.apps_devices_api_deactivate_device(device_id)
|
|
330
|
+
print("The response of DevicesApi->apps_devices_api_deactivate_device:\n")
|
|
331
|
+
pprint(api_response)
|
|
332
|
+
except Exception as e:
|
|
333
|
+
print("Exception when calling DevicesApi->apps_devices_api_deactivate_device: %s\n" % e)
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### Parameters
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
Name | Type | Description | Notes
|
|
342
|
+
------------- | ------------- | ------------- | -------------
|
|
343
|
+
**device_id** | **str**| |
|
|
344
|
+
|
|
345
|
+
### Return type
|
|
346
|
+
|
|
347
|
+
[**DeviceOut**](DeviceOut.md)
|
|
348
|
+
|
|
349
|
+
### Authorization
|
|
350
|
+
|
|
351
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
352
|
+
|
|
353
|
+
### HTTP request headers
|
|
354
|
+
|
|
355
|
+
- **Content-Type**: Not defined
|
|
356
|
+
- **Accept**: application/json
|
|
357
|
+
|
|
358
|
+
### HTTP response details
|
|
359
|
+
|
|
360
|
+
| Status code | Description | Response headers |
|
|
361
|
+
|-------------|-------------|------------------|
|
|
362
|
+
**200** | OK | - |
|
|
363
|
+
|
|
364
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
365
|
+
|
|
366
|
+
# **apps_devices_api_delete_device**
|
|
367
|
+
> apps_devices_api_delete_device(device_id)
|
|
368
|
+
|
|
369
|
+
Delete Device
|
|
370
|
+
|
|
371
|
+
Delete a device.
|
|
372
|
+
|
|
373
|
+
### Example
|
|
374
|
+
|
|
375
|
+
* Api Key Authentication (APIKeyBearer):
|
|
376
|
+
* Bearer Authentication (JWTBearer):
|
|
377
|
+
|
|
378
|
+
```python
|
|
379
|
+
import spatialflow_generated
|
|
380
|
+
from spatialflow_generated.rest import ApiException
|
|
381
|
+
from pprint import pprint
|
|
382
|
+
|
|
383
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
384
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
385
|
+
configuration = spatialflow_generated.Configuration(
|
|
386
|
+
host = "https://api.spatialflow.io"
|
|
387
|
+
)
|
|
388
|
+
|
|
389
|
+
# The client must configure the authentication and authorization parameters
|
|
390
|
+
# in accordance with the API server security policy.
|
|
391
|
+
# Examples for each auth method are provided below, use the example that
|
|
392
|
+
# satisfies your auth use case.
|
|
393
|
+
|
|
394
|
+
# Configure API key authorization: APIKeyBearer
|
|
395
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
396
|
+
|
|
397
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
398
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
399
|
+
|
|
400
|
+
# Configure Bearer authorization: JWTBearer
|
|
401
|
+
configuration = spatialflow_generated.Configuration(
|
|
402
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
# Enter a context with an instance of the API client
|
|
406
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
407
|
+
# Create an instance of the API class
|
|
408
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
409
|
+
device_id = 'device_id_example' # str |
|
|
410
|
+
|
|
411
|
+
try:
|
|
412
|
+
# Delete Device
|
|
413
|
+
await api_instance.apps_devices_api_delete_device(device_id)
|
|
414
|
+
except Exception as e:
|
|
415
|
+
print("Exception when calling DevicesApi->apps_devices_api_delete_device: %s\n" % e)
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
### Parameters
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
Name | Type | Description | Notes
|
|
424
|
+
------------- | ------------- | ------------- | -------------
|
|
425
|
+
**device_id** | **str**| |
|
|
426
|
+
|
|
427
|
+
### Return type
|
|
428
|
+
|
|
429
|
+
void (empty response body)
|
|
430
|
+
|
|
431
|
+
### Authorization
|
|
432
|
+
|
|
433
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
434
|
+
|
|
435
|
+
### HTTP request headers
|
|
436
|
+
|
|
437
|
+
- **Content-Type**: Not defined
|
|
438
|
+
- **Accept**: Not defined
|
|
439
|
+
|
|
440
|
+
### HTTP response details
|
|
441
|
+
|
|
442
|
+
| Status code | Description | Response headers |
|
|
443
|
+
|-------------|-------------|------------------|
|
|
444
|
+
**204** | No Content | - |
|
|
445
|
+
|
|
446
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
447
|
+
|
|
448
|
+
# **apps_devices_api_export_events_endpoint**
|
|
449
|
+
> Dict[str, object] apps_devices_api_export_events_endpoint(format, from_date=from_date, to_date=to_date, device_ids=device_ids, geofence_ids=geofence_ids, event_type=event_type)
|
|
450
|
+
|
|
451
|
+
Export Events Endpoint
|
|
452
|
+
|
|
453
|
+
Export events endpoint - delegates to api_export module
|
|
454
|
+
|
|
455
|
+
### Example
|
|
456
|
+
|
|
457
|
+
* Bearer Authentication (JWTBearer):
|
|
458
|
+
|
|
459
|
+
```python
|
|
460
|
+
import spatialflow_generated
|
|
461
|
+
from spatialflow_generated.rest import ApiException
|
|
462
|
+
from pprint import pprint
|
|
463
|
+
|
|
464
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
465
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
466
|
+
configuration = spatialflow_generated.Configuration(
|
|
467
|
+
host = "https://api.spatialflow.io"
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
# The client must configure the authentication and authorization parameters
|
|
471
|
+
# in accordance with the API server security policy.
|
|
472
|
+
# Examples for each auth method are provided below, use the example that
|
|
473
|
+
# satisfies your auth use case.
|
|
474
|
+
|
|
475
|
+
# Configure Bearer authorization: JWTBearer
|
|
476
|
+
configuration = spatialflow_generated.Configuration(
|
|
477
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
# Enter a context with an instance of the API client
|
|
481
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
482
|
+
# Create an instance of the API class
|
|
483
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
484
|
+
format = 'format_example' # str |
|
|
485
|
+
from_date = 'from_date_example' # str | (optional)
|
|
486
|
+
to_date = 'to_date_example' # str | (optional)
|
|
487
|
+
device_ids = 'device_ids_example' # str | (optional)
|
|
488
|
+
geofence_ids = 'geofence_ids_example' # str | (optional)
|
|
489
|
+
event_type = 'event_type_example' # str | (optional)
|
|
490
|
+
|
|
491
|
+
try:
|
|
492
|
+
# Export Events Endpoint
|
|
493
|
+
api_response = await api_instance.apps_devices_api_export_events_endpoint(format, from_date=from_date, to_date=to_date, device_ids=device_ids, geofence_ids=geofence_ids, event_type=event_type)
|
|
494
|
+
print("The response of DevicesApi->apps_devices_api_export_events_endpoint:\n")
|
|
495
|
+
pprint(api_response)
|
|
496
|
+
except Exception as e:
|
|
497
|
+
print("Exception when calling DevicesApi->apps_devices_api_export_events_endpoint: %s\n" % e)
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
### Parameters
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
Name | Type | Description | Notes
|
|
506
|
+
------------- | ------------- | ------------- | -------------
|
|
507
|
+
**format** | **str**| |
|
|
508
|
+
**from_date** | **str**| | [optional]
|
|
509
|
+
**to_date** | **str**| | [optional]
|
|
510
|
+
**device_ids** | **str**| | [optional]
|
|
511
|
+
**geofence_ids** | **str**| | [optional]
|
|
512
|
+
**event_type** | **str**| | [optional]
|
|
513
|
+
|
|
514
|
+
### Return type
|
|
515
|
+
|
|
516
|
+
**Dict[str, object]**
|
|
517
|
+
|
|
518
|
+
### Authorization
|
|
519
|
+
|
|
520
|
+
[JWTBearer](../README.md#JWTBearer)
|
|
521
|
+
|
|
522
|
+
### HTTP request headers
|
|
523
|
+
|
|
524
|
+
- **Content-Type**: Not defined
|
|
525
|
+
- **Accept**: application/json
|
|
526
|
+
|
|
527
|
+
### HTTP response details
|
|
528
|
+
|
|
529
|
+
| Status code | Description | Response headers |
|
|
530
|
+
|-------------|-------------|------------------|
|
|
531
|
+
**200** | OK | - |
|
|
532
|
+
**400** | Bad Request | - |
|
|
533
|
+
|
|
534
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
535
|
+
|
|
536
|
+
# **apps_devices_api_get_device**
|
|
537
|
+
> DeviceOut apps_devices_api_get_device(device_id)
|
|
538
|
+
|
|
539
|
+
Get Device
|
|
540
|
+
|
|
541
|
+
Get device details by device_id.
|
|
542
|
+
|
|
543
|
+
### Example
|
|
544
|
+
|
|
545
|
+
* Api Key Authentication (APIKeyBearer):
|
|
546
|
+
* Bearer Authentication (JWTBearer):
|
|
547
|
+
|
|
548
|
+
```python
|
|
549
|
+
import spatialflow_generated
|
|
550
|
+
from spatialflow_generated.models.device_out import DeviceOut
|
|
551
|
+
from spatialflow_generated.rest import ApiException
|
|
552
|
+
from pprint import pprint
|
|
553
|
+
|
|
554
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
555
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
556
|
+
configuration = spatialflow_generated.Configuration(
|
|
557
|
+
host = "https://api.spatialflow.io"
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
# The client must configure the authentication and authorization parameters
|
|
561
|
+
# in accordance with the API server security policy.
|
|
562
|
+
# Examples for each auth method are provided below, use the example that
|
|
563
|
+
# satisfies your auth use case.
|
|
564
|
+
|
|
565
|
+
# Configure API key authorization: APIKeyBearer
|
|
566
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
567
|
+
|
|
568
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
569
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
570
|
+
|
|
571
|
+
# Configure Bearer authorization: JWTBearer
|
|
572
|
+
configuration = spatialflow_generated.Configuration(
|
|
573
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
# Enter a context with an instance of the API client
|
|
577
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
578
|
+
# Create an instance of the API class
|
|
579
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
580
|
+
device_id = 'device_id_example' # str |
|
|
581
|
+
|
|
582
|
+
try:
|
|
583
|
+
# Get Device
|
|
584
|
+
api_response = await api_instance.apps_devices_api_get_device(device_id)
|
|
585
|
+
print("The response of DevicesApi->apps_devices_api_get_device:\n")
|
|
586
|
+
pprint(api_response)
|
|
587
|
+
except Exception as e:
|
|
588
|
+
print("Exception when calling DevicesApi->apps_devices_api_get_device: %s\n" % e)
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
### Parameters
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
Name | Type | Description | Notes
|
|
597
|
+
------------- | ------------- | ------------- | -------------
|
|
598
|
+
**device_id** | **str**| |
|
|
599
|
+
|
|
600
|
+
### Return type
|
|
601
|
+
|
|
602
|
+
[**DeviceOut**](DeviceOut.md)
|
|
603
|
+
|
|
604
|
+
### Authorization
|
|
605
|
+
|
|
606
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
607
|
+
|
|
608
|
+
### HTTP request headers
|
|
609
|
+
|
|
610
|
+
- **Content-Type**: Not defined
|
|
611
|
+
- **Accept**: application/json
|
|
612
|
+
|
|
613
|
+
### HTTP response details
|
|
614
|
+
|
|
615
|
+
| Status code | Description | Response headers |
|
|
616
|
+
|-------------|-------------|------------------|
|
|
617
|
+
**200** | OK | - |
|
|
618
|
+
|
|
619
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
620
|
+
|
|
621
|
+
# **apps_devices_api_get_device_events**
|
|
622
|
+
> List[Dict[str, object]] apps_devices_api_get_device_events(device_id, limit=limit, offset=offset)
|
|
623
|
+
|
|
624
|
+
Get Device Events
|
|
625
|
+
|
|
626
|
+
Get geofence events for a device.
|
|
627
|
+
|
|
628
|
+
### Example
|
|
629
|
+
|
|
630
|
+
* Api Key Authentication (APIKeyBearer):
|
|
631
|
+
* Bearer Authentication (JWTBearer):
|
|
632
|
+
|
|
633
|
+
```python
|
|
634
|
+
import spatialflow_generated
|
|
635
|
+
from spatialflow_generated.rest import ApiException
|
|
636
|
+
from pprint import pprint
|
|
637
|
+
|
|
638
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
639
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
640
|
+
configuration = spatialflow_generated.Configuration(
|
|
641
|
+
host = "https://api.spatialflow.io"
|
|
642
|
+
)
|
|
643
|
+
|
|
644
|
+
# The client must configure the authentication and authorization parameters
|
|
645
|
+
# in accordance with the API server security policy.
|
|
646
|
+
# Examples for each auth method are provided below, use the example that
|
|
647
|
+
# satisfies your auth use case.
|
|
648
|
+
|
|
649
|
+
# Configure API key authorization: APIKeyBearer
|
|
650
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
651
|
+
|
|
652
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
653
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
654
|
+
|
|
655
|
+
# Configure Bearer authorization: JWTBearer
|
|
656
|
+
configuration = spatialflow_generated.Configuration(
|
|
657
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
# Enter a context with an instance of the API client
|
|
661
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
662
|
+
# Create an instance of the API class
|
|
663
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
664
|
+
device_id = 'device_id_example' # str |
|
|
665
|
+
limit = 50 # int | (optional) (default to 50)
|
|
666
|
+
offset = 0 # int | (optional) (default to 0)
|
|
667
|
+
|
|
668
|
+
try:
|
|
669
|
+
# Get Device Events
|
|
670
|
+
api_response = await api_instance.apps_devices_api_get_device_events(device_id, limit=limit, offset=offset)
|
|
671
|
+
print("The response of DevicesApi->apps_devices_api_get_device_events:\n")
|
|
672
|
+
pprint(api_response)
|
|
673
|
+
except Exception as e:
|
|
674
|
+
print("Exception when calling DevicesApi->apps_devices_api_get_device_events: %s\n" % e)
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
### Parameters
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
Name | Type | Description | Notes
|
|
683
|
+
------------- | ------------- | ------------- | -------------
|
|
684
|
+
**device_id** | **str**| |
|
|
685
|
+
**limit** | **int**| | [optional] [default to 50]
|
|
686
|
+
**offset** | **int**| | [optional] [default to 0]
|
|
687
|
+
|
|
688
|
+
### Return type
|
|
689
|
+
|
|
690
|
+
**List[Dict[str, object]]**
|
|
691
|
+
|
|
692
|
+
### Authorization
|
|
693
|
+
|
|
694
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
695
|
+
|
|
696
|
+
### HTTP request headers
|
|
697
|
+
|
|
698
|
+
- **Content-Type**: Not defined
|
|
699
|
+
- **Accept**: application/json
|
|
700
|
+
|
|
701
|
+
### HTTP response details
|
|
702
|
+
|
|
703
|
+
| Status code | Description | Response headers |
|
|
704
|
+
|-------------|-------------|------------------|
|
|
705
|
+
**200** | OK | - |
|
|
706
|
+
|
|
707
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
708
|
+
|
|
709
|
+
# **apps_devices_api_get_import_job**
|
|
710
|
+
> LocationImportResponse apps_devices_api_get_import_job(job_id)
|
|
711
|
+
|
|
712
|
+
Get Import Job
|
|
713
|
+
|
|
714
|
+
Get status of a location import job. Returns the current status, progress, and error details of an import job. Poll this endpoint to track job execution. **Authentication:** JWT token required **Authorization:** Must be in the same organization as the job **Job Statuses:** - `pending`: Job queued, not yet started - `processing`: Job is parsing CSV and queueing locations - `completed`: Job finished successfully (locations queued for processing) - `failed`: Job encountered an error (see error_message) **Error Handling:** If error_rate > 1%, the job will fail with first 100 errors listed. **PRD Reference:** §3.1.2 CSV Import Schema
|
|
715
|
+
|
|
716
|
+
### Example
|
|
717
|
+
|
|
718
|
+
* Bearer Authentication (JWTBearer):
|
|
719
|
+
|
|
720
|
+
```python
|
|
721
|
+
import spatialflow_generated
|
|
722
|
+
from spatialflow_generated.models.location_import_response import LocationImportResponse
|
|
723
|
+
from spatialflow_generated.rest import ApiException
|
|
724
|
+
from pprint import pprint
|
|
725
|
+
|
|
726
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
727
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
728
|
+
configuration = spatialflow_generated.Configuration(
|
|
729
|
+
host = "https://api.spatialflow.io"
|
|
730
|
+
)
|
|
731
|
+
|
|
732
|
+
# The client must configure the authentication and authorization parameters
|
|
733
|
+
# in accordance with the API server security policy.
|
|
734
|
+
# Examples for each auth method are provided below, use the example that
|
|
735
|
+
# satisfies your auth use case.
|
|
736
|
+
|
|
737
|
+
# Configure Bearer authorization: JWTBearer
|
|
738
|
+
configuration = spatialflow_generated.Configuration(
|
|
739
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
# Enter a context with an instance of the API client
|
|
743
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
744
|
+
# Create an instance of the API class
|
|
745
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
746
|
+
job_id = 'job_id_example' # str |
|
|
747
|
+
|
|
748
|
+
try:
|
|
749
|
+
# Get Import Job
|
|
750
|
+
api_response = await api_instance.apps_devices_api_get_import_job(job_id)
|
|
751
|
+
print("The response of DevicesApi->apps_devices_api_get_import_job:\n")
|
|
752
|
+
pprint(api_response)
|
|
753
|
+
except Exception as e:
|
|
754
|
+
print("Exception when calling DevicesApi->apps_devices_api_get_import_job: %s\n" % e)
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
### Parameters
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
Name | Type | Description | Notes
|
|
763
|
+
------------- | ------------- | ------------- | -------------
|
|
764
|
+
**job_id** | **str**| |
|
|
765
|
+
|
|
766
|
+
### Return type
|
|
767
|
+
|
|
768
|
+
[**LocationImportResponse**](LocationImportResponse.md)
|
|
769
|
+
|
|
770
|
+
### Authorization
|
|
771
|
+
|
|
772
|
+
[JWTBearer](../README.md#JWTBearer)
|
|
773
|
+
|
|
774
|
+
### HTTP request headers
|
|
775
|
+
|
|
776
|
+
- **Content-Type**: Not defined
|
|
777
|
+
- **Accept**: application/json
|
|
778
|
+
|
|
779
|
+
### HTTP response details
|
|
780
|
+
|
|
781
|
+
| Status code | Description | Response headers |
|
|
782
|
+
|-------------|-------------|------------------|
|
|
783
|
+
**200** | OK | - |
|
|
784
|
+
**404** | Not Found | - |
|
|
785
|
+
|
|
786
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
787
|
+
|
|
788
|
+
# **apps_devices_api_get_location_stats**
|
|
789
|
+
> Dict[str, object] apps_devices_api_get_location_stats()
|
|
790
|
+
|
|
791
|
+
Get Location Stats
|
|
792
|
+
|
|
793
|
+
Get location activity statistics for the user.
|
|
794
|
+
|
|
795
|
+
### Example
|
|
796
|
+
|
|
797
|
+
* Api Key Authentication (APIKeyBearer):
|
|
798
|
+
* Bearer Authentication (JWTBearer):
|
|
799
|
+
|
|
800
|
+
```python
|
|
801
|
+
import spatialflow_generated
|
|
802
|
+
from spatialflow_generated.rest import ApiException
|
|
803
|
+
from pprint import pprint
|
|
804
|
+
|
|
805
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
806
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
807
|
+
configuration = spatialflow_generated.Configuration(
|
|
808
|
+
host = "https://api.spatialflow.io"
|
|
809
|
+
)
|
|
810
|
+
|
|
811
|
+
# The client must configure the authentication and authorization parameters
|
|
812
|
+
# in accordance with the API server security policy.
|
|
813
|
+
# Examples for each auth method are provided below, use the example that
|
|
814
|
+
# satisfies your auth use case.
|
|
815
|
+
|
|
816
|
+
# Configure API key authorization: APIKeyBearer
|
|
817
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
818
|
+
|
|
819
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
820
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
821
|
+
|
|
822
|
+
# Configure Bearer authorization: JWTBearer
|
|
823
|
+
configuration = spatialflow_generated.Configuration(
|
|
824
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
825
|
+
)
|
|
826
|
+
|
|
827
|
+
# Enter a context with an instance of the API client
|
|
828
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
829
|
+
# Create an instance of the API class
|
|
830
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
831
|
+
|
|
832
|
+
try:
|
|
833
|
+
# Get Location Stats
|
|
834
|
+
api_response = await api_instance.apps_devices_api_get_location_stats()
|
|
835
|
+
print("The response of DevicesApi->apps_devices_api_get_location_stats:\n")
|
|
836
|
+
pprint(api_response)
|
|
837
|
+
except Exception as e:
|
|
838
|
+
print("Exception when calling DevicesApi->apps_devices_api_get_location_stats: %s\n" % e)
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
### Parameters
|
|
844
|
+
|
|
845
|
+
This endpoint does not need any parameter.
|
|
846
|
+
|
|
847
|
+
### Return type
|
|
848
|
+
|
|
849
|
+
**Dict[str, object]**
|
|
850
|
+
|
|
851
|
+
### Authorization
|
|
852
|
+
|
|
853
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
854
|
+
|
|
855
|
+
### HTTP request headers
|
|
856
|
+
|
|
857
|
+
- **Content-Type**: Not defined
|
|
858
|
+
- **Accept**: application/json
|
|
859
|
+
|
|
860
|
+
### HTTP response details
|
|
861
|
+
|
|
862
|
+
| Status code | Description | Response headers |
|
|
863
|
+
|-------------|-------------|------------------|
|
|
864
|
+
**200** | OK | - |
|
|
865
|
+
|
|
866
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
867
|
+
|
|
868
|
+
# **apps_devices_api_get_recent_events**
|
|
869
|
+
> List[Dict[str, object]] apps_devices_api_get_recent_events(limit=limit, offset=offset, device_id=device_id, geofence_id=geofence_id, event_type=event_type)
|
|
870
|
+
|
|
871
|
+
Get Recent Events
|
|
872
|
+
|
|
873
|
+
Get recent geofence events across all user's devices.
|
|
874
|
+
|
|
875
|
+
### Example
|
|
876
|
+
|
|
877
|
+
* Api Key Authentication (APIKeyBearer):
|
|
878
|
+
* Bearer Authentication (JWTBearer):
|
|
879
|
+
|
|
880
|
+
```python
|
|
881
|
+
import spatialflow_generated
|
|
882
|
+
from spatialflow_generated.rest import ApiException
|
|
883
|
+
from pprint import pprint
|
|
884
|
+
|
|
885
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
886
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
887
|
+
configuration = spatialflow_generated.Configuration(
|
|
888
|
+
host = "https://api.spatialflow.io"
|
|
889
|
+
)
|
|
890
|
+
|
|
891
|
+
# The client must configure the authentication and authorization parameters
|
|
892
|
+
# in accordance with the API server security policy.
|
|
893
|
+
# Examples for each auth method are provided below, use the example that
|
|
894
|
+
# satisfies your auth use case.
|
|
895
|
+
|
|
896
|
+
# Configure API key authorization: APIKeyBearer
|
|
897
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
898
|
+
|
|
899
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
900
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
901
|
+
|
|
902
|
+
# Configure Bearer authorization: JWTBearer
|
|
903
|
+
configuration = spatialflow_generated.Configuration(
|
|
904
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
905
|
+
)
|
|
906
|
+
|
|
907
|
+
# Enter a context with an instance of the API client
|
|
908
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
909
|
+
# Create an instance of the API class
|
|
910
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
911
|
+
limit = 50 # int | (optional) (default to 50)
|
|
912
|
+
offset = 0 # int | (optional) (default to 0)
|
|
913
|
+
device_id = 'device_id_example' # str | (optional)
|
|
914
|
+
geofence_id = 'geofence_id_example' # str | (optional)
|
|
915
|
+
event_type = 'event_type_example' # str | (optional)
|
|
916
|
+
|
|
917
|
+
try:
|
|
918
|
+
# Get Recent Events
|
|
919
|
+
api_response = await api_instance.apps_devices_api_get_recent_events(limit=limit, offset=offset, device_id=device_id, geofence_id=geofence_id, event_type=event_type)
|
|
920
|
+
print("The response of DevicesApi->apps_devices_api_get_recent_events:\n")
|
|
921
|
+
pprint(api_response)
|
|
922
|
+
except Exception as e:
|
|
923
|
+
print("Exception when calling DevicesApi->apps_devices_api_get_recent_events: %s\n" % e)
|
|
924
|
+
```
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
### Parameters
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
Name | Type | Description | Notes
|
|
932
|
+
------------- | ------------- | ------------- | -------------
|
|
933
|
+
**limit** | **int**| | [optional] [default to 50]
|
|
934
|
+
**offset** | **int**| | [optional] [default to 0]
|
|
935
|
+
**device_id** | **str**| | [optional]
|
|
936
|
+
**geofence_id** | **str**| | [optional]
|
|
937
|
+
**event_type** | **str**| | [optional]
|
|
938
|
+
|
|
939
|
+
### Return type
|
|
940
|
+
|
|
941
|
+
**List[Dict[str, object]]**
|
|
942
|
+
|
|
943
|
+
### Authorization
|
|
944
|
+
|
|
945
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
946
|
+
|
|
947
|
+
### HTTP request headers
|
|
948
|
+
|
|
949
|
+
- **Content-Type**: Not defined
|
|
950
|
+
- **Accept**: application/json
|
|
951
|
+
|
|
952
|
+
### HTTP response details
|
|
953
|
+
|
|
954
|
+
| Status code | Description | Response headers |
|
|
955
|
+
|-------------|-------------|------------------|
|
|
956
|
+
**200** | OK | - |
|
|
957
|
+
|
|
958
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
959
|
+
|
|
960
|
+
# **apps_devices_api_list_devices**
|
|
961
|
+
> List[DeviceOut] apps_devices_api_list_devices(is_active=is_active)
|
|
962
|
+
|
|
963
|
+
List Devices
|
|
964
|
+
|
|
965
|
+
List user's devices.
|
|
966
|
+
|
|
967
|
+
### Example
|
|
968
|
+
|
|
969
|
+
* Api Key Authentication (APIKeyBearer):
|
|
970
|
+
* Bearer Authentication (JWTBearer):
|
|
971
|
+
|
|
972
|
+
```python
|
|
973
|
+
import spatialflow_generated
|
|
974
|
+
from spatialflow_generated.models.device_out import DeviceOut
|
|
975
|
+
from spatialflow_generated.rest import ApiException
|
|
976
|
+
from pprint import pprint
|
|
977
|
+
|
|
978
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
979
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
980
|
+
configuration = spatialflow_generated.Configuration(
|
|
981
|
+
host = "https://api.spatialflow.io"
|
|
982
|
+
)
|
|
983
|
+
|
|
984
|
+
# The client must configure the authentication and authorization parameters
|
|
985
|
+
# in accordance with the API server security policy.
|
|
986
|
+
# Examples for each auth method are provided below, use the example that
|
|
987
|
+
# satisfies your auth use case.
|
|
988
|
+
|
|
989
|
+
# Configure API key authorization: APIKeyBearer
|
|
990
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
991
|
+
|
|
992
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
993
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
994
|
+
|
|
995
|
+
# Configure Bearer authorization: JWTBearer
|
|
996
|
+
configuration = spatialflow_generated.Configuration(
|
|
997
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
998
|
+
)
|
|
999
|
+
|
|
1000
|
+
# Enter a context with an instance of the API client
|
|
1001
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
1002
|
+
# Create an instance of the API class
|
|
1003
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
1004
|
+
is_active = True # bool | (optional)
|
|
1005
|
+
|
|
1006
|
+
try:
|
|
1007
|
+
# List Devices
|
|
1008
|
+
api_response = await api_instance.apps_devices_api_list_devices(is_active=is_active)
|
|
1009
|
+
print("The response of DevicesApi->apps_devices_api_list_devices:\n")
|
|
1010
|
+
pprint(api_response)
|
|
1011
|
+
except Exception as e:
|
|
1012
|
+
print("Exception when calling DevicesApi->apps_devices_api_list_devices: %s\n" % e)
|
|
1013
|
+
```
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
### Parameters
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
Name | Type | Description | Notes
|
|
1021
|
+
------------- | ------------- | ------------- | -------------
|
|
1022
|
+
**is_active** | **bool**| | [optional]
|
|
1023
|
+
|
|
1024
|
+
### Return type
|
|
1025
|
+
|
|
1026
|
+
[**List[DeviceOut]**](DeviceOut.md)
|
|
1027
|
+
|
|
1028
|
+
### Authorization
|
|
1029
|
+
|
|
1030
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
1031
|
+
|
|
1032
|
+
### HTTP request headers
|
|
1033
|
+
|
|
1034
|
+
- **Content-Type**: Not defined
|
|
1035
|
+
- **Accept**: application/json
|
|
1036
|
+
|
|
1037
|
+
### HTTP response details
|
|
1038
|
+
|
|
1039
|
+
| Status code | Description | Response headers |
|
|
1040
|
+
|-------------|-------------|------------------|
|
|
1041
|
+
**200** | OK | - |
|
|
1042
|
+
|
|
1043
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1044
|
+
|
|
1045
|
+
# **apps_devices_api_update_device_location**
|
|
1046
|
+
> LocationUpdateOut apps_devices_api_update_device_location(device_id, location_update_in)
|
|
1047
|
+
|
|
1048
|
+
Update Device Location
|
|
1049
|
+
|
|
1050
|
+
Update device location and trigger geofence events.
|
|
1051
|
+
|
|
1052
|
+
### Example
|
|
1053
|
+
|
|
1054
|
+
* Api Key Authentication (APIKeyBearer):
|
|
1055
|
+
* Bearer Authentication (JWTBearer):
|
|
1056
|
+
|
|
1057
|
+
```python
|
|
1058
|
+
import spatialflow_generated
|
|
1059
|
+
from spatialflow_generated.models.location_update_in import LocationUpdateIn
|
|
1060
|
+
from spatialflow_generated.models.location_update_out import LocationUpdateOut
|
|
1061
|
+
from spatialflow_generated.rest import ApiException
|
|
1062
|
+
from pprint import pprint
|
|
1063
|
+
|
|
1064
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
1065
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1066
|
+
configuration = spatialflow_generated.Configuration(
|
|
1067
|
+
host = "https://api.spatialflow.io"
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
# The client must configure the authentication and authorization parameters
|
|
1071
|
+
# in accordance with the API server security policy.
|
|
1072
|
+
# Examples for each auth method are provided below, use the example that
|
|
1073
|
+
# satisfies your auth use case.
|
|
1074
|
+
|
|
1075
|
+
# Configure API key authorization: APIKeyBearer
|
|
1076
|
+
configuration.api_key['APIKeyBearer'] = os.environ["API_KEY"]
|
|
1077
|
+
|
|
1078
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1079
|
+
# configuration.api_key_prefix['APIKeyBearer'] = 'Bearer'
|
|
1080
|
+
|
|
1081
|
+
# Configure Bearer authorization: JWTBearer
|
|
1082
|
+
configuration = spatialflow_generated.Configuration(
|
|
1083
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
# Enter a context with an instance of the API client
|
|
1087
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
1088
|
+
# Create an instance of the API class
|
|
1089
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
1090
|
+
device_id = 'device_id_example' # str |
|
|
1091
|
+
location_update_in = spatialflow_generated.LocationUpdateIn() # LocationUpdateIn |
|
|
1092
|
+
|
|
1093
|
+
try:
|
|
1094
|
+
# Update Device Location
|
|
1095
|
+
api_response = await api_instance.apps_devices_api_update_device_location(device_id, location_update_in)
|
|
1096
|
+
print("The response of DevicesApi->apps_devices_api_update_device_location:\n")
|
|
1097
|
+
pprint(api_response)
|
|
1098
|
+
except Exception as e:
|
|
1099
|
+
print("Exception when calling DevicesApi->apps_devices_api_update_device_location: %s\n" % e)
|
|
1100
|
+
```
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
### Parameters
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
Name | Type | Description | Notes
|
|
1108
|
+
------------- | ------------- | ------------- | -------------
|
|
1109
|
+
**device_id** | **str**| |
|
|
1110
|
+
**location_update_in** | [**LocationUpdateIn**](LocationUpdateIn.md)| |
|
|
1111
|
+
|
|
1112
|
+
### Return type
|
|
1113
|
+
|
|
1114
|
+
[**LocationUpdateOut**](LocationUpdateOut.md)
|
|
1115
|
+
|
|
1116
|
+
### Authorization
|
|
1117
|
+
|
|
1118
|
+
[APIKeyBearer](../README.md#APIKeyBearer), [JWTBearer](../README.md#JWTBearer)
|
|
1119
|
+
|
|
1120
|
+
### HTTP request headers
|
|
1121
|
+
|
|
1122
|
+
- **Content-Type**: application/json
|
|
1123
|
+
- **Accept**: application/json
|
|
1124
|
+
|
|
1125
|
+
### HTTP response details
|
|
1126
|
+
|
|
1127
|
+
| Status code | Description | Response headers |
|
|
1128
|
+
|-------------|-------------|------------------|
|
|
1129
|
+
**200** | OK | - |
|
|
1130
|
+
**400** | Bad Request | - |
|
|
1131
|
+
**500** | Internal Server Error | - |
|
|
1132
|
+
|
|
1133
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1134
|
+
|
|
1135
|
+
# **apps_devices_api_upload_csv_import**
|
|
1136
|
+
> LocationImportResponse apps_devices_api_upload_csv_import(file)
|
|
1137
|
+
|
|
1138
|
+
Upload Csv Import
|
|
1139
|
+
|
|
1140
|
+
Upload CSV file for bulk location import. This endpoint accepts a CSV file with location data and queues it for async processing. Useful for customer migrations or bulk historical data imports. **Authentication:** JWT token required **Max File Size:** 50 MB **Max Rows:** 500,000 **CSV Format:** ```csv device_id,ts,lat,lon,accuracy_m,speed_mps,heading_deg,meta_driver truck-005,2025-10-01T14:12:03Z,42.651,-73.756,9.2,12.4,180,alice truck-006,2025-10-01T14:13:00Z,42.652,-73.757,8.5,15.0,175,bob ``` **Required Columns:** - `device_id`: Unique device identifier - `ts`: ISO-8601 timestamp - `lat`: Latitude (-90 to 90) - `lon`: Longitude (-180 to 180) **Optional Columns:** - `accuracy_m`: GPS accuracy in meters - `speed_mps`: Speed in meters per second - `heading_deg`: Heading in degrees (0-359) - `meta_*`: Metadata columns (e.g., meta_driver, meta_cargo) **Validation Rules:** - Rejects entire import if >1% rows are invalid - Rejects timestamps > 5 minutes in the future - Warns for timestamps > 30 days old **PRD Reference:** §3.1.2 CSV Import Schema **Roadmap:** Phase 2, Task 2.2
|
|
1141
|
+
|
|
1142
|
+
### Example
|
|
1143
|
+
|
|
1144
|
+
* Bearer Authentication (JWTBearer):
|
|
1145
|
+
|
|
1146
|
+
```python
|
|
1147
|
+
import spatialflow_generated
|
|
1148
|
+
from spatialflow_generated.models.location_import_response import LocationImportResponse
|
|
1149
|
+
from spatialflow_generated.rest import ApiException
|
|
1150
|
+
from pprint import pprint
|
|
1151
|
+
|
|
1152
|
+
# Defining the host is optional and defaults to https://api.spatialflow.io
|
|
1153
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1154
|
+
configuration = spatialflow_generated.Configuration(
|
|
1155
|
+
host = "https://api.spatialflow.io"
|
|
1156
|
+
)
|
|
1157
|
+
|
|
1158
|
+
# The client must configure the authentication and authorization parameters
|
|
1159
|
+
# in accordance with the API server security policy.
|
|
1160
|
+
# Examples for each auth method are provided below, use the example that
|
|
1161
|
+
# satisfies your auth use case.
|
|
1162
|
+
|
|
1163
|
+
# Configure Bearer authorization: JWTBearer
|
|
1164
|
+
configuration = spatialflow_generated.Configuration(
|
|
1165
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
1166
|
+
)
|
|
1167
|
+
|
|
1168
|
+
# Enter a context with an instance of the API client
|
|
1169
|
+
async with spatialflow_generated.ApiClient(configuration) as api_client:
|
|
1170
|
+
# Create an instance of the API class
|
|
1171
|
+
api_instance = spatialflow_generated.DevicesApi(api_client)
|
|
1172
|
+
file = None # bytearray |
|
|
1173
|
+
|
|
1174
|
+
try:
|
|
1175
|
+
# Upload Csv Import
|
|
1176
|
+
api_response = await api_instance.apps_devices_api_upload_csv_import(file)
|
|
1177
|
+
print("The response of DevicesApi->apps_devices_api_upload_csv_import:\n")
|
|
1178
|
+
pprint(api_response)
|
|
1179
|
+
except Exception as e:
|
|
1180
|
+
print("Exception when calling DevicesApi->apps_devices_api_upload_csv_import: %s\n" % e)
|
|
1181
|
+
```
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
### Parameters
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
Name | Type | Description | Notes
|
|
1189
|
+
------------- | ------------- | ------------- | -------------
|
|
1190
|
+
**file** | **bytearray**| |
|
|
1191
|
+
|
|
1192
|
+
### Return type
|
|
1193
|
+
|
|
1194
|
+
[**LocationImportResponse**](LocationImportResponse.md)
|
|
1195
|
+
|
|
1196
|
+
### Authorization
|
|
1197
|
+
|
|
1198
|
+
[JWTBearer](../README.md#JWTBearer)
|
|
1199
|
+
|
|
1200
|
+
### HTTP request headers
|
|
1201
|
+
|
|
1202
|
+
- **Content-Type**: multipart/form-data
|
|
1203
|
+
- **Accept**: application/json
|
|
1204
|
+
|
|
1205
|
+
### HTTP response details
|
|
1206
|
+
|
|
1207
|
+
| Status code | Description | Response headers |
|
|
1208
|
+
|-------------|-------------|------------------|
|
|
1209
|
+
**200** | OK | - |
|
|
1210
|
+
**400** | Bad Request | - |
|
|
1211
|
+
|
|
1212
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1213
|
+
|