{"openapi":"3.1.0","info":{"title":"Bambuddy","description":"Archive and manage Bambu Lab 3MF files","version":"1.3.3b1"},"paths":{"/api/v1/auth/setup":{"post":{"tags":["authentication"],"summary":"Setup Auth","description":"First-time setup: enable/disable authentication and create admin user.","operationId":"setup_auth_api_v1_auth_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/status":{"get":{"tags":["authentication"],"summary":"Get Auth Status","description":"Get authentication status (public endpoint).","operationId":"get_auth_status_api_v1_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/disable":{"post":{"tags":["authentication"],"summary":"Disable Auth","description":"Disable authentication (admin only).","operationId":"disable_auth_api_v1_auth_disable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disable Auth Api V1 Auth Disable Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/login":{"post":{"tags":["authentication"],"summary":"Login","description":"Login and get access token.\n\nSupports username or email-based login. Username lookup is case-insensitive.\n\nWhen 2FA is enabled for the user the response contains ``requires_2fa=True``\nand a short-lived ``pre_auth_token`` instead of the final JWT.  The client\nmust then call ``POST /auth/2fa/verify`` (or first ``POST /auth/2fa/email/send``\nto trigger an email OTP) to obtain the real access token.","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/ws-token":{"post":{"tags":["authentication"],"summary":"Mint Websocket Token","description":"Mint a short-lived token for ``/api/v1/ws`` connections (GHSA-r2qv follow-up).\n\nThe WebSocket endpoint cannot read ``Authorization`` headers from\nbrowsers (the WebSocket handshake does not let JS attach custom\nheaders), so we use the same opaque-token-in-query-param pattern\nas ``/camera/stream`` — the token is minted here behind the standard\npermission gate, then appended as ``?token=<value>`` on the\n``ws://...`` URL. The WebSocket endpoint validates it *before*\ncalling ``websocket.accept()``.\n\nReturns ``{\"token\": <opaque string>}``. The token is valid for 60\nminutes; the SPA refreshes it on reconnect if expired. API keys can\nmint tokens too — their scope flags decide whether ``WEBSOCKET_CONNECT``\npasses via the standard allowlist (``can_read_status`` covers it).","operationId":"mint_websocket_token_api_v1_auth_ws_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/media-token":{"post":{"tags":["authentication"],"summary":"Mint Media Token","description":"Mint a short-lived token for ``<img>`` / ``<video>`` media routes (#3025).\n\nThumbnails, plate previews, timelapses, cover images and sidebar icons are\nloaded by the browser as element ``src`` URLs, which cannot carry an\n``Authorization`` header. Those routes used to accept the *camera stream*\ntoken instead, which made ``camera:view`` a prerequisite for seeing a\nlibrary thumbnail -- on a home install, handing someone the live feed of\nthe room the printer is in just so their own files render.\n\nSo this mints behind plain authentication: any signed-in user may ask, and\nwhat the token can actually reach is decided per request by the same\npermission and ownership rules as the resource's other routes. It is not a\ncamera credential and does not open the camera routes.\n\nReturns ``{\"token\": <opaque string>}``, valid for 60 minutes.","operationId":"mint_media_token_api_v1_auth_media_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["authentication"],"summary":"Get Current User Info","description":"Get current user information.\n\nAccepts JWT tokens (via Authorization: Bearer header) and API keys\n(via X-API-Key header or Authorization: Bearer bb_xxx). API keys report\ntheir owner's identity and the permissions the key can actually exercise\n-- see ``_api_key_to_user_response``.","operationId":"get_current_user_info_api_v1_auth_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["authentication"],"summary":"Logout","description":"Logout — revokes the current JWT so it cannot be reused after logout.","operationId":"logout_api_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/smtp/test":{"post":{"tags":["authentication"],"summary":"Test Smtp Connection","description":"Test SMTP connection using the form's settings, else the saved ones (admin only when auth enabled).\n\nAn empty password keeps the saved one, which only goes to the server it\nwas entered for.","operationId":"test_smtp_connection_api_v1_auth_smtp_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSMTPRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSMTPResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/smtp":{"get":{"tags":["authentication"],"summary":"Get Smtp Config","description":"Get SMTP settings (admin only when auth enabled). Password is not returned.","operationId":"get_smtp_config_api_v1_auth_smtp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SMTPSettings"},{"type":"null"}],"title":"Response Get Smtp Config Api V1 Auth Smtp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authentication"],"summary":"Save Smtp Config","description":"Save SMTP settings (admin only when auth enabled).\n\nAn empty password keeps the stored one, which only goes to the server it\nwas entered for: a changed host, port or security needs it entered again\n(without authentication, the stored password is dropped instead).","operationId":"save_smtp_config_api_v1_auth_smtp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SMTPSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Smtp Config Api V1 Auth Smtp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/advanced-auth/enable":{"post":{"tags":["authentication"],"summary":"Enable Advanced Auth","description":"Enable advanced authentication (admin only).\n\nRequires SMTP settings to be configured and tested first.","operationId":"enable_advanced_auth_api_v1_auth_advanced_auth_enable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Enable Advanced Auth Api V1 Auth Advanced Auth Enable Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/advanced-auth/disable":{"post":{"tags":["authentication"],"summary":"Disable Advanced Auth","description":"Disable advanced authentication (admin only).","operationId":"disable_advanced_auth_api_v1_auth_advanced_auth_disable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disable Advanced Auth Api V1 Auth Advanced Auth Disable Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/advanced-auth/status":{"get":{"tags":["authentication"],"summary":"Get Advanced Auth Status","description":"Get advanced authentication status.\n\nSurfaces ``local_login_enabled`` and ``autologin_provider_id`` (#1589)\nso the LoginPage can decide whether to render the credentials form and\nwhether to redirect unauthenticated visitors directly to an SSO\nprovider, in a single query. ``BAMBUDDY_LOCAL_LOGIN=true`` flips the\nreported value back to True so the recovery path is visible.","operationId":"get_advanced_auth_status_api_v1_auth_advanced_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/forgot-password":{"post":{"tags":["authentication"],"summary":"Forgot Password","description":"Request password reset via email (advanced auth only).\n\nH-6: Issues a short-lived single-use reset token and emails the user a\nsecure link instead of a plaintext temporary password.  The new password is\nset only when the user clicks the link and POSTs to /forgot-password/confirm.","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/forgot-password/confirm":{"post":{"tags":["authentication"],"summary":"Forgot Password Confirm","description":"Complete a password reset by supplying the token from the reset email.\n\nH-6: Atomically consumes the single-use token (DELETE…RETURNING) and sets\nthe new password.  Expired or already-used tokens are silently rejected with\nthe same response to prevent oracle attacks.","operationId":"forgot_password_confirm_api_v1_auth_forgot_password_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["authentication"],"summary":"Reset User Password","description":"Reset a user's password and send them an email (admin only, advanced auth only).","operationId":"reset_user_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/ldap/test":{"post":{"tags":["authentication"],"summary":"Test Ldap","description":"Test the LDAP connection with the form's settings over the saved ones (admin only when auth enabled).\n\nWorks while LDAP is still off. An empty bind password keeps the saved one,\nwhich only goes to the server it was entered for.","operationId":"test_ldap_api_v1_auth_ldap_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LDAPTestRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/ldap/status":{"get":{"tags":["authentication"],"summary":"Get Ldap Status","description":"Get LDAP authentication status.","operationId":"get_ldap_status_api_v1_auth_ldap_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/ldap/search":{"get":{"tags":["authentication"],"summary":"Search Ldap Directory","description":"Search the LDAP directory for users matching `q`.\n\nReturns up to 25 candidates. The query is matched (case-insensitively, with\nwildcards on both sides) against sAMAccountName, uid, mail, displayName,\nand cn — covering both AD and OpenLDAP layouts. Each result is annotated\nwith `already_provisioned` so the UI can grey out usernames that already\nexist as BamBuddy users.\n\nRequires USERS_CREATE permission. Minimum query length is 2 characters.","operationId":"search_ldap_directory_api_v1_auth_ldap_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LDAPSearchResultResponse"},"title":"Response Search Ldap Directory Api V1 Auth Ldap Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/ldap/provision":{"post":{"tags":["authentication"],"summary":"Provision Ldap User","description":"Provision a BamBuddy user from an existing LDAP directory entry.\n\nRe-resolves the username via the service-account bind (rather than trusting\nthe request body) so group mappings and email come from a fresh LDAP read.\nApplies the same group-mapping / default-group logic as the auto-provision\nlogin path (`_provision_ldap_user`), so behavior stays identical regardless\nof whether the user was created here or on first login.\n\nAdmin-only with USERS_CREATE, like users.create_user.","operationId":"provision_ldap_user_api_v1_auth_ldap_provision_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LDAPProvisionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/tokens":{"post":{"tags":["authentication"],"summary":"Create Long Lived Camera Token","description":"Mint a long-lived camera-stream token (#1108).\n\nBody: ``{\"name\": str, \"expires_in_days\": int, \"scope\": \"camera_stream\"}``.\n\nThe plaintext token is returned **exactly once** in the response. The DB\nonly ever stores a pbkdf2 hash, so a leaked DB dump cannot replay the\ntoken. Hard cap of 365 days; the issue's ``expire_in: 0`` (never) is\nexplicitly rejected.","operationId":"create_long_lived_camera_token_api_v1_auth_tokens_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Long Lived Camera Token Api V1 Auth Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authentication"],"summary":"List Long Lived Tokens","description":"List long-lived tokens.\n\nDefault: caller's own tokens.\nAdmins can pass ``?user_id=N`` to see another user's tokens, or omit it\nto see everything (handy for leak triage).","operationId":"list_long_lived_tokens_api_v1_auth_tokens_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Long Lived Tokens Api V1 Auth Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/tokens/all":{"get":{"tags":["authentication"],"summary":"List All Long Lived Tokens","description":"Admin-only: every active long-lived token in the system, newest first.\nUsed by the leak-triage view in admin settings.","operationId":"list_all_long_lived_tokens_api_v1_auth_tokens_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List All Long Lived Tokens Api V1 Auth Tokens All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/tokens/{token_id}":{"delete":{"tags":["authentication"],"summary":"Revoke Long Lived Token","description":"Revoke a long-lived token. Owners can revoke their own; admins any.","operationId":"revoke_long_lived_token_api_v1_auth_tokens__token_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/encryption-status":{"get":{"tags":["authentication"],"summary":"Get Encryption Status","description":"Report at-rest encryption status for OIDC + TOTP secrets.\n\nSurfaces:\n  (a) whether a key is configured and where it came from\n  (b) how many rows are still legacy plaintext\n  (c) whether decryption is broken (no key OR key cannot decrypt existing rows)\n  (d) the count of rows skipped during the last re-encryption migration\n\nS2: gated on SETTINGS_UPDATE so Viewers (who only have SETTINGS_READ)\ncannot read encryption-status — admin/operator only.","operationId":"get_encryption_status_api_v1_auth_encryption_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/status":{"get":{"tags":["2fa","oidc"],"summary":"Get 2Fa Status","description":"Return the current 2FA configuration for the authenticated user.","operationId":"get_2fa_status_api_v1_auth_2fa_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFAStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/totp/setup":{"post":{"tags":["2fa","oidc"],"summary":"Setup Totp","description":"Initiate TOTP setup: generates a new secret and QR code.\n\nCreates (or replaces) a pending UserTOTP record with is_enabled=False.\nThe caller must confirm with POST /auth/2fa/totp/enable.\n\nM-R7-A: If an *active* TOTP is already configured, the caller must supply\nthe current TOTP code in the request body to confirm intent before the\nsecret is overwritten (prevents silently locking out the real user).","operationId":"setup_totp_api_v1_auth_2fa_totp_setup_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TOTPSetupRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/totp/enable":{"post":{"tags":["2fa","oidc"],"summary":"Enable Totp","description":"Confirm TOTP setup by verifying a code from the authenticator app.\n\nOn success, enables TOTP and returns 10 single-use backup codes (shown once).\nL-R7-A: Rate-limited to prevent brute-forcing the 6-digit confirmation code.","operationId":"enable_totp_api_v1_auth_2fa_totp_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPEnableRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPEnableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/totp/disable":{"post":{"tags":["2fa","oidc"],"summary":"Disable Totp","description":"Disable TOTP by verifying a valid TOTP code or a backup code.\n\nI10: Rate-limited to prevent backup-code brute-forcing from a hijacked session.","operationId":"disable_totp_api_v1_auth_2fa_totp_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPDisableRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disable Totp Api V1 Auth 2Fa Totp Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/totp/regenerate-backup-codes":{"post":{"tags":["2fa","oidc"],"summary":"Regenerate Backup Codes","description":"Generate 10 new backup codes. Requires a valid TOTP code OR a backup code.\n\nM10: Accepts backup codes for consistency with disable_totp — users who have\nlost their authenticator app but still have backup codes can regenerate.\nRate-limited to prevent brute-forcing from a hijacked session.","operationId":"regenerate_backup_codes_api_v1_auth_2fa_totp_regenerate_backup_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPDisableRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupCodesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/email/enable":{"post":{"tags":["2fa","oidc"],"summary":"Enable Email Otp","description":"Step 1 of email OTP enable: send a verification code to the user's email.\n\nC5: Proof of possession — the user must prove they control the registered email\naddress before email 2FA is activated.  Returns a ``setup_token`` that must be\npassed to POST /auth/2fa/email/enable/confirm together with the received code.\nH-3: Rate-limited to prevent email flooding via repeated calls to this endpoint.","operationId":"enable_email_otp_api_v1_auth_2fa_email_enable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Enable Email Otp Api V1 Auth 2Fa Email Enable Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/email/enable/confirm":{"post":{"tags":["2fa","oidc"],"summary":"Confirm Enable Email Otp","description":"Step 2 of email OTP enable: verify the code and activate email 2FA.\n\nH-2 fix: Uses peek-then-consume so a wrong code does NOT burn the setup token.\nThe token is only deleted after successful code verification, allowing retries\nup to the rate limit (5 attempts / 15 min).\nM4: Rate-limited to prevent brute-forcing the 6-digit setup code.","operationId":"confirm_enable_email_otp_api_v1_auth_2fa_email_enable_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOTPEnableConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Enable Email Otp Api V1 Auth 2Fa Email Enable Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/email/disable":{"post":{"tags":["2fa","oidc"],"summary":"Disable Email Otp","description":"Disable email-based OTP 2FA for the current user.\n\nC6: Re-authentication required — the caller must supply their account password\nto prevent a hijacked session from silently removing a second factor.\nLDAP/OIDC-only users (no local password) are exempt from this check.\nH-2: Rate-limited to prevent brute-forcing the password via this endpoint.","operationId":"disable_email_otp_api_v1_auth_2fa_email_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOTPDisableRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disable Email Otp Api V1 Auth 2Fa Email Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/2fa/email/send":{"post":{"tags":["2fa","oidc"],"summary":"Send Email Otp","description":"Send a 6-digit OTP code to the user's email address.\n\nRequires a valid pre_auth_token obtained during the login flow.","operationId":"send_email_otp_api_v1_auth_2fa_email_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOTPSendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Email Otp Api V1 Auth 2Fa Email Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/verify":{"post":{"tags":["2fa","oidc"],"summary":"Verify 2Fa","description":"Verify a 2FA code and exchange the pre_auth_token for a full JWT.\n\nAccepted methods: ``totp``, ``email``, ``backup``.\n\nThe pre_auth_token is NOT consumed on failed verification attempts so the\nuser can retry without restarting the login flow.  It is only consumed once\nverification succeeds, preventing token replay after success.","operationId":"verify_2fa_api_v1_auth_2fa_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFAVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFAVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/admin/{user_id}":{"delete":{"tags":["2fa","oidc"],"summary":"Admin Disable 2Fa","description":"Admin endpoint: disable all 2FA for a given user.\n\nAdmin-only, like every other change to a user account (users.update_user).\n\nNit 3: Requires the admin's own password as a re-auth step (matching how\ndisable_email_otp protects a user's own 2FA removal). OIDC/LDAP-only admins\n(no local password_hash) are exempt.","operationId":"admin_disable_2fa_api_v1_auth_2fa_admin__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDisable2FARequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Disable 2Fa Api V1 Auth 2Fa Admin  User Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/providers":{"get":{"tags":["2fa","oidc"],"summary":"List Oidc Providers","description":"List all enabled OIDC providers (public).\n\nThe login page renders icons via /oidc/providers/{id}/icon — `icon_data`\nstays deferred so this list query never pulls the BLOB.\n\n#3107: returns the slim public shape only. The login page needs id, name,\nhas_icon and is_autologin; the full response (scopes, claims, and now\ngroup_claim / group_mapping) is served by the permission-gated\n/oidc/providers/all below, so an unauthenticated caller cannot learn\nwhich IdP group name maps to which Bambuddy group.","operationId":"list_oidc_providers_api_v1_auth_oidc_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OIDCProviderPublicResponse"},"title":"Response List Oidc Providers Api V1 Auth Oidc Providers Get"}}}}}},"post":{"tags":["2fa","oidc"],"summary":"Create Oidc Provider","description":"Create a new OIDC provider (admin only).\n\nIf `icon_url` is supplied, the icon is fetched server-side and cached in\nthe BLOB columns (#1333). A fetch failure aborts the create with 400 —\nno half-configured provider is left in the DB.","operationId":"create_oidc_provider_api_v1_auth_oidc_providers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCProviderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/providers/all":{"get":{"tags":["2fa","oidc"],"summary":"List All Oidc Providers","description":"List ALL OIDC providers including disabled ones (admin only).","operationId":"list_all_oidc_providers_api_v1_auth_oidc_providers_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OIDCProviderResponse"},"title":"Response List All Oidc Providers Api V1 Auth Oidc Providers All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/providers/{provider_id}":{"put":{"tags":["2fa","oidc"],"summary":"Update Oidc Provider","description":"Update an existing OIDC provider (admin only).\n\nIcon refetch fires when:\n1. The submitted `icon_url` differs from the stored one (URL changed), OR\n2. The submitted `icon_url` equals the stored one AND `icon_content_type`\n   is NULL — this is the upgrade-path edge case: old providers carry\n   `icon_url` but no cached bytes until the admin first saves them.\n\nOn fetch failure the request aborts with 400 *before* commit, so the\nexisting cached bytes (if any) remain untouched.","operationId":"update_oidc_provider_api_v1_auth_oidc_providers__provider_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCProviderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["2fa","oidc"],"summary":"Delete Oidc Provider","description":"Delete an OIDC provider and all its user links (admin only).","operationId":"delete_oidc_provider_api_v1_auth_oidc_providers__provider_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Oidc Provider Api V1 Auth Oidc Providers  Provider Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/providers/{provider_id}/icon":{"get":{"tags":["2fa","oidc"],"summary":"Get Oidc Provider Icon","description":"Serve the cached icon for an enabled OIDC provider (public, no auth).\n\nUnauthenticated because ``<img>`` tags cannot send Authorization headers\nand the login page renders these icons before the user is signed in — the\nsame justification as ``/api/v1/makerworld/thumbnail``. The SSRF guard\nruns at admin-config time (create/update/refresh), not here.\n\nDisabled providers respond 404 to avoid leaking their existence to\nanonymous callers (mirrors ``GET /oidc/providers`` which filters on\n``is_enabled``).","operationId":"get_oidc_provider_icon_api_v1_auth_oidc_providers__provider_id__icon_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["2fa","oidc"],"summary":"Delete Oidc Provider Icon","description":"Remove the icon entirely for a provider (admin only).\n\nClears all four icon columns — ``icon_url`` plus the three cached-bytes\ncolumns. \"Remove icon\" means the whole record is gone, not just the\ncache; without this the admin form would still show the URL while\nthe login page rendered a blank fallback (confusing half-state).\nTo re-add an icon the admin re-types the URL in the edit form.","operationId":"delete_oidc_provider_icon_api_v1_auth_oidc_providers__provider_id__icon_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/providers/{provider_id}/icon/refresh":{"post":{"tags":["2fa","oidc"],"summary":"Refresh Oidc Provider Icon","description":"Refetch the icon from the stored `icon_url` (admin only).\n\nUsed when:\n- The IdP changed its icon and the admin wants Bambuddy to pick up the\n  new bytes.\n- An upgrade left the provider with an `icon_url` but no cached bytes\n  (covered automatically by `update_oidc_provider` too, but this gives\n  the UI an explicit \"Refresh\" button).\n\nFailure to refetch returns 400 *before* commit, so the previously cached\nbytes survive intact.","operationId":"refresh_oidc_provider_icon_api_v1_auth_oidc_providers__provider_id__icon_refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/authorize/{provider_id}":{"get":{"tags":["2fa","oidc"],"summary":"Oidc Authorize","description":"Return the OIDC authorization URL for the given provider.","operationId":"oidc_authorize_api_v1_auth_oidc_authorize__provider_id__get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCAuthorizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/callback":{"get":{"tags":["2fa","oidc"],"summary":"Oidc Callback","description":"Handle the OIDC authorization code callback from the identity provider.","operationId":"oidc_callback_api_v1_auth_oidc_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/exchange":{"post":{"tags":["2fa","oidc"],"summary":"Oidc Exchange","description":"Exchange an OIDC exchange token (from the callback redirect) for a full JWT.\n\nC4: If the resolved user has 2FA enabled the exchange returns a pre_auth_token\n(requires_2fa=True) instead of a full JWT.  The frontend must then complete the\n2FA step exactly as it would after a password-based login.","operationId":"oidc_exchange_api_v1_auth_oidc_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCExchangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oidc/links":{"get":{"tags":["2fa","oidc"],"summary":"List Oidc Links","description":"List all OIDC provider links for the current user.","operationId":"list_oidc_links_api_v1_auth_oidc_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OIDCLinkResponse"},"type":"array","title":"Response List Oidc Links Api V1 Auth Oidc Links Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/oidc/links/{provider_id}":{"delete":{"tags":["2fa","oidc"],"summary":"Remove Oidc Link","description":"Remove the OIDC link between the current user and a provider.","operationId":"remove_oidc_link_api_v1_auth_oidc_links__provider_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Oidc Link Api V1 Auth Oidc Links  Provider Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bug-report/start-logging":{"post":{"tags":["bug-report"],"summary":"Start Logging","description":"Enable debug logging and push all printers for fresh data.","operationId":"start_logging_api_v1_bug_report_start_logging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartLoggingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bug-report/stop-logging":{"post":{"tags":["bug-report"],"summary":"Stop Logging","description":"Collect logs and restore previous log level.","operationId":"stop_logging_api_v1_bug_report_stop_logging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"was_debug","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Was Debug"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopLoggingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bug-report/submit":{"post":{"tags":["bug-report"],"summary":"Submit Bug Report","description":"Submit a bug report. Requires auth when authentication is enabled.","operationId":"submit_bug_report_api_v1_bug_report_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BugReportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BugReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/":{"get":{"tags":["users"],"summary":"List Users","description":"List all users.\n\nRead-only — gated on ``USERS_READ`` only. Operator-visible UIs\n(Stats filter-by-user, Archives Print Log username column, File\nManager username autocomplete) consume this endpoint via custom-\ngroup ``users:read`` grants without admin role. The admin-only\nboundary lives on the write endpoints below.","operationId":"list_users_api_v1_users__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserResponse"},"title":"Response List Users Api V1 Users  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","description":"Create a new user.\n\nWhen advanced authentication is enabled:\n- Email is required\n- Password is auto-generated and emailed to user\n- Admin cannot set or see the password","operationId":"create_user_api_v1_users__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users":{"get":{"tags":["users"],"summary":"List Users","description":"List all users.\n\nRead-only — gated on ``USERS_READ`` only. Operator-visible UIs\n(Stats filter-by-user, Archives Print Log username column, File\nManager username autocomplete) consume this endpoint via custom-\ngroup ``users:read`` grants without admin role. The admin-only\nboundary lives on the write endpoints below.","operationId":"list_users_api_v1_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserResponse"},"title":"Response List Users Api V1 Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","description":"Create a new user.\n\nWhen advanced authentication is enabled:\n- Email is required\n- Password is auto-generated and emailed to user\n- Admin cannot set or see the password","operationId":"create_user_api_v1_users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/slim":{"get":{"tags":["users"],"summary":"List Users Slim","description":"List users as ``{id, username}`` only (#1894).\n\nExists so an API key -- or a group that should not see emails, roles and\npermission sets -- can turn the ``created_by_id`` values it already gets\nback from archives, stats and the queue into names.\n\n``USERS_READ`` is accepted alongside ``USERS_READ_SLIM`` because it is\nstrictly broader; groups that already hold it keep working without a\npermission backfill. For API keys only the slim permission resolves (the\nfull one is unmapped = administrative), so a key reaches this and not the\nlisting above.\n\nDeclared before ``/{user_id}`` on purpose: FastAPI matches in declaration\norder, and the reverse order would parse \"slim\" as the int path parameter\nand answer 422.","operationId":"list_users_slim_api_v1_users_slim_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserSlim"},"title":"Response List Users Slim Api V1 Users Slim Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","description":"Get a user by ID. Read-only — gated on ``USERS_READ`` only.","operationId":"get_user_api_v1_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Update User","description":"Update a user.","operationId":"update_user_api_v1_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","description":"Delete a user.\n\nIf delete_items=True, all archives, queue items, and library files created by\nthis user will also be deleted. Otherwise, these items will become \"ownerless\"\n(created_by_id set to NULL by the foreign key constraint).","operationId":"delete_user_api_v1_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"delete_items","in":"query","required":false,"schema":{"type":"boolean","description":"Delete all items created by this user","default":false,"title":"Delete Items"},"description":"Delete all items created by this user"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/items-count":{"get":{"tags":["users"],"summary":"Get User Items Count","description":"Get count of items created by this user. Read-only — gated on\n``USERS_READ`` only.","operationId":"get_user_items_count_api_v1_users__user_id__items_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/change-password":{"post":{"tags":["users"],"summary":"Change Own Password","description":"Change the current user's password. Requires current password verification.","operationId":"change_own_password_api_v1_users_me_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Own Password Api V1 Users Me Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/groups/permissions":{"get":{"tags":["groups"],"summary":"List Permissions","description":"List all available permissions organized by category.","operationId":"list_permissions_api_v1_groups_permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/":{"get":{"tags":["groups"],"summary":"List Groups","description":"List all groups.","operationId":"list_groups_api_v1_groups__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupResponse"},"title":"Response List Groups Api V1 Groups  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["groups"],"summary":"Create Group","description":"Create a new group.","operationId":"create_group_api_v1_groups__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups":{"get":{"tags":["groups"],"summary":"List Groups","description":"List all groups.","operationId":"list_groups_api_v1_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupResponse"},"title":"Response List Groups Api V1 Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["groups"],"summary":"Create Group","description":"Create a new group.","operationId":"create_group_api_v1_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}":{"get":{"tags":["groups"],"summary":"Get Group","description":"Get a group by ID with user list. Read-only — gated on\n``GROUPS_READ`` only.","operationId":"get_group_api_v1_groups__group_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["groups"],"summary":"Update Group","description":"Update a group.","operationId":"update_group_api_v1_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["groups"],"summary":"Delete Group","description":"Delete a group (non-system groups only).","operationId":"delete_group_api_v1_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/groups/{group_id}/users/{user_id}":{"post":{"tags":["groups"],"summary":"Add User To Group","description":"Add a user to a group.","operationId":"add_user_to_group_api_v1_groups__group_id__users__user_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["groups"],"summary":"Remove User From Group","description":"Remove a user from a group.","operationId":"remove_user_from_group_api_v1_groups__group_id__users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/":{"get":{"tags":["printers"],"summary":"List Printers","description":"List the configured printers the caller may see (#1727).\n\n``access_code`` is included in each item only when the caller is trusted\nto see it (Admin / Operator JWT, or auth-disabled mode). Viewers and\nAPI keys never receive it.","operationId":"list_printers_api_v1_printers__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["printers"],"summary":"Create Printer","description":"Add a new printer.\n\nVerifies the MQTT connection succeeds before persisting. A wrong access\ncode or unreachable IP would otherwise create a printer row that shows\nas an empty / never-connecting card on the dashboard — those reports\nwere turning into support tickets that all traced back to a mistyped\naccess code.","operationId":"create_printer_api_v1_printers__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/wled/presets":{"post":{"tags":["printers"],"summary":"List Wled Presets","description":"Read existing presets from WLED without changing its configuration.","operationId":"list_wled_presets_api_v1_printers__printer_id__wled_presets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WLEDPresetListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WLEDPreset"},"title":"Response List Wled Presets Api V1 Printers  Printer Id  Wled Presets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/wled/test-connection":{"post":{"tags":["printers"],"summary":"Test Wled Connection","description":"Check WLED connectivity and return its optional identity.","operationId":"test_wled_connection_api_v1_printers__printer_id__wled_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WLEDPresetListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WLEDConnectionInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/wled/test-preset":{"post":{"tags":["printers"],"summary":"Test Wled Preset","description":"Activate one validated preset without changing stored configuration.","operationId":"test_wled_preset_api_v1_printers__printer_id__wled_test_preset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WLEDPresetTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/usb-cameras":{"get":{"tags":["printers"],"summary":"List Usb Cameras","description":"List available USB cameras connected to the system.\n\nReturns a list of detected V4L2 video devices with their info.\nOnly works on Linux systems with V4L2 support.\n\nReturns:\n    List of dicts with {device: str, name: str, capabilities: list, formats?: list}","operationId":"list_usb_cameras_api_v1_printers_usb_cameras_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/available-filaments":{"get":{"tags":["printers"],"summary":"Get Available Filaments","description":"Get deduplicated list of filaments loaded across all active printers of a given model.\n\nUsed by the frontend to offer filament override options for model-based queue assignment.","operationId":"get_available_filaments_api_v1_printers_available_filaments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","description":"Target printer model","title":"Model"},"description":"Target printer model"},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional location filter","title":"Location"},"description":"Optional location filter"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/developer-mode-warnings":{"get":{"tags":["printers"],"summary":"Get Developer Mode Warnings","description":"Check if any connected printer the caller can see lacks developer LAN mode.","operationId":"get_developer_mode_warnings_api_v1_printers_developer_mode_warnings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}":{"get":{"tags":["printers"],"summary":"Get Printer","description":"Get a specific printer.\n\n``access_code`` is included only when the caller is trusted to see it\n(Admin / Operator JWT, or auth-disabled mode). Viewers and API keys\nnever receive it.","operationId":"get_printer_api_v1_printers__printer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["printers"],"summary":"Update Printer","description":"Update a printer.","operationId":"update_printer_api_v1_printers__printer_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Delete Printer","description":"Delete a printer.\n\nArgs:\n    printer_id: ID of the printer to delete\n    delete_archives: If True (default), delete all print archives for this printer.\n                    If False, keep archives but remove their printer association.","operationId":"delete_printer_api_v1_printers__printer_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"delete_archives","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Delete Archives"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/status":{"get":{"tags":["printers"],"summary":"Get Printer Status","description":"Get real-time status of a printer.","operationId":"get_printer_status_api_v1_printers__printer_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/overlay-status":{"get":{"tags":["printers"],"summary":"Get Overlay Status","description":"Everything the streaming overlay (#2613) draws for one printer.\n\nA token-authenticated sibling of ``get_printer_status`` for embeds with no\nlogin session — OBS loads ``/overlay/{id}?token=...`` and this feeds it.\nDeliberately flat and minimal (name, model, camera rotation, live print state, and\nthe one setting the overlay reads) rather than the full ``PrinterStatus``:\na token holder gets exactly the fields the overlay renders, nothing more.\n\nUnlike the Cam Wall feed this *includes the print filename* — the overlay\nnames the part on screen — which is why it sits behind its own ``overlay``\nscope rather than ``camwall``.","operationId":"get_overlay_status_api_v1_printers__printer_id__overlay_status_get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Overlay Status Api V1 Printers  Printer Id  Overlay Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/current-print-user":{"get":{"tags":["printers"],"summary":"Get Current Print User","description":"Get the user who started the current print (for reprint tracking).\n\nReturns user info if available, empty object otherwise.\nThis tracks users for reprints (which bypass the queue).\nFor queue-based prints, use the queue item's created_by field instead.","operationId":"get_current_print_user_api_v1_printers__printer_id__current_print_user_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/refresh-status":{"post":{"tags":["printers"],"summary":"Refresh Printer Status","description":"Request a full status refresh from the printer (sends pushall command).","operationId":"refresh_printer_status_api_v1_printers__printer_id__refresh_status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/connect":{"post":{"tags":["printers"],"summary":"Connect Printer","description":"Manually connect to a printer.","operationId":"connect_printer_api_v1_printers__printer_id__connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/disconnect":{"post":{"tags":["printers"],"summary":"Disconnect Printer","description":"Manually disconnect from a printer.","operationId":"disconnect_printer_api_v1_printers__printer_id__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/diagnostic":{"post":{"tags":["printers"],"summary":"Diagnose Connection","description":"Run connection diagnostics for the Add-Printer flow (printer not yet saved).\n\nWhen serial_number + access_code are supplied the MQTT credential check\nalso runs; otherwise only the network-level checks are performed.","operationId":"diagnose_connection_api_v1_printers_diagnostic_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosticRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterDiagnosticResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/diagnostic":{"get":{"tags":["printers"],"summary":"Diagnose Printer","description":"Run connection diagnostics for an existing saved printer.\n\nOn-demand run from the UI: wait up to PUBLISH_WAIT_DEFAULT seconds for the\nprinter to publish a status report so a fresh reconnect (counter reset to\n0) isn't reported as `printer_publishing: fail` prematurely. The support\npackage code path calls run_connection_diagnostic without the wait so\nbundling stays fast.","operationId":"diagnose_printer_api_v1_printers__printer_id__diagnostic_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterDiagnosticResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/cover":{"get":{"tags":["printers"],"summary":"Get Printer Cover","description":"Get the cover image for the current print job.\n\nRequires a media token query param (?token=xxx) when auth is enabled, plus\n``printers:read`` -- the permission that governs every other read of this\nprinter. It used to require ``camera:view`` by way of the camera-stream\ntoken, which is a different question from \"may this user see what is on the\nplate\" (#3025).\n\nArgs:\n    view: Optional view type. Use \"top\" for the top-down build plate view or\n          \"pick\" for the slicer's object-ID mask used by skip objects.\n          Default returns angled 3D perspective view.","operationId":"get_printer_cover_api_v1_printers__printer_id__cover_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"view","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"View"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files":{"get":{"tags":["printers"],"summary":"List Printer Files","description":"List files on the printer at the specified path.","operationId":"list_printer_files_api_v1_printers__printer_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Path"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Delete Printer File","description":"Delete a file from the printer.","operationId":"delete_printer_file_api_v1_printers__printer_id__files_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/download":{"get":{"tags":["printers"],"summary":"Download Printer File","description":"Download a file from the printer.","operationId":"download_printer_file_api_v1_printers__printer_id__files_download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/gcode":{"get":{"tags":["printers"],"summary":"Get Printer File Gcode","description":"Get gcode for a file stored on a printer (for preview).","operationId":"get_printer_file_gcode_api_v1_printers__printer_id__files_gcode_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/plates":{"get":{"tags":["printers"],"summary":"Get Printer File Plates","description":"Get available plates from a multi-plate 3MF file stored on a printer.","operationId":"get_printer_file_plates_api_v1_printers__printer_id__files_plates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Full path to the 3MF file on the printer","title":"Path"},"description":"Full path to the 3MF file on the printer"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/plate-thumbnail/{plate_index}":{"get":{"tags":["printers"],"summary":"Get Printer File Plate Thumbnail","description":"Get a plate thumbnail image from a printer-stored 3MF file.","operationId":"get_printer_file_plate_thumbnail_api_v1_printers__printer_id__files_plate_thumbnail__plate_index__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"plate_index","in":"path","required":true,"schema":{"type":"integer","title":"Plate Index"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Full path to the 3MF file on the printer","title":"Path"},"description":"Full path to the 3MF file on the printer"},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/download-zip":{"post":{"tags":["printers"],"summary":"Download Printer Files As Zip","description":"Download multiple files using a disk-backed ZIP.\n\nKept backward-compatible for API clients: relative paths are rooted,\nduplicate paths receive collision-safe names, and an all-failed request\nreturns an empty ZIP as the historical endpoint did. The browser uses the\nasynchronous preparation endpoints below.","operationId":"download_printer_files_as_zip_api_v1_printers__printer_id__files_download_zip_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterFilesDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/download-job":{"post":{"tags":["printers"],"summary":"Create Printer Files Download Job","description":"Start a cancellable disk-backed preparation without holding the request.","operationId":"create_printer_files_download_job_api_v1_printers__printer_id__files_download_job_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterFilesJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/download-jobs/{job_id}":{"get":{"tags":["printers"],"summary":"Get Printer Files Download Job","operationId":"get_printer_files_download_job_api_v1_printers__printer_id__files_download_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Cancel Printer Files Download Job","operationId":"cancel_printer_files_download_job_api_v1_printers__printer_id__files_download_jobs__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/files/dl/{token}/{filename}":{"get":{"tags":["printers"],"summary":"Download Prepared Printer Files","description":"Consume a resource-bound token and stream a prepared file natively.","operationId":"download_prepared_printer_files_api_v1_printers__printer_id__files_dl__token___filename__get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/storage":{"get":{"tags":["printers"],"summary":"Get Printer Storage","description":"Get storage information from the printer.","operationId":"get_printer_storage_api_v1_printers__printer_id__storage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/logging/enable":{"post":{"tags":["printers"],"summary":"Enable Mqtt Logging","description":"Enable MQTT message logging for a printer.","operationId":"enable_mqtt_logging_api_v1_printers__printer_id__logging_enable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/logging/disable":{"post":{"tags":["printers"],"summary":"Disable Mqtt Logging","description":"Disable MQTT message logging for a printer.","operationId":"disable_mqtt_logging_api_v1_printers__printer_id__logging_disable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/logging":{"get":{"tags":["printers"],"summary":"Get Mqtt Logs","description":"Get MQTT message logs for a printer.","operationId":"get_mqtt_logs_api_v1_printers__printer_id__logging_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Clear Mqtt Logs","description":"Clear MQTT message logs for a printer.","operationId":"clear_mqtt_logs_api_v1_printers__printer_id__logging_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/drying/start":{"post":{"tags":["printers"],"summary":"Start Drying","description":"Send AMS drying start command. temp=45-85, duration=hours.","operationId":"start_drying_api_v1_printers__printer_id__drying_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"query","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"temp","in":"query","required":false,"schema":{"type":"integer","default":45,"title":"Temp"}},{"name":"duration","in":"query","required":false,"schema":{"type":"integer","default":4,"title":"Duration"}},{"name":"filament","in":"query","required":false,"schema":{"type":"string","default":"","title":"Filament"}},{"name":"rotate_tray","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rotate Tray"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/drying/stop":{"post":{"tags":["printers"],"summary":"Stop Drying","description":"Send AMS drying stop command.","operationId":"stop_drying_api_v1_printers__printer_id__drying_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"query","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print-options":{"post":{"tags":["printers"],"summary":"Set Print Option","description":"Set an AI detection / print option on the printer.\n\nValid module_name values:\n- spaghetti_detector: Spaghetti detection\n- first_layer_inspector: First layer inspection\n- printing_monitor: AI print quality monitoring\n- buildplate_marker_detector: Build plate marker detection\n- allow_skip_parts: Allow skipping failed parts","operationId":"set_print_option_api_v1_printers__printer_id__print_options_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"module_name","in":"query","required":true,"schema":{"type":"string","title":"Module Name"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean","title":"Enabled"}},{"name":"print_halt","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Print Halt"}},{"name":"sensitivity","in":"query","required":false,"schema":{"type":"string","default":"medium","title":"Sensitivity"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams-backup":{"post":{"tags":["printers"],"summary":"Set Ams Backup","description":"Toggle AMS Filament Backup (auto-switch to a backup spool when one runs out).","operationId":"set_ams_backup_api_v1_printers__printer_id__ams_backup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean","title":"Enabled"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/inventory-remain":{"get":{"tags":["printers"],"summary":"Get Inventory Remain","description":"Per-globalTrayId remaining grams for slots bound to an inventory spool.\n\nMirrors `_build_inventory_remain_overrides` server-side so the PrintModal\nclient can apply the same two-tier \"Prefer Lowest Remaining Filament\" sort\nthe dispatcher uses (#1766). Works for both internal inventory and\nSpoolman; unbound slots are absent from the map (client falls back to the\nprinter's MQTT `remain` for those).\n\n`slot_materials` carries the same bindings with their material identity and\nextruder side attached, which is what the modal's pre-flight filament check\nneeds to pool spools under AMS Filament Backup the way the dispatcher does.\nIt is deliberately server-computed: the identity rule lives in\n`filament_deficit`, and a client-side reimplementation of it is exactly how\nthe modal came to block prints the dispatcher would have accepted. Unlike\n`inventory_remain_g` it covers every binding, not just currently-loaded\nslots — again matching what the dispatcher pools.","operationId":"get_inventory_remain_api_v1_printers__printer_id__inventory_remain_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/calibration":{"post":{"tags":["printers"],"summary":"Start Calibration","description":"Start printer calibration with selected options.\n\nAt least one option must be selected.\n\nOptions:\n- bed_leveling: Run bed leveling calibration\n- vibration: Run vibration compensation calibration\n- motor_noise: Run motor noise cancellation calibration\n- nozzle_offset: Run nozzle offset calibration (dual nozzle printers)\n- high_temp_heatbed: Run high-temperature heatbed calibration","operationId":"start_calibration_api_v1_printers__printer_id__calibration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"bed_leveling","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bed Leveling"}},{"name":"vibration","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Vibration"}},{"name":"motor_noise","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Motor Noise"}},{"name":"nozzle_offset","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Nozzle Offset"}},{"name":"high_temp_heatbed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"High Temp Heatbed"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/slot-presets":{"get":{"tags":["printers"],"summary":"Get Slot Presets","description":"Get all saved slot-to-preset mappings for a printer.","operationId":"get_slot_presets_api_v1_printers__printer_id__slot_presets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/slot-presets/{ams_id}/{tray_id}":{"get":{"tags":["printers"],"summary":"Get Slot Preset","description":"Get the saved preset for a specific slot.","operationId":"get_slot_preset_api_v1_printers__printer_id__slot_presets__ams_id___tray_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["printers"],"summary":"Save Slot Preset","description":"Save a preset mapping for a specific slot.\n\n``tray_info_idx`` is the filament id the slot was configured with (what\n``configure`` returns). Recording it lets the slot card notice a later\nre-configuration from elsewhere and stop showing this preset (#3216).\nOmitted, it is cleared, so a stale id never outlives the preset it came with.","operationId":"save_slot_preset_api_v1_printers__printer_id__slot_presets__ams_id___tray_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"preset_id","in":"query","required":true,"schema":{"type":"string","title":"Preset Id"}},{"name":"preset_name","in":"query","required":true,"schema":{"type":"string","title":"Preset Name"}},{"name":"preset_source","in":"query","required":false,"schema":{"type":"string","default":"cloud","title":"Preset Source"}},{"name":"tray_info_idx","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Info Idx"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Delete Slot Preset","description":"Delete a saved preset mapping for a slot.","operationId":"delete_slot_preset_api_v1_printers__printer_id__slot_presets__ams_id___tray_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/slots/{ams_id}/{tray_id}/spool-defaults":{"get":{"tags":["printers"],"summary":"Get Slot Spool Defaults","description":"What the spool assigned to this slot is configured to use here.\n\nThe Configure AMS Slot dialog opens on a slot that usually already holds an\nassigned spool, and that spool carries a filament preset per printer model\nand a K profile per hotend. Without this the dialog offered defaults derived\nfrom the slot's last manual configuration or from the tray's RFID data --\nignoring the very values the spool was configured with, on the one screen\nthat looks like it exists for them.\n\nEverything is resolved for the nozzle THIS slot feeds, so a dual-nozzle\nmachine gets the answer for the correct hotend. Returns nulls rather than a\n404 when the slot holds no known spool: \"nothing configured\" is an ordinary\nanswer here and the dialog falls back to what it did before.","operationId":"get_slot_spool_defaults_api_v1_printers__printer_id__slots__ams_id___tray_id__spool_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/slots/{ams_id}/{tray_id}/configure":{"post":{"tags":["printers"],"summary":"Configure Ams Slot","description":"Configure an AMS slot with a specific filament setting and K profile.\n\nThis sends two commands to the printer:\n1. ams_filament_setting - sets filament type, color, temperature\n2. extrusion_cali_sel - sets the K profile (pressure advance value)\n\nArgs:\n    printer_id: Database ID of the printer\n    ams_id: AMS unit ID (0-3 for regular AMS, 128-135 for HT AMS)\n    tray_id: Tray ID within the AMS (0-3)\n    tray_info_idx: Filament ID short format (e.g., \"GFL05\") or user preset ID\n    tray_type: Filament type (e.g., \"PLA\", \"PETG\")\n    tray_sub_brands: Sub-brand/profile name (e.g., \"PLA Basic\", \"PETG HF\")\n    tray_color: Color in RRGGBBAA hex format (e.g., \"FFFF00FF\")\n    nozzle_temp_min: Minimum nozzle temperature\n    nozzle_temp_max: Maximum nozzle temperature\n    cali_idx: K profile calibration index (-1 for default 0.020)\n    nozzle_diameter: Nozzle diameter string (e.g., \"0.4\")\n    setting_id: Full setting ID with version (e.g., \"GFSL05_07\") - optional\n    kprofile_filament_id: K profile's filament_id for proper K profile linking\n    k_value: Direct K value to set (0.0 to skip direct K value setting)\n    orca_profile_id: Orca Cloud profile the slot is being set to. With no\n        tray_info_idx, the profile's own filament id is looked up here\n        (#3216); the response says when none was found.","operationId":"configure_ams_slot_api_v1_printers__printer_id__slots__ams_id___tray_id__configure_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"tray_info_idx","in":"query","required":true,"schema":{"type":"string","title":"Tray Info Idx"}},{"name":"tray_type","in":"query","required":true,"schema":{"type":"string","title":"Tray Type"}},{"name":"tray_sub_brands","in":"query","required":true,"schema":{"type":"string","title":"Tray Sub Brands"}},{"name":"tray_color","in":"query","required":true,"schema":{"type":"string","title":"Tray Color"}},{"name":"nozzle_temp_min","in":"query","required":true,"schema":{"type":"integer","title":"Nozzle Temp Min"}},{"name":"nozzle_temp_max","in":"query","required":true,"schema":{"type":"integer","title":"Nozzle Temp Max"}},{"name":"cali_idx","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Cali Idx"}},{"name":"nozzle_diameter","in":"query","required":false,"schema":{"type":"string","default":"0.4","title":"Nozzle Diameter"}},{"name":"setting_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Setting Id"}},{"name":"kprofile_filament_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kprofile Filament Id"}},{"name":"kprofile_setting_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kprofile Setting Id"}},{"name":"k_value","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"K Value"}},{"name":"orca_profile_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Orca Profile Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams/{ams_id}/tray/{tray_id}/reset":{"post":{"tags":["printers"],"summary":"Reset Ams Slot","description":"Reset an AMS slot to empty/unconfigured state.\n\nThis clears the filament configuration from the slot.","operationId":"reset_ams_slot_api_v1_printers__printer_id__ams__ams_id__tray__tray_id__reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams-labels":{"get":{"tags":["printers"],"summary":"Get Ams Labels","description":"Get all user-defined AMS labels for a printer, keyed by AMS unit ID.\n\nLabels are stored by AMS serial number.  This endpoint resolves the current\nserial-to-ams_id mapping from the live printer state so the response is still\nkeyed by ams_id for UI compatibility.","operationId":"get_ams_labels_api_v1_printers__printer_id__ams_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams-labels/{ams_id}":{"put":{"tags":["printers"],"summary":"Save Ams Label","description":"Create or update the friendly name for a specific AMS unit.\n\nWhen ``ams_serial`` is provided the label is stored under that serial number so\nit survives the AMS being moved to a different printer.  When it is absent (e.g.\nolder firmware that does not report a serial) a synthetic key based on the\nprinter_id and ams_id is used as a fallback.","operationId":"save_ams_label_api_v1_printers__printer_id__ams_labels__ams_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmsLabelBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["printers"],"summary":"Delete Ams Label","description":"Delete the friendly name for a specific AMS unit, reverting to the auto label.","operationId":"delete_ams_label_api_v1_printers__printer_id__ams_labels__ams_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"ams_serial","in":"query","required":false,"schema":{"type":"string","maxLength":50,"default":"","title":"Ams Serial"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print/stop":{"post":{"tags":["printers"],"summary":"Stop Print","description":"Stop/cancel the current print job.","operationId":"stop_print_api_v1_printers__printer_id__print_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/clear-plate":{"post":{"tags":["printers"],"summary":"Clear Plate","description":"Acknowledge that the build plate has been cleared after a finished/failed print.\n\nSets a plate-cleared flag so the scheduler can start the next queued print.\nNo MQTT command is sent to the printer — the scheduler's start_print command\nwill override the FINISH/FAILED state when it sends the next job.","operationId":"clear_plate_api_v1_printers__printer_id__clear_plate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print/pause":{"post":{"tags":["printers"],"summary":"Pause Print","description":"Pause the current print job.","operationId":"pause_print_api_v1_printers__printer_id__print_pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print/resume":{"post":{"tags":["printers"],"summary":"Resume Print","description":"Resume a paused print job.","operationId":"resume_print_api_v1_printers__printer_id__print_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print-speed":{"post":{"tags":["printers"],"summary":"Set Print Speed","description":"Set the print speed mode.","operationId":"set_print_speed_api_v1_printers__printer_id__print_speed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"mode","in":"query","required":true,"schema":{"type":"integer","maximum":4,"minimum":1,"description":"Speed mode (1=silent, 2=standard, 3=sport, 4=ludicrous)","title":"Mode"},"description":"Speed mode (1=silent, 2=standard, 3=sport, 4=ludicrous)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/temperature/nozzle":{"post":{"tags":["printers"],"summary":"Set Nozzle Temperature","description":"Set a nozzle target temperature.","operationId":"set_nozzle_temperature_api_v1_printers__printer_id__temperature_nozzle_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"target","in":"query","required":true,"schema":{"type":"integer","maximum":320,"minimum":0,"description":"Target nozzle temperature in Celsius; 0 turns heating off","title":"Target"},"description":"Target nozzle temperature in Celsius; 0 turns heating off"},{"name":"nozzle","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"description":"Nozzle/extruder index (0=right/default, 1=left)","default":0,"title":"Nozzle"},"description":"Nozzle/extruder index (0=right/default, 1=left)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/temperature/bed":{"post":{"tags":["printers"],"summary":"Set Bed Temperature","description":"Set the bed target temperature.","operationId":"set_bed_temperature_api_v1_printers__printer_id__temperature_bed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"target","in":"query","required":true,"schema":{"type":"integer","maximum":140,"minimum":0,"description":"Target bed temperature in Celsius; 0 turns heating off","title":"Target"},"description":"Target bed temperature in Celsius; 0 turns heating off"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/temperature/chamber":{"post":{"tags":["printers"],"summary":"Set Chamber Temperature","description":"Set the chamber target temperature.\n\nGated on `supports_chamber_heater(model)`: only H2C, H2D, H2D Pro, H2S,\nX1E and X2D have an active chamber heater. Sensor-only models (X1C, P2S)\nreport chamber temp but silently swallow M141, so we 400 here rather\nthan send a no-op.","operationId":"set_chamber_temperature_api_v1_printers__printer_id__temperature_chamber_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"target","in":"query","required":true,"schema":{"type":"integer","maximum":65,"minimum":0,"description":"Target chamber temperature in Celsius; 0 turns heating off","title":"Target"},"description":"Target chamber temperature in Celsius; 0 turns heating off"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/panda-breath":{"post":{"tags":["printers"],"summary":"Send Panda Breath Command","description":"Change one setting of the Panda Breath bound to this printer (#1466).\n\nThe device is found by the printer's serial number, never by an id the\ncaller sends, so a user can only reach the heater of a printer they may\ncontrol.","operationId":"send_panda_breath_command_api_v1_printers__printer_id__panda_breath_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PandaBreathCommand"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/fan-speed":{"post":{"tags":["printers"],"summary":"Set Fan Speed","description":"Set a fan speed by percentage.\n\nFan index 10 (\"aux2\") is the second auxiliary part cooling fan: the left\none on the P2S (an accessory kit), the right one on the X2D, where index 2\n(\"aux\") is the left (#3373). Driven with \"M106 P10\" exactly like Bambu's\nofficial machine profile gcode does. It only exists when the printer reports airduct part 10,\nso the request is rejected rather than sending M106 P10 into the void on a\nmachine that has no such fan.\n\nThat gate also rejects for the short window between connecting and the\nfirst airduct push, when nothing is known about the fan yet. The card hides\nthe badge over the same window, so there is no control to click; a direct\nAPI caller gets a 400 and should retry once the status reports the fan.","operationId":"set_fan_speed_api_v1_printers__printer_id__fan_speed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"fan","in":"query","required":true,"schema":{"type":"string","description":"Fan to control: part, aux, aux2 (the second aux fan: left on the P2S, right on the X2D), or chamber","title":"Fan"},"description":"Fan to control: part, aux, aux2 (the second aux fan: left on the P2S, right on the X2D), or chamber"},{"name":"speed","in":"query","required":true,"schema":{"type":"integer","maximum":100,"minimum":0,"description":"Fan speed percentage","title":"Speed"},"description":"Fan speed percentage"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/select-extruder":{"post":{"tags":["printers"],"summary":"Select Extruder","description":"Select the active extruder/nozzle on dual-nozzle printers.","operationId":"select_extruder_api_v1_printers__printer_id__select_extruder_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"extruder","in":"query","required":true,"schema":{"type":"integer","maximum":1,"minimum":0,"description":"Extruder index (0=right, 1=left)","title":"Extruder"},"description":"Extruder index (0=right, 1=left)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/airduct-mode":{"post":{"tags":["printers"],"summary":"Set Airduct Mode","description":"Set the airduct mode (cooling/heating) on supported printers (P2S/H2*).","operationId":"set_airduct_mode_api_v1_printers__printer_id__airduct_mode_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"mode","in":"query","required":true,"schema":{"type":"string","description":"Airduct mode: 'cooling' or 'heating'","title":"Mode"},"description":"Airduct mode: 'cooling' or 'heating'"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/chamber-light":{"post":{"tags":["printers"],"summary":"Set Chamber Light","description":"Turn the chamber light on or off.","operationId":"set_chamber_light_api_v1_printers__printer_id__chamber_light_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"on","in":"query","required":true,"schema":{"type":"boolean","description":"True to turn on, False to turn off","title":"On"},"description":"True to turn on, False to turn off"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/bed-jog":{"post":{"tags":["printers"],"summary":"Bed Jog","description":"Adjust the nozzle-bed gap by a relative distance.\n\nEmits a short G-code sequence via MQTT.\n\nSoft-endstop policy (#2579). **Nothing clamps this move.** Bambu's firmware\ndoes not enforce its soft endstops on G-code arriving over MQTT — measured\nby logging the exact bytes to an H2D sitting at its Z limit: a clean\n``G91 / G1 Z-1.00 F600 / G90`` with no ``M211`` ran straight past, while the\nprinter's own touchscreen refuses the identical move, because the\ntouchscreen goes through the motion planner and ``gcode_line`` does not.\nPush-status carries no axis position either, so there is nothing to clamp\nagainst on this side. Treat every jog as unguarded; the jog popover says so\nto the user, and a dead-reckoning clamp (track Z from a home, refuse\nout-of-range moves) is the only real fix and is not built.\n\nWhat Bambuddy stopped doing is making it worse. The old code wrapped every\nmove in ``M211 S0`` / ``M211 S1`` and the UI sent ``force`` on every jog, so\nthe limits came off on every bed move — and ``M211 S0`` disables them\n*globally*, which broke the touchscreen's protection too until the printer\nwas power-cycled. That is the one genuine Bambuddy bug in #2579. This\nendpoint now emits a bare relative move and never touches ``M211`` at all,\nwhich leaves the touchscreen protected. It does not send ``M211 S1``\neither: that was an unverified attempt to re-enable a printer an older\nbuild had disabled, and on real hardware the jog moved past the limit\n*with* it. A printer left in that state is recovered with one power cycle.\n\nDirection (#1334, and the API half of it reported by @AQU4R1U5). ``Z``\nis the nozzle-to-bed gap on every Bambu model, by definition of the\ncoordinate system rather than by convention: ``G1 Z+`` opens the gap\nwhether the bed drops away (X1 / P1 / H2, where Bambu's end G-code\nparks with ``G1 Z{max_layer_z + 100}``) or the toolhead rises\n(A1 / A1 Mini / A2L). The finish-photo plate restore relies on exactly\nthat and needs no model branch — see ``_restore_plate_for_finish_photo``.\n\nSo ``distance`` goes onto the wire unchanged, and one API call means one\nphysical thing on every printer: positive is always the safe direction.\nThis endpoint used to invert the sign on A1 models, which made a\ndocumented model-independent parameter mean the opposite thing there —\n``distance=5``, asking for clearance, drove the toolhead at the plate.\n\nWhat #1334 actually reported is a *label* problem, and it belongs to the\nUI: the arrow says \"move the plate up\", and on a bed-slinger the plate\ndoes not move in Z at all, so closing the gap shows up as the toolhead\ndiving. Which way an arrow points is a question about the machine in\nfront of the user, not about the G-code, so the printer card decides it\n(``isBedSlinger`` in ``frontend/src/utils/bedSlinger.ts``) and sends the\ngap it wants. Nothing here needs to know the model.","operationId":"bed_jog_api_v1_printers__printer_id__bed_jog_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"distance","in":"query","required":true,"schema":{"type":"number","description":"Signed nozzle-bed gap adjustment in mm, identical on every model: positive opens the gap (more clearance), negative closes it. Sent to the printer as the G-code Z value unchanged — G-code Z is the nozzle-to-bed distance whether the bed moves (X1 / P1 / H2) or the toolhead does (A1 / A2L), so no per-model sign translation exists or is needed.","title":"Distance"},"description":"Signed nozzle-bed gap adjustment in mm, identical on every model: positive opens the gap (more clearance), negative closes it. Sent to the printer as the G-code Z value unchanged — G-code Z is the nozzle-to-bed distance whether the bed moves (X1 / P1 / H2) or the toolhead does (A1 / A2L), so no per-model sign translation exists or is needed."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/xy-jog":{"post":{"tags":["printers"],"summary":"Xy Jog","description":"Move the toolhead by a relative X/Y distance.","operationId":"xy_jog_api_v1_printers__printer_id__xy_jog_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"x","in":"query","required":false,"schema":{"type":"number","description":"Signed relative X movement in mm","default":0,"title":"X"},"description":"Signed relative X movement in mm"},{"name":"y","in":"query","required":false,"schema":{"type":"number","description":"Signed relative Y movement in mm","default":0,"title":"Y"},"description":"Signed relative Y movement in mm"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/extruder-jog":{"post":{"tags":["printers"],"summary":"Extruder Jog","description":"Extrude or retract filament by a relative distance.\n\nNo client-side cold-extrude guard: Bambu firmware refuses extrusion\nbelow its min-extrude temperature, so a cold call is rejected at the\nprinter, not silently damaging the extruder gear.","operationId":"extruder_jog_api_v1_printers__printer_id__extruder_jog_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"distance","in":"query","required":true,"schema":{"type":"number","description":"Signed relative extrusion distance in mm. Positive extrudes, negative retracts.","title":"Distance"},"description":"Signed relative extrusion distance in mm. Positive extrudes, negative retracts."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/home-axes":{"post":{"tags":["printers"],"summary":"Home Axes","description":"Run the printer's full auto-home sequence via bare `G28`.\n\nBambu printers (H2C / H2D / H2S / X1 family) home the Z axis by moving\nthe BED UP toward an endstop at the top of travel. If the toolhead is\nnot already parked out of the way, a bare `G28 Z` will crash the bed\ninto the toolhead — #1052 reported exactly that on H2C: the bed rose\nwithout stopping at a safe height because `G28 Z` skipped the\ntoolhead-park step that a full `G28` runs first.\n\nThe endpoint therefore ignores the `axes` argument and always sends a\nbare `G28`, which the firmware expands into a safe multi-step sequence\n(park toolhead → home XY → home Z). The argument is kept only for\nbackward-compat with existing clients; sending an invalid value still\nreturns 400 so typos surface instead of silently proceeding.","operationId":"home_axes_api_v1_printers__printer_id__home_axes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"axes","in":"query","required":false,"schema":{"type":"string","description":"Legacy; accepted values are 'z' | 'xy' | 'all'. Always runs the printer's full auto-home sequence — see below.","default":"all","title":"Axes"},"description":"Legacy; accepted values are 'z' | 'xy' | 'all'. Always runs the printer's full auto-home sequence — see below."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/hms/clear":{"post":{"tags":["printers"],"summary":"Clear Hms Errors","description":"Clear HMS/print errors on the printer.","operationId":"clear_hms_errors_api_v1_printers__printer_id__hms_clear_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print/objects":{"get":{"tags":["printers"],"summary":"Get Printable Objects","description":"Get the list of printable objects for the current print.\n\nReturns a list of objects with id, name, position (if available), and skip status.\nObjects that have already been skipped are marked in the skipped_objects list.\n\nArgs:\n    reload: If True, reload objects from the archive file (useful after restart)","operationId":"get_printable_objects_api_v1_printers__printer_id__print_objects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"reload","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reload"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/print/skip-objects":{"post":{"tags":["printers"],"summary":"Skip Objects","description":"Skip specific objects during the current print.\n\nArgs:\n    object_ids: List of object identify_id values to skip","operationId":"skip_objects_api_v1_printers__printer_id__print_skip_objects_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"},"title":"Object Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams/{ams_id}/slot/{slot_id}/refresh":{"post":{"tags":["printers"],"summary":"Refresh Ams Slot","description":"Re-read RFID for an AMS slot (triggers filament info refresh).","operationId":"refresh_ams_slot_api_v1_printers__printer_id__ams__ams_id__slot__slot_id__refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"slot_id","in":"path","required":true,"schema":{"type":"integer","title":"Slot Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams/load":{"post":{"tags":["printers"],"summary":"Ams Load","description":"Load filament from a specific AMS slot or external spool.\n\nTray ID encoding (matches Bambu firmware convention):\n- 0..15: AMS slot, computed as ams_id * 4 + slot_id\n- 28..36: the H3C's AMS 3H, 28 + slot (its slot feeds its own hotend)\n- 128..135: AMS-HT, the unit id (one tray per unit)\n- 254: external spool (single-external printers, or Ext-L on dual-nozzle H2D)\n- 255: Ext-R on dual-nozzle H2D","operationId":"ams_load_api_v1_printers__printer_id__ams_load_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"tray_id","in":"query","required":true,"schema":{"type":"integer","description":"Tray ID: 0-15 for AMS slots (ams_id*4+slot_id), 128-135 for an AMS-HT (its unit id), 254 for external spool","title":"Tray Id"},"description":"Tray ID: 0-15 for AMS slots (ams_id*4+slot_id), 128-135 for an AMS-HT (its unit id), 254 for external spool"},{"name":"extruder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1,"minimum":0},{"type":"null"}],"description":"Hotend to feed: 0 = right/main, 1 = left/deputy. Only meaningful on a printer with a Filament Track Switch fitted, where the AMS is bound to a switch inlet rather than a hotend and the firmware cannot work the target out for itself. Omit on every other printer — the field is absent from BambuStudio's own command there too.","title":"Extruder Id"},"description":"Hotend to feed: 0 = right/main, 1 = left/deputy. Only meaningful on a printer with a Filament Track Switch fitted, where the AMS is bound to a switch inlet rather than a hotend and the firmware cannot work the target out for itself. Omit on every other printer — the field is absent from BambuStudio's own command there too."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/ams/unload":{"post":{"tags":["printers"],"summary":"Ams Unload","description":"Unload the filament in a given slot, or the currently loaded one.","operationId":"ams_unload_api_v1_printers__printer_id__ams_unload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"tray_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Tray ID of the slot to unload, same encoding as the load endpoint. Identifies which hotend to unload on a dual-nozzle printer, where both can hold filament at once and the printer's single tray_now field names only one of them. Omit to unload whatever tray_now names, which is the only option a single-nozzle printer has.","title":"Tray Id"},"description":"Tray ID of the slot to unload, same encoding as the load endpoint. Identifies which hotend to unload on a dual-nozzle printer, where both can hold filament at once and the printer's single tray_now field names only one of them. Omit to unload whatever tray_now names, which is the only option a single-nozzle printer has."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/hms/execute-action":{"post":{"tags":["printers"],"summary":"Execute Hms Action","description":"Execute an HMS action on the printer.","operationId":"execute_hms_action_api_v1_printers__printer_id__hms_execute_action_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HmsActionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printer-locations/":{"get":{"tags":["printer-locations"],"summary":"List Printer Locations","description":"Every location: those with a row, and those only printers carry.\n\nA caller limited to some printers (#1727) sees only the locations their\nprinters are in, counted over those printers.","operationId":"list_printer_locations_api_v1_printer_locations__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrinterLocationResponse"},"title":"Response List Printer Locations Api V1 Printer Locations  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["printer-locations"],"summary":"Create Printer Location","description":"Create a location, with or without printers in it yet.","operationId":"create_printer_location_api_v1_printer_locations__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["printer-locations"],"summary":"Update Printer Location","description":"Rename a location and/or change its icon and colour.\n\nA rename moves its printers and the queue items that target it in the same\ntransaction, so an \"any printer in <location>\" job, and the next run of a\nbatch, keep finding their printers.","operationId":"update_printer_location_api_v1_printer_locations__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printer-locations/delete":{"post":{"tags":["printer-locations"],"summary":"Delete Printer Locations","description":"Delete locations; their printers end up with no location.\n\nPending queue items that target a deleted location are left alone: changing\nthem to \"any location\" would let them start on printers they were meant to\nstay off.\n\nA location given to a group (#1727) can only be deleted by an admin, and\nits grants go with it: left behind, they would hand a later location of\nthe same name to that group.","operationId":"delete_printer_locations_api_v1_printer_locations_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationDeleteResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printer-locations/assign":{"post":{"tags":["printer-locations"],"summary":"Assign Printer Location","description":"Move printers into a location, or out of any with null.\n\nBy printer id, on the server: a printer someone else moved meanwhile is\nmoved again only if it is in this request. A printer outside the caller's\nscope (#1727) is \"not found\", and moving printers into or out of a\nlocation given to a group is for admins only, as when editing a printer.","operationId":"assign_printer_location_api_v1_printer_locations_assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterLocationAssignResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/":{"get":{"tags":["archives"],"summary":"List Archives","description":"List archived prints.","operationId":"list_archives_api_v1_archives__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveResponse"},"title":"Response List Archives Api V1 Archives  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/merge-count":{"get":{"tags":["archives"],"summary":"Count Archive Merge Groups","description":"How many groups of duplicate archives there are (archive redesign P2):\nwhat the archives page and a restore offer to merge. Cheap: it reads no\nfiles and does not check which group can merge now (``/merge-preview``).","operationId":"count_archive_merge_groups_api_v1_archives_merge_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/merge-preview":{"get":{"tags":["archives"],"summary":"Preview Archive Merge","description":"The archives that hold the same file, which \"Merge duplicates\" makes\none (archive redesign P2): same file, owner and project. The oldest stays;\na group with an archive at work (printing, queued, just printed) is left\nout for now (``skipped``).","operationId":"preview_archive_merge_api_v1_archives_merge_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/merge":{"post":{"tags":["archives"],"summary":"Merge Archives","description":"Merge the duplicate groups of ``survivor_ids`` (see ``/merge-preview``).","operationId":"merge_archives_api_v1_archives_merge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/last-per-printer":{"get":{"tags":["archives"],"summary":"List Last Archive Per Printer","description":"The latest print of every printer, for the printer cards: its archive\nas that run printed (``run_id``, its outcome and verdict).\n\nBy the printer's latest run: plates of one archive on two printers are\neach their printer's last print, while the archive names only the one\nstarted last. A printer with no run logged gets its latest archive, as\nbefore runs. One query for the whole Printers page instead of one list\nrequest per card. Leaves out the duplicate detection the full listing\ndoes: the card shows a name and an outcome prompt, and on a farm that scan\nran once per printer on every page load.","operationId":"list_last_archive_per_printer_api_v1_archives_last_per_printer_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveResponse"},"title":"Response List Last Archive Per Printer Api V1 Archives Last Per Printer Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/no-3mf-warning":{"get":{"tags":["archives"],"summary":"No 3Mf Warning","description":"Whether to nudge the user about a print that archived without its 3MF,\nand why. True iff any archive in the last 30 days was created via the\nno-3MF fallback path.\n\nAlso returns ``reason``, because the advice differs and the original\nsingle-cause wording sent people the wrong way. Historically the only\nknown cause was install step 4 (\"Store sent files on external storage\")\nbeing off in the slicer, so the banner said so unconditionally. On\nH2-series, P2S and X2D that advice is actively wrong: the setting is already\non and turning it on again changes nothing, because the printer keeps the\nsliced file on internal storage that FTPS does not serve at all (#2780).\n\n``reason`` is the slug from :mod:`print_storage` when we recorded one,\nelse None for the original slicer-setting case. When archives disagree the\nmost specific known reason wins — one printer storing internally is a real\nfinding worth explaining, and it should not be masked by another printer's\nplain missing-file fallback.\n\nComplements the connection-diagnostic ``external_storage`` check, which\nonly catches the printer-side variant of the setting. On older slicers\nwhere the toggle lives only in BambuStudio, the printer never reports it\nand the diagnostic passes — this endpoint surfaces the symptom instead.\n\nDismissal is handled client-side via localStorage (one-shot): once the\nuser has been told, no further nudge until they clear browser storage.\nThe backend stays stateless.","operationId":"no_3mf_warning_api_v1_archives_no_3mf_warning_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/slim":{"get":{"tags":["archives"],"summary":"List Archives Slim","description":"Per-event listing for stats/dashboard widgets.\n\nReads from print_log_entries so reprints contribute each run and\norphaned events (archive deleted, log row survived via ON DELETE\nSET NULL) still aggregate consistently with Quick Stats. The sliced\nprint_time_seconds is joined from the archive when available; for\norphan events it is null and downstream widgets fall back to the\nmeasured duration_seconds.","operationId":"list_archives_slim_api_v1_archives_slim_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by user who created the print (-1 for no user)","title":"Created By Id"},"description":"Filter by user who created the print (-1 for no user)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50000,"default":10000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveSlim"},"title":"Response List Archives Slim Api V1 Archives Slim Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/prints":{"get":{"tags":["archives"],"summary":"List Archive Prints","description":"The prints of the archives the caller sees that ended in a date range\n(archive redesign P4): the archives calendar. Visibility as the archive\nlist: archives they own (or all, with read-all), and of those only the\nprints on their printers. Ordered by id, so a print logged while the\npages are read lands on the last one instead of shifting the others.","operationId":"list_archive_prints_api_v1_archives_prints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date From"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/search":{"get":{"tags":["archives"],"summary":"Search Archives","description":"Full-text search across archives.\n\nSearches print_name, filename, tags, notes, designer, and filament_type fields.\nSupports partial matches with wildcards (e.g., 'vor*' matches 'voron').","operationId":"search_archives_api_v1_archives_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"description":"Search query","title":"Q"},"description":"Search query"},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveResponse"},"title":"Response Search Archives Api V1 Archives Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/search/rebuild-index":{"post":{"tags":["archives"],"summary":"Rebuild Search Index","description":"Rebuild the full-text search index from existing archives.\n\nUse this if search results seem incomplete or incorrect.","operationId":"rebuild_search_index_api_v1_archives_search_rebuild_index_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/analysis/failures":{"get":{"tags":["archives"],"summary":"Analyze Failures","description":"Analyze failure patterns across prints.\n\nReturns failure statistics including:\n- Overall failure rate\n- Failures by reason, filament type, printer\n- Time of day distribution\n- Recent failures\n- Weekly trend","operationId":"analyze_failures_api_v1_archives_analysis_failures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by user who created the print (-1 for no user)","title":"Created By Id"},"description":"Filter by user who created the print (-1 for no user)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/compare":{"get":{"tags":["archives"],"summary":"Compare Archives","description":"Compare multiple archives side by side.\n\nCompares print settings, filament usage, and print times.\nAlso analyzes correlation between settings and success/failure.\n\nArgs:\n    archive_ids: Comma-separated list of 2-5 archive IDs to compare","operationId":"compare_archives_api_v1_archives_compare_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated archive IDs (2-5)","title":"Archive Ids"},"description":"Comma-separated archive IDs (2-5)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/export":{"get":{"tags":["archives"],"summary":"Export Archives","description":"Export archives to CSV or Excel format.\n\nReturns a downloadable file with archive data.","operationId":"export_archives_api_v1_archives_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Export format: csv or xlsx","default":"csv","title":"Format"},"description":"Export format: csv or xlsx"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated field names","title":"Fields"},"description":"Comma-separated field names"},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (ISO format)","title":"Date From"},"description":"Start date (ISO format)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (ISO format)","title":"Date To"},"description":"End date (ISO format)"},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/stats/export":{"get":{"tags":["archives"],"summary":"Export Stats","description":"Export statistics summary to CSV or Excel format.","operationId":"export_stats_api_v1_archives_stats_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Export format: csv or xlsx","default":"csv","title":"Format"},"description":"Export format: csv or xlsx"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by user who created the print (-1 for no user)","title":"Created By Id"},"description":"Filter by user who created the print (-1 for no user)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/stats":{"get":{"tags":["archives"],"summary":"Get Archive Stats","description":"Get statistics across all archives.\n\nStats aggregate over PrintLogEntry (one row per print event), not over\nPrintArchive (one row per file). A reprint contributes a new PrintLogEntry\nso its filament/cost/time/energy add to the totals instead of overwriting\nthe source archive's first-run values (#1378).","operationId":"get_archive_stats_api_v1_archives_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date (inclusive), YYYY-MM-DD","title":"Date From"},"description":"Start date (inclusive), YYYY-MM-DD"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date (inclusive), YYYY-MM-DD","title":"Date To"},"description":"End date (inclusive), YYYY-MM-DD"},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"created_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by user who created the print (-1 for no user)","title":"Created By Id"},"description":"Filter by user who created the print (-1 for no user)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/tags":{"get":{"tags":["archives"],"summary":"Get All Tags","description":"List all unique tags with usage counts.\n\nReturns a list of tags sorted by count (descending), then by name.","operationId":"get_all_tags_api_v1_archives_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/tags/{tag_name}":{"put":{"tags":["archives"],"summary":"Rename Tag","description":"Rename a tag across all archives.\n\nRequest body should contain {\"new_name\": \"new tag name\"}.\nReturns the count of affected archives.","operationId":"rename_tag_api_v1_archives_tags__tag_name__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_name","in":"path","required":true,"schema":{"type":"string","title":"Tag Name"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete Tag","description":"Delete a tag from all archives.\n\nReturns the count of affected archives.","operationId":"delete_tag_api_v1_archives_tags__tag_name__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_name","in":"path","required":true,"schema":{"type":"string","title":"Tag Name"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}":{"get":{"tags":["archives"],"summary":"Get Archive","description":"Get a specific archive. With ``run_id``, as that run of it printed.","operationId":"get_archive_api_v1_archives__archive_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Show this run's outcome instead of the latest run's","title":"Run Id"},"description":"Show this run's outcome instead of the latest run's"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["archives"],"summary":"Update Archive","description":"Update archive metadata (tags, notes, cost, filament grams, is_favorite, project_id).","operationId":"update_archive_api_v1_archives__archive_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete Archive","description":"Delete an archive (soft by default; ``?purge_stats=true`` to hard-delete).\n\nBoth delete paths now cascade to related ``print_queue`` rows (#1734) —\nhard delete via the ``ON DELETE CASCADE`` FK, soft delete via the\n``_delete_related_queue_items`` helper. A 409 guard blocks the delete\nwhen any related queue item is currently mid-print so the dispatcher\ndoesn't lose its metadata trail under the running print.","operationId":"delete_archive_api_v1_archives__archive_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"purge_stats","in":"query","required":false,"schema":{"type":"boolean","description":"When false (default) the archive is soft-deleted — files removed from disk, row hidden from listings, but its filament / energy / time / cost contribution stays in Quick Stats. Set true to also drop the row from statistics (#1343).","default":false,"title":"Purge Stats"},"description":"When false (default) the archive is soft-deleted — files removed from disk, row hidden from listings, but its filament / energy / time / cost contribution stays in Quick Stats. Set true to also drop the row from statistics (#1343)."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/delete-impact":{"get":{"tags":["archives"],"summary":"Get Archive Delete Impact","description":"Pre-flight for the delete-confirm modal (#1734).\n\nReturns the number of related queue items the user is about to remove\nAND whether any of them are currently printing (which would block the\ndelete with a 409 — surfaced to the modal so it can disable the\nconfirm button instead of failing on submit). Cheap, single endpoint —\nnot folded into the archive GET response so the much larger list\nendpoint isn't forced to run the same query per row.","operationId":"get_archive_delete_impact_api_v1_archives__archive_id__delete_impact_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/runs":{"get":{"tags":["archives"],"summary":"List Archive Runs","description":"List PrintLogEntry rows for this archive — one per print event.\n\nNewest first. Drives the per-archive \"Print Log\" view (#1378).","operationId":"list_archive_runs_api_v1_archives__archive_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/runs/{run_id}/timelapse":{"get":{"tags":["archives"],"summary":"Get Run Timelapse","description":"One print's timelapse video (archive redesign): plates of one archive\neach keep their own, while the archive's timelapse route serves only the\nlatest print's. 404 for a print on a printer outside the caller's scope.","operationId":"get_run_timelapse_api_v1_archives__archive_id__runs__run_id__timelapse_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/similar":{"get":{"tags":["archives"],"summary":"Find Similar Archives","description":"Find archives with similar settings for comparison.\n\nReturns archives that match by:\n- Same print name (highest priority)\n- Same file content hash\n- Same filament type","operationId":"find_similar_archives_api_v1_archives__archive_id__similar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/favorite":{"post":{"tags":["archives"],"summary":"Toggle Favorite","description":"Toggle favorite status for an archive.","operationId":"toggle_favorite_api_v1_archives__archive_id__favorite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/recalculate-costs":{"post":{"tags":["archives"],"summary":"Recalculate All Costs","description":"Recalculate costs for all archives based on filament usage and prices.","operationId":"recalculate_all_costs_api_v1_archives_recalculate_costs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/duplicates":{"get":{"tags":["archives"],"summary":"Get Archive Duplicates","description":"Get duplicates for a specific archive.","operationId":"get_archive_duplicates_api_v1_archives__archive_id__duplicates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/backfill-hashes":{"post":{"tags":["archives"],"summary":"Backfill Content Hashes","description":"Compute and store content hashes for all archives missing them.","operationId":"backfill_content_hashes_api_v1_archives_backfill_hashes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/download":{"get":{"tags":["archives"],"summary":"Download Archive","description":"Download the 3MF file.","operationId":"download_archive_api_v1_archives__archive_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"inline","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Inline"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/file/{filename}":{"get":{"tags":["archives"],"summary":"Download Archive With Filename","description":"Download the 3MF file with filename in URL.","operationId":"download_archive_with_filename_api_v1_archives__archive_id__file__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/slicer-token":{"post":{"tags":["archives"],"summary":"Create Archive Slicer Token","description":"Create a short-lived download token for opening files in slicer applications.\n\nSlicer protocol handlers (bambustudioopen://, orcaslicer://) cannot send\nauth headers, so they use this token in the URL path instead.","operationId":"create_archive_slicer_token_api_v1_archives__archive_id__slicer_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/dl/{token}/{filename}":{"get":{"tags":["archives"],"summary":"Download Archive For Slicer","description":"Download 3MF file using a slicer download token.\n\nToken-authenticated (no auth headers needed). The token is short-lived and\narchive-bound, created by POST /{archive_id}/slicer-token, and redeemable\nfor the rest of its TTL rather than exactly once -- the slicer is a separate\nprocess that may fetch the URL more than once (#3029).\nFilename is at the end of the URL so slicers can detect the file format.","operationId":"download_archive_for_slicer_api_v1_archives__archive_id__dl__token___filename__get","parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/thumbnail":{"get":{"tags":["archives"],"summary":"Get Thumbnail","description":"Get the thumbnail image.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_thumbnail_api_v1_archives__archive_id__thumbnail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/printer-media":{"get":{"tags":["archives"],"summary":"Get Archive Printer Media","description":"Find downloadable timelapse and `/ipcam` files for one print.\n\nLocal attached timelapses are returned without touching the printer.\nPrinter directories are listed only when the caller also has\n``printers:files``; otherwise the local result is returned with a warning.\nFiles are downloaded only after the user explicitly selects them in the UI.","operationId":"get_archive_printer_media_api_v1_archives__archive_id__printer_media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/media-download-token":{"post":{"tags":["archives"],"summary":"Create Archive Media Download Token","description":"Mint a single-use token bound to an archive's attached timelapse.","operationId":"create_archive_media_download_token_api_v1_archives__archive_id__media_download_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/media/dl/{token}/{filename}":{"get":{"tags":["archives"],"summary":"Download Archive Media With Token","description":"Consume a resource-bound token and stream an attached timelapse.","operationId":"download_archive_media_with_token_api_v1_archives__archive_id__media_dl__token___filename__get","parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse":{"get":{"tags":["archives"],"summary":"Get Timelapse","description":"Get the timelapse video.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_timelapse_api_v1_archives__archive_id__timelapse_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete Timelapse","description":"Remove the timelapse video from an archive.","operationId":"delete_timelapse_api_v1_archives__archive_id__timelapse_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/scan":{"post":{"tags":["archives"],"summary":"Scan Timelapse","description":"Scan printer for timelapse matching this archive and attach it.","operationId":"scan_timelapse_api_v1_archives__archive_id__timelapse_scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/select":{"post":{"tags":["archives"],"summary":"Select Timelapse","description":"Manually select a timelapse from the printer to attach.","operationId":"select_timelapse_api_v1_archives__archive_id__timelapse_select_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"filename","in":"query","required":true,"schema":{"type":"string","description":"Timelapse filename to attach","title":"Filename"},"description":"Timelapse filename to attach"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/upload":{"post":{"tags":["archives"],"summary":"Upload Timelapse","description":"Manually upload a timelapse video to an archive.","operationId":"upload_timelapse_api_v1_archives__archive_id__timelapse_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_timelapse_api_v1_archives__archive_id__timelapse_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/info":{"get":{"tags":["archives"],"summary":"Get Timelapse Info","description":"Get timelapse video metadata for editor.","operationId":"get_timelapse_info_api_v1_archives__archive_id__timelapse_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/thumbnails":{"get":{"tags":["archives"],"summary":"Get Timelapse Thumbnails","description":"Generate timeline thumbnail frames for visual scrubbing.","operationId":"get_timelapse_thumbnails_api_v1_archives__archive_id__timelapse_thumbnails_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":10,"title":"Count"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","maximum":320,"minimum":80,"default":160,"title":"Width"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/process":{"post":{"tags":["archives"],"summary":"Process Timelapse","description":"Start re-encoding the timelapse with trim, speed and optional audio.\n\nRuns as a background job: poll ``GET .../timelapse/job`` for progress and\nthe result, ``DELETE .../timelapse/job`` cancels it.","operationId":"process_timelapse_api_v1_archives__archive_id__timelapse_process_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_timelapse_api_v1_archives__archive_id__timelapse_process_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/timelapse/job":{"get":{"tags":["archives"],"summary":"Get Timelapse Job","description":"The archive's running or last timelapse job: status, progress, result.","operationId":"get_timelapse_job_api_v1_archives__archive_id__timelapse_job_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Cancel Timelapse Job","description":"Cancel the running timelapse job; stops ffmpeg and drops its output.","operationId":"cancel_timelapse_job_api_v1_archives__archive_id__timelapse_job_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/photos":{"post":{"tags":["archives"],"summary":"Upload Photo","description":"Upload a photo of the printed result.","operationId":"upload_photo_api_v1_archives__archive_id__photos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_photo_api_v1_archives__archive_id__photos_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/photos/{filename}":{"get":{"tags":["archives"],"summary":"Get Photo","description":"Get a specific photo.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_photo_api_v1_archives__archive_id__photos__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete Photo","description":"Delete a photo.","operationId":"delete_photo_api_v1_archives__archive_id__photos__filename__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/confirm/{token}/{verdict}":{"get":{"tags":["archives"],"summary":"Confirm Outcome Page","description":"Open a one-tap verdict link. Reads only — the verdict is recorded by POST.\n\nThis used to be the route that recorded, and that was the defect: a GET\nthat changes state is answered by everything that walks a URL. Telegram\nand Slack fetch the links in a message body to build a preview card, mail\ngateways detonate them before delivery, browsers prefetch them — any one\nof those spent the single-use token and settled the outcome before the\noperator had read the question, always in the \"good\" direction because\ngood_url came first. Suppressing previews per channel does not cover the\nproxies and scanners in between; only removing the write from GET does.\n\nSo GET now hands back the prompt page and nothing else. The page's form\nPOSTs to this same URL, and :func:`confirm_outcome_by_token` records it.\nThe human cost is zero for the path the feature is built around: a URL\nopened from a notification button carries ``?tap=1`` and the page submits\nitself, so that tap is still the only tap. Nothing else gets that script,\nincluding a scanner that runs JavaScript -- the marker is on the buttons,\nnot in the message text a scanner reads.","operationId":"confirm_outcome_page_api_v1_archives_confirm__token___verdict__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"verdict","in":"path","required":true,"schema":{"type":"string","title":"Verdict"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["archives"],"summary":"Confirm Outcome By Token","description":"Record a print-outcome verdict via the capability token from a push notification.\n\nDeliberately unauthenticated: the token IS the credential. It is a 256-bit\nper-archive capability, minted when the confirmation prompt fires, and it\nonly ever grants writing good/reject on that one archive, exactly once.\n\"Exactly once\" is enforced by ``confirm_token_used_at`` rather than by\ndropping the token value, so a link for a print that was already answered\ncan be recognised and explained instead of looking broken.\n\nPOST is what keeps the capability the operator's: unfurlers, scanners and\nprefetchers issue GET, and the GET route above writes nothing. The two\ncallers that reach here are the prompt page's form and the ntfy action\nbutton, which performs its own request from the phone and is configured\nwith ``method=POST``. Returns a small HTML page for the phone browser.","operationId":"confirm_outcome_by_token_api_v1_archives_confirm__token___verdict__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"verdict","in":"path","required":true,"schema":{"type":"string","title":"Verdict"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/qrcode":{"get":{"tags":["archives"],"summary":"Get Qrcode","description":"Generate a QR code that links to this archive.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_qrcode_api_v1_archives__archive_id__qrcode_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Size"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/capabilities":{"get":{"tags":["archives"],"summary":"Get Archive Capabilities","description":"Check what viewing capabilities are available for this 3MF file.","operationId":"get_archive_capabilities_api_v1_archives__archive_id__capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/gcode":{"get":{"tags":["archives"],"summary":"Get Gcode","description":"Extract and return G-code from the 3MF file.\n\nWhen *plate* is provided, returns the G-code for that specific plate\n(e.g. ``?plate=2`` returns ``Metadata/plate_2.gcode``). If omitted, falls\nback to the archive's lowest-numbered plate — not the first member in the\nzip, which is whatever order the slicer wrote and routinely puts plate 2\nahead of plate 1.","operationId":"get_gcode_api_v1_archives__archive_id__gcode_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"plate","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/plate-preview":{"get":{"tags":["archives"],"summary":"Get Plate Preview","description":"Get the plate preview image from the 3MF file.\n\nReturns the slicer-generated plate thumbnail which shows the model\nwith correct colors and positioning.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_plate_preview_api_v1_archives__archive_id__plate_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/upload":{"post":{"tags":["archives"],"summary":"Upload Archive","description":"Manually upload a 3MF file to archive.\n\nprefer_filename_for_name is the same flag the FTP review flow and\nvirtual-printer dispatch already pass to ArchiveService.archive_print —\nthis endpoint just didn't expose it (#1152 follow-up). Those callers derive\nit from the VP-scoped `virtual_printer_archive_name_source` setting; here it\nis per-request, because the caller is an API client that knows whether the\nfilename it sent is the meaningful one (#2609).","operationId":"upload_archive_api_v1_archives_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"prefer_filename_for_name","in":"query","required":false,"schema":{"type":"boolean","description":"Name the archive after the uploaded filename instead of the print_name embedded in the 3MF's metadata. Off by default, which keeps the embedded name. Turn it on when the filename you send is the meaningful one — an integration naming files after its own jobs, or a file whose embedded title is a stale name from whoever originally sliced it.","default":false,"title":"Prefer Filename For Name"},"description":"Name the archive after the uploaded filename instead of the print_name embedded in the 3MF's metadata. Off by default, which keeps the embedded name. Turn it on when the filename you send is the meaningful one — an integration naming files after its own jobs, or a file whose embedded title is a stale name from whoever originally sliced it."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_archive_api_v1_archives_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/upload-bulk":{"post":{"tags":["archives"],"summary":"Upload Archives Bulk","description":"Bulk upload multiple 3MF files to archive.\n\nprefer_filename_for_name applies to every file in the batch. See\nupload_archive for the flag's lineage.","operationId":"upload_archives_bulk_api_v1_archives_upload_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"prefer_filename_for_name","in":"query","required":false,"schema":{"type":"boolean","description":"Name each archive after its uploaded filename instead of the print_name embedded in the 3MF's metadata. Applies to every file in the batch. Off by default, which keeps the embedded name.","default":false,"title":"Prefer Filename For Name"},"description":"Name each archive after its uploaded filename instead of the print_name embedded in the 3MF's metadata. Applies to every file in the batch. Off by default, which keeps the embedded name."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_archives_bulk_api_v1_archives_upload_bulk_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/plates":{"get":{"tags":["archives"],"summary":"Get Archive Plates","description":"Get available plates from a multi-plate 3MF archive.\n\nReturns a list of plates with their index, name, thumbnail availability,\nand filament requirements. For single-plate exports, returns a single plate.","operationId":"get_archive_plates_api_v1_archives__archive_id__plates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/plate-thumbnail/{plate_index}":{"get":{"tags":["archives"],"summary":"Get Plate Thumbnail","description":"Get the thumbnail image for a specific plate.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_plate_thumbnail_api_v1_archives__archive_id__plate_thumbnail__plate_index__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"plate_index","in":"path","required":true,"schema":{"type":"integer","title":"Plate Index"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/filament-requirements":{"get":{"tags":["archives"],"summary":"Get Filament Requirements","description":"Get filament requirements from the archived 3MF file.\n\nReturns the filaments used in this print with their slot IDs, types, colors,\nand usage amounts. This can be compared with current AMS state before reprinting.\n\nArgs:\n    archive_id: The archive ID\n    plate_id: Optional plate index to filter filaments for (for multi-plate files)","operationId":"get_filament_requirements_api_v1_archives__archive_id__filament_requirements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"plate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"name":"full_slots","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Full Slots"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/slice":{"post":{"tags":["archives"],"summary":"Slice Archive","description":"Enqueue a slice job for an archive's source. Returns 202 + job_id;\nthe slice runs in the background, the caller polls `GET /slice-jobs/{id}`.\n\nSource preference: ``source_3mf_path`` (the un-sliced project file the\nuser originally sent to slice) → ``file_path`` (the sliced 3MF/gcode that\nactually printed).","operationId":"slice_archive_api_v1_archives__archive_id__slice_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SliceRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/reprint":{"post":{"tags":["archives"],"summary":"Reprint Archive","description":"Legacy direct reprint endpoint. Use POST /queue/ instead.","operationId":"reprint_archive_api_v1_archives__archive_id__reprint_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"printer_id","in":"query","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/project-page":{"get":{"tags":["archives"],"summary":"Get Project Page","description":"Get the project page data from the 3MF file.","operationId":"get_project_page_api_v1_archives__archive_id__project_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["archives"],"summary":"Update Project Page","description":"Update project page metadata in the 3MF file.","operationId":"update_project_page_api_v1_archives__archive_id__project_page_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Update Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/project-image/{image_path}":{"get":{"tags":["archives"],"summary":"Get Project Image","description":"Get an image from the 3MF project page.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nreturns 404 for an archive the caller may not read (#3025).","operationId":"get_project_image_api_v1_archives__archive_id__project_image__image_path__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"image_path","in":"path","required":true,"schema":{"type":"string","title":"Image Path"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/source":{"post":{"tags":["archives"],"summary":"Upload Source 3Mf","description":"Upload the original source 3MF project file for an archive.","operationId":"upload_source_3mf_api_v1_archives__archive_id__source_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_source_3mf_api_v1_archives__archive_id__source_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["archives"],"summary":"Download Source 3Mf","description":"Download the source 3MF project file.","operationId":"download_source_3mf_api_v1_archives__archive_id__source_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete Source 3Mf","description":"Delete the source 3MF project file from an archive.","operationId":"delete_source_3mf_api_v1_archives__archive_id__source_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/source/{filename}":{"get":{"tags":["archives"],"summary":"Download Source 3Mf For Slicer","description":"Download source 3MF with filename in URL.","operationId":"download_source_3mf_for_slicer_api_v1_archives__archive_id__source__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/source-slicer-token":{"post":{"tags":["archives"],"summary":"Create Source Slicer Token","description":"Create a short-lived download token for opening source 3MF in slicer.","operationId":"create_source_slicer_token_api_v1_archives__archive_id__source_slicer_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/source-dl/{token}/{filename}":{"get":{"tags":["archives"],"summary":"Download Source 3Mf For Slicer With Token","description":"Download source 3MF using a slicer download token.\n\nToken-authenticated (no auth headers needed). The token is short-lived and\narchive-bound, created by POST /{archive_id}/source-slicer-token, and\nredeemable for the rest of its TTL rather than exactly once (#3029).","operationId":"download_source_3mf_for_slicer_with_token_api_v1_archives__archive_id__source_dl__token___filename__get","parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/upload-source":{"post":{"tags":["archives"],"summary":"Upload Source 3Mf By Name","description":"Upload source 3MF and match to archive by print name.\n\nThis endpoint is designed for slicer post-processing scripts.\nIt finds the most recent archive matching the print name and attaches the source.","operationId":"upload_source_3mf_by_name_api_v1_archives_upload_source_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"print_name","in":"query","required":false,"schema":{"type":"string","description":"Match archive by print name","title":"Print Name"},"description":"Match archive by print name"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_source_3mf_by_name_api_v1_archives_upload_source_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/{archive_id}/f3d":{"post":{"tags":["archives"],"summary":"Upload F3D","description":"Upload a Fusion 360 design file for an archive.","operationId":"upload_f3d_api_v1_archives__archive_id__f3d_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_f3d_api_v1_archives__archive_id__f3d_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["archives"],"summary":"Download F3D","description":"Download the Fusion 360 design file.","operationId":"download_f3d_api_v1_archives__archive_id__f3d_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["archives"],"summary":"Delete F3D","description":"Delete the Fusion 360 design file from an archive.","operationId":"delete_f3d_api_v1_archives__archive_id__f3d_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/filament-catalog/":{"get":{"tags":["filament-catalog"],"summary":"List Filaments","description":"List all filaments.","operationId":"list_filaments_api_v1_filament_catalog__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FilamentResponse"},"title":"Response List Filaments Api V1 Filament Catalog  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["filament-catalog"],"summary":"Create Filament","description":"Create a new filament entry.","operationId":"create_filament_api_v1_filament_catalog__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/filament-catalog/{filament_id}":{"get":{"tags":["filament-catalog"],"summary":"Get Filament","description":"Get a specific filament.","operationId":"get_filament_api_v1_filament_catalog__filament_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_id","in":"path","required":true,"schema":{"type":"integer","title":"Filament Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["filament-catalog"],"summary":"Update Filament","description":"Update a filament.","operationId":"update_filament_api_v1_filament_catalog__filament_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_id","in":"path","required":true,"schema":{"type":"integer","title":"Filament Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["filament-catalog"],"summary":"Delete Filament","description":"Delete a filament.","operationId":"delete_filament_api_v1_filament_catalog__filament_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_id","in":"path","required":true,"schema":{"type":"integer","title":"Filament Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/filament-catalog/calculate-cost":{"post":{"tags":["filament-catalog"],"summary":"Calculate Cost","description":"Calculate the cost for a given weight of filament.","operationId":"calculate_cost_api_v1_filament_catalog_calculate_cost_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_id","in":"query","required":true,"schema":{"type":"integer","title":"Filament Id"}},{"name":"weight_grams","in":"query","required":true,"schema":{"type":"number","title":"Weight Grams"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentCostCalculation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/filament-catalog/by-type/{filament_type}":{"get":{"tags":["filament-catalog"],"summary":"Get Filaments By Type","description":"Get all filaments of a specific type.","operationId":"get_filaments_by_type_api_v1_filament_catalog_by_type__filament_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_type","in":"path","required":true,"schema":{"type":"string","title":"Filament Type"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FilamentResponse"},"title":"Response Get Filaments By Type Api V1 Filament Catalog By Type  Filament Type  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/filament-catalog/seed-defaults":{"post":{"tags":["filament-catalog"],"summary":"Seed Default Filaments","description":"Seed the database with common filament types.","operationId":"seed_default_filaments_api_v1_filament_catalog_seed_defaults_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/me/balance":{"get":{"tags":["finance"],"summary":"Get My Balance","description":"Return the current user's wallet balance.","operationId":"get_my_balance_api_v1_finance_me_balance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/me/transactions":{"get":{"tags":["finance"],"summary":"Get My Transactions","description":"Return wallet ledger entries for the current user.","operationId":"get_my_transactions_api_v1_finance_me_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/transactions":{"get":{"tags":["finance"],"summary":"Get All Transactions","description":"Return wallet ledger entries across users for admin finance view.","operationId":"get_all_transactions_api_v1_finance_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Optional filter by user id","title":"User Id"},"description":"Optional filter by user id"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/transactions/{transaction_id}":{"delete":{"tags":["finance"],"summary":"Delete Transaction","description":"Delete a wallet transaction and rebuild the user's ledger to keep balances consistent.","operationId":"delete_transaction_api_v1_finance_transactions__transaction_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"integer","title":"Transaction Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["finance"],"summary":"Edit Transaction","description":"Edit a wallet transaction (user_id, cost_center_id, amount, description) and rebuild ledger.","operationId":"edit_transaction_api_v1_finance_transactions__transaction_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"integer","title":"Transaction Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/transactions/manual":{"post":{"tags":["finance"],"summary":"Create Manual Print","description":"Create a manual print charge transaction (for admin purposes).","operationId":"create_manual_print_api_v1_finance_transactions_manual_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualPrintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers/mine":{"get":{"tags":["finance"],"summary":"Get My Cost Centers","description":"Return private and assigned cost centers for the current user.\n\nAn API key that may queue gets its owner's, the ones it can queue with\nwhen billing is on (#3256). A key without an owner has none.","operationId":"get_my_cost_centers_api_v1_finance_cost_centers_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CostCenterSummaryResponse"},"title":"Response Get My Cost Centers Api V1 Finance Cost Centers Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/users/{user_id}/balance":{"get":{"tags":["finance"],"summary":"Get User Balance","description":"Return a specific user's wallet balance.","operationId":"get_user_balance_api_v1_finance_users__user_id__balance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/users/{user_id}/transactions":{"get":{"tags":["finance"],"summary":"Get User Transactions","description":"Return wallet ledger entries for a specific user.","operationId":"get_user_transactions_api_v1_finance_users__user_id__transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WalletTransactionResponse"},"title":"Response Get User Transactions Api V1 Finance Users  User Id  Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/users/{user_id}/deposit":{"post":{"tags":["finance"],"summary":"Deposit User Balance","description":"Add funds to a user's wallet.","operationId":"deposit_user_balance_api_v1_finance_users__user_id__deposit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/users/{user_id}/withdraw":{"post":{"tags":["finance"],"summary":"Withdraw User Balance","description":"Withdraw funds from a user's wallet.","operationId":"withdraw_user_balance_api_v1_finance_users__user_id__withdraw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/rebuild-balance-ledger":{"post":{"tags":["finance"],"summary":"Rebuild Balance Ledger","description":"Recompute balance_after for all wallet transactions.\n\nThis rebuilds the running balance for all users and cost centers.\n- Personal transactions: unassigned plus the user's own private cost center\n- Cost-center transactions: global running balance for the entire cost center","operationId":"rebuild_balance_ledger_api_v1_finance_rebuild_balance_ledger_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers":{"get":{"tags":["finance"],"summary":"List Cost Centers","description":"List all cost centers.\n\nRequires admin-level finance permissions.","operationId":"list_cost_centers_api_v1_finance_cost_centers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CostCenterSummaryResponse"},"title":"Response List Cost Centers Api V1 Finance Cost Centers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["finance"],"summary":"Create Cost Center","description":"Create a shared cost center.","operationId":"create_cost_center_api_v1_finance_cost_centers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers/{cost_center_id}":{"get":{"tags":["finance"],"summary":"Get Cost Center","description":"Get one cost center with its memberships.","operationId":"get_cost_center_api_v1_finance_cost_centers__cost_center_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["finance"],"summary":"Update Cost Center","description":"Update name or active-state of a cost center.","operationId":"update_cost_center_api_v1_finance_cost_centers__cost_center_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["finance"],"summary":"Delete Cost Center","description":"Delete a shared cost center.","operationId":"delete_cost_center_api_v1_finance_cost_centers__cost_center_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers/{cost_center_id}/budgets":{"patch":{"tags":["finance"],"summary":"Update Cost Center Budgets","description":"Update budget values of a cost center.","operationId":"update_cost_center_budgets_api_v1_finance_cost_centers__cost_center_id__budgets_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterBudgetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers/{cost_center_id}/members":{"post":{"tags":["finance"],"summary":"Upsert Cost Center Member","description":"Assign or update a user's membership on a cost center.","operationId":"upsert_cost_center_member_api_v1_finance_cost_centers__cost_center_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance/cost-centers/{cost_center_id}/members/{user_id}":{"delete":{"tags":["finance"],"summary":"Remove Cost Center Member","description":"Remove a user from a shared cost center.","operationId":"remove_cost_center_member_api_v1_finance_cost_centers__cost_center_id__members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_center_id","in":"path","required":true,"schema":{"type":"integer","title":"Cost Center Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/catalog":{"get":{"tags":["inventory"],"summary":"Get Spool Catalog","description":"Get all spool catalog entries.","operationId":"get_spool_catalog_api_v1_inventory_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogEntryResponse"},"title":"Response Get Spool Catalog Api V1 Inventory Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Add Catalog Entry","description":"Add a new spool catalog entry.","operationId":"add_catalog_entry_api_v1_inventory_catalog_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogEntryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/catalog/{entry_id}":{"put":{"tags":["inventory"],"summary":"Update Catalog Entry","description":"Update a spool catalog entry.","operationId":"update_catalog_entry_api_v1_inventory_catalog__entry_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Delete Catalog Entry","description":"Delete a spool catalog entry.","operationId":"delete_catalog_entry_api_v1_inventory_catalog__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/catalog/bulk-delete":{"post":{"tags":["inventory"],"summary":"Bulk Delete Catalog Entries","description":"Delete multiple spool catalog entries by ID.","operationId":"bulk_delete_catalog_entries_api_v1_inventory_catalog_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/catalog/reset":{"post":{"tags":["inventory"],"summary":"Reset Spool Catalog","description":"Reset spool catalog to defaults.","operationId":"reset_spool_catalog_api_v1_inventory_catalog_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/locations":{"get":{"tags":["inventory"],"summary":"List Locations","description":"List all storage locations with spool counts.","operationId":"list_locations_api_v1_inventory_locations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationResponse"},"title":"Response List Locations Api V1 Inventory Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Location","description":"Create a storage location.","operationId":"create_location_api_v1_inventory_locations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/locations/{location_id}":{"patch":{"tags":["inventory"],"summary":"Update Location","description":"Update a storage location (rename propagates to assigned spools).","operationId":"update_location_api_v1_inventory_locations__location_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Delete Location","description":"Delete a storage location when no spools are assigned.","operationId":"delete_location_api_v1_inventory_locations__location_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/suppliers":{"get":{"tags":["inventory"],"summary":"List Suppliers","description":"List all suppliers with their spool-usage counts.","operationId":"list_suppliers_api_v1_inventory_suppliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierResponse"},"title":"Response List Suppliers Api V1 Inventory Suppliers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Supplier","description":"Create a supplier (mirrors create_location, duplicate name included).","operationId":"create_supplier_api_v1_inventory_suppliers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/suppliers/{supplier_id}":{"patch":{"tags":["inventory"],"summary":"Update Supplier","description":"Update a supplier.","operationId":"update_supplier_api_v1_inventory_suppliers__supplier_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","title":"Supplier Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Delete Supplier","description":"Delete a supplier when no spools reference it (mirrors delete_location).","operationId":"delete_supplier_api_v1_inventory_suppliers__supplier_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"integer","title":"Supplier Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors":{"get":{"tags":["inventory"],"summary":"Get Color Catalog","description":"Get all color catalog entries.","operationId":"get_color_catalog_api_v1_inventory_colors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ColorEntryResponse"},"title":"Response Get Color Catalog Api V1 Inventory Colors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Add Color Entry","description":"Add a new color catalog entry.","operationId":"add_color_entry_api_v1_inventory_colors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorEntryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/map":{"get":{"tags":["inventory"],"summary":"Get Color Name Map","description":"Compact {hex: name} map for frontend color-name resolution.\n\nNot gated on INVENTORY_READ — every page that renders a spool color needs\nthis, including read-only views available to users without inventory access.\nNormalized to lowercase 6-char hex without '#'. When multiple catalog entries\nshare the same hex (different materials or manufacturers), Bambu Lab wins,\nthen default entries, then the first encountered.\n\n``by_material`` carries the names that collapsing loses. A hex is not one\ncolour in Bambu's range: #FFFFFF is Jade White in PLA Basic, Ivory White in\nPLA Matte and plain White in six more, and #000000 is Black except in PLA\nMatte where it is Charcoal. A caller that knows the material — an AMS slot\nknows it as ``tray_sub_brands`` — looks up ``\"<material>|<hex>\"`` there\nfirst and falls back to ``colors`` (#2875).\n\nAn entry is included only when it recovers a name the *same manufacturer's*\nown range lost. Two conditions, both load-bearing: a name equal to the\ncollapsed one is pure weight, and a name from a different manufacturer is\nnot a recovery at all — it would put Prusament's \"Pristine White\" on every\ngeneric white PLA slot in place of Bambu's \"Jade White\", trading one\narbitrary answer for another. What survives is the handful of cases this\nexists for.\n\n``bambu`` lists every Bambu Lab row as ``{hex, name, material}`` for naming\na colour by its nearest Bambu entry (#3279). A colour picked on the\nprinter's touchscreen is reported a step or two off the catalogue's hex\n(5A657B for Blue Grey 5B6579), which no exact lookup finds. Only Bambu's\nrows: that is the printer's palette, and another brand's name for a\nneighbouring hex would be a guess.\n\n``preset_materials`` maps each Bambu preset id to its product line\n(``GFA00`` -> ``PLA Basic``). A slot without RFID reports the preset picked\non the printer's screen but an empty ``tray_sub_brands``, and the product\nline is what the nearest search looks in first.","operationId":"get_color_name_map_api_v1_inventory_colors_map_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/{entry_id}":{"put":{"tags":["inventory"],"summary":"Update Color Entry","description":"Update a color catalog entry.","operationId":"update_color_entry_api_v1_inventory_colors__entry_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Delete Color Entry","description":"Delete a color catalog entry.","operationId":"delete_color_entry_api_v1_inventory_colors__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/bulk-delete":{"post":{"tags":["inventory"],"summary":"Bulk Delete Color Entries","description":"Delete multiple color catalog entries by ID.","operationId":"bulk_delete_color_entries_api_v1_inventory_colors_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/reset":{"post":{"tags":["inventory"],"summary":"Reset Color Catalog","description":"Reset color catalog to defaults.","operationId":"reset_color_catalog_api_v1_inventory_colors_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/lookup":{"get":{"tags":["inventory"],"summary":"Lookup Color","description":"Look up a color by manufacturer and color name.","operationId":"lookup_color_api_v1_inventory_colors_lookup_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manufacturer","in":"query","required":true,"schema":{"type":"string","title":"Manufacturer"}},{"name":"color_name","in":"query","required":true,"schema":{"type":"string","title":"Color Name"}},{"name":"material","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/by-material":{"get":{"tags":["inventory"],"summary":"Get Color By Material","description":"Disambiguated hex→name lookup that respects material context.\n\n``/colors/map`` collapses every catalog entry sharing a hex to a single\nname with \"Bambu Lab > is_default > first\" priority — that loses, e.g.,\n\"PLA Matte Charcoal\" (#000000) behind \"PLA Basic Black\" (also #000000).\nThis endpoint preserves the material context so the queue scheduler's\nFilament Override label can show the actually-sliced sub-brand colour\ninstead of the generic bucket. #1718.\n\nReturns ``color_name=None`` when the hex isn't in the catalog at all.\nWhen the hex IS in the catalog but no entry matches the requested\nmaterial (or none was supplied), falls back to the same priority order\nas ``/colors/map`` so callers without a material hint don't regress.\n\nNot gated on INVENTORY_READ for the same reason ``/colors/map`` isn't —\nevery queue / archive view that renders a sliced filament colour needs\nthis, including read-only roles.","operationId":"get_color_by_material_api_v1_inventory_colors_by_material_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hex","in":"query","required":true,"schema":{"type":"string","title":"Hex"}},{"name":"material","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorByMaterialResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/search":{"get":{"tags":["inventory"],"summary":"Search Colors","description":"Search colors by manufacturer and/or material.","operationId":"search_colors_api_v1_inventory_colors_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"manufacturer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"}},{"name":"material","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ColorEntryResponse"},"title":"Response Search Colors Api V1 Inventory Colors Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/colors/sync":{"post":{"tags":["inventory"],"summary":"Sync From Filamentcolors","description":"Sync colors from FilamentColors.xyz API with progress streaming.","operationId":"sync_from_filamentcolors_api_v1_inventory_colors_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools":{"get":{"tags":["inventory"],"summary":"List Spools","description":"List all spools, excluding archived by default.","operationId":"list_spools_api_v1_inventory_spools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolResponse"},"title":"Response List Spools Api V1 Inventory Spools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Create Spool","description":"Create a new spool.","operationId":"create_spool_api_v1_inventory_spools_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/export":{"get":{"tags":["inventory"],"summary":"Export Spools Csv","description":"Export the active inventory as CSV (same schema the importer accepts).","operationId":"export_spools_csv_api_v1_inventory_spools_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/import":{"post":{"tags":["inventory"],"summary":"Import Spools Csv","description":"Import spools from a CSV file.\n\nWith ``dry_run=true`` returns an ImportPreview (per-row valid/error/skipped,\ncolours resolved) and writes nothing — the UI shows this before the user\nconfirms. With ``dry_run=false`` it validates the same way and then persists\nonly the valid rows in a single transaction (invalid rows are skipped, the\nuser fixes the CSV and re-uploads), returning an ImportResult summary.","operationId":"import_spools_csv_api_v1_inventory_spools_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_spools_csv_api_v1_inventory_spools_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportPreview"},{"$ref":"#/components/schemas/ImportResult"}],"title":"Response Import Spools Csv Api V1 Inventory Spools Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/by-tag":{"get":{"tags":["inventory"],"summary":"Get Spool By Tag","description":"Find a single spool by its NFC ``tray_uuid`` and/or ``tag_uid``.\n\nLets NFC inventory integrations dedupe a scan without listing the whole\ninventory. ``tray_uuid`` is the primary identifier (it matches the value the\nAMS reports over MQTT), so it is tried first; ``tag_uid`` is the fallback.\nAt least one identifier must be supplied. Returns 404 when nothing matches.\n\nAccepts ``inventory:read`` OR ``inventory:update`` so a Manage-Inventory API\nkey (which has ``inventory:update`` via ``can_manage_inventory``) can read a\nspool back without widening the global ``INVENTORY_READ`` scope mapping (#1663).","operationId":"get_spool_by_tag_api_v1_inventory_spools_by_tag_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tray_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"}},{"name":"tag_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}":{"get":{"tags":["inventory"],"summary":"Get Spool","description":"Get a single spool with k_profiles.","operationId":"get_spool_api_v1_inventory_spools__spool_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inventory"],"summary":"Update Spool","description":"Update a spool.","operationId":"update_spool_api_v1_inventory_spools__spool_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Delete Spool","description":"Hard delete a spool.","operationId":"delete_spool_api_v1_inventory_spools__spool_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/bulk":{"post":{"tags":["inventory"],"summary":"Bulk Create Spools","description":"Create multiple identical spools.","operationId":"bulk_create_spools_api_v1_inventory_spools_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolBulkCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolResponse"},"title":"Response Bulk Create Spools Api V1 Inventory Spools Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/archive":{"post":{"tags":["inventory"],"summary":"Archive Spool","description":"Soft-delete a spool by setting archived_at.","operationId":"archive_spool_api_v1_inventory_spools__spool_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/restore":{"post":{"tags":["inventory"],"summary":"Restore Spool","description":"Restore an archived spool.","operationId":"restore_spool_api_v1_inventory_spools__spool_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/reset-consumed-counter":{"post":{"tags":["inventory"],"summary":"Reset Spool Consumed Counter","description":"Zero the displayed \"Total Consumed\" counter without touching remaining.\n\nStamps `weight_used_baseline = weight_used` so the Inventory page's\n`weight_used - baseline` display reads 0, while `label_weight -\nweight_used` (remaining) is unchanged. weight_locked is also left\nalone — the spool keeps receiving AMS auto-sync updates. Matches\nSpoolman's split between used_weight and remaining_weight (#1390).\n\nThe earlier name `/reset-usage` was misleading: callers reasonably\nexpected `weight_used` itself to drop to 0 and were surprised when\nthe response showed it unchanged. The current name describes what\nthe endpoint actually does — reset the \"Total Consumed\" counter\nwidget, not the lifetime weight_used field.","operationId":"reset_spool_consumed_counter_api_v1_inventory_spools__spool_id__reset_consumed_counter_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/reset-consumed-counter-bulk":{"post":{"tags":["inventory"],"summary":"Bulk Reset Spool Consumed Counter","description":"Bulk-stamp baseline = weight_used across the given spool IDs.\n\nCaller passes an explicit list of IDs — no \"reset all\" shortcut, since\na typo on a wildcard would wipe the entire inventory's tracking.\nSame semantics as the per-spool endpoint: remaining is preserved,\nweight_locked is left alone.","operationId":"bulk_reset_spool_consumed_counter_api_v1_inventory_spools_reset_consumed_counter_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/bulk-update":{"post":{"tags":["inventory"],"summary":"Bulk Update Spools","description":"Apply the same partial update to every listed spool.\n\nPer-spool errors are collected and returned alongside the success count so\na single bad ID doesn't abort the whole batch. Unknown IDs are reported\nin the ``not_found`` list.","operationId":"bulk_update_spools_api_v1_inventory_spools_bulk_update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/bulk-delete":{"post":{"tags":["inventory"],"summary":"Bulk Delete Spools","description":"Hard-delete every listed spool. Unknown IDs are returned in not_found.","operationId":"bulk_delete_spools_api_v1_inventory_spools_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/bulk-archive":{"post":{"tags":["inventory"],"summary":"Bulk Archive Spools","description":"Soft-archive every listed spool (sets archived_at). Already-archived spools are left alone and counted in already_archived.","operationId":"bulk_archive_spools_api_v1_inventory_spools_bulk_archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/bulk-restore":{"post":{"tags":["inventory"],"summary":"Bulk Restore Spools","description":"Restore every listed archived spool. Non-archived rows are no-ops counted in already_active.","operationId":"bulk_restore_spools_api_v1_inventory_spools_bulk_restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/k-profiles":{"get":{"tags":["inventory"],"summary":"List K Profiles","description":"List K-profiles for a spool.","operationId":"list_k_profiles_api_v1_inventory_spools__spool_id__k_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolKProfileResponse"},"title":"Response List K Profiles Api V1 Inventory Spools  Spool Id  K Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["inventory"],"summary":"Replace K Profiles","description":"Replace all K-profiles for a spool (batch save).\n\nA caller limited to some printers (#1727) replaces only theirs: the\nprofiles of printers it cannot see -- which its form never showed, a new\nspool's from its product's profile default (#1326) among them -- stay.","operationId":"replace_k_profiles_api_v1_inventory_spools__spool_id__k_profiles_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolKProfileBase"},"title":"Profiles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolKProfileResponse"},"title":"Response Replace K Profiles Api V1 Inventory Spools  Spool Id  K Profiles Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/suppliers":{"put":{"tags":["inventory"],"summary":"Replace Spool Suppliers","description":"Replace a spool's supplier assignments (#2988, batch save).\n\nSame replace-all shape as the k-profiles endpoint. At most one assignment\nmay be the purchase source — the record of where this concrete spool was\nactually bought; the rest read as alternative sources.","operationId":"replace_spool_suppliers_api_v1_inventory_spools__spool_id__suppliers_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolSupplierLinkInput"},"title":"Links"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolSupplierResponse"},"title":"Response Replace Spool Suppliers Api V1 Inventory Spools  Spool Id  Suppliers Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/filament-presets":{"get":{"tags":["inventory"],"summary":"List Filament Presets","description":"List per-printer-model preset overrides for a spool.\n\nA dedicated endpoint rather than a field on ``SpoolResponse``: the\ninventory list returns every spool the user owns, and only the spool form\nand the assign path ever need this list, one spool at a time.","operationId":"list_filament_presets_api_v1_inventory_spools__spool_id__filament_presets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolFilamentPresetResponse"},"title":"Response List Filament Presets Api V1 Inventory Spools  Spool Id  Filament Presets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["inventory"],"summary":"Replace Filament Presets","description":"Replace all per-printer-model preset overrides for a spool.\n\nReplace rather than merge, matching the K-profile endpoint next door: the\nspool form always holds the complete set, and an empty list is how the\nuser clears every override back to the spool's own preset.","operationId":"replace_filament_presets_api_v1_inventory_spools__spool_id__filament_presets_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolFilamentPresetBase"},"title":"Presets"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolFilamentPresetResponse"},"title":"Response Replace Filament Presets Api V1 Inventory Spools  Spool Id  Filament Presets Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/profile-defaults":{"get":{"tags":["inventory"],"summary":"List Profile Defaults","description":"Every profile default, ordered by product.","operationId":"list_profile_defaults_api_v1_inventory_profile_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FilamentProfileDefaultResponse"},"title":"Response List Profile Defaults Api V1 Inventory Profile Defaults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["inventory"],"summary":"Save Profile Default","description":"Create or replace the default for the product in the body.\n\nA full replacement, like the spool's own K-profile and preset endpoints:\nthe body is everything the default holds. K profiles of printers the\ncaller cannot see are kept rather than cleared, and the body's rows for\nthem are ignored.","operationId":"save_profile_default_api_v1_inventory_profile_defaults_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentProfileDefaultWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentProfileDefaultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/profile-defaults/resolve":{"get":{"tags":["inventory"],"summary":"Resolve Profile Default","description":"What a new spool of this product starts with; null when it has no default.\n\nThe spool form fills its Printers tab from this, so the user sees what the\ncreate will apply before saving.","operationId":"resolve_profile_default_api_v1_inventory_profile_defaults_resolve_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"material","in":"query","required":true,"schema":{"type":"string","title":"Material"}},{"name":"brand","in":"query","required":false,"schema":{"type":"string","default":"","title":"Brand"}},{"name":"subtype","in":"query","required":false,"schema":{"type":"string","default":"","title":"Subtype"}},{"name":"color_name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Color Name"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResolvedProfileDefault"},{"type":"null"}],"title":"Response Resolve Profile Default Api V1 Inventory Profile Defaults Resolve Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/profile-defaults/{default_id}":{"delete":{"tags":["inventory"],"summary":"Delete Profile Default","description":"Delete a default. Spools that already got its profiles keep them.","operationId":"delete_profile_default_api_v1_inventory_profile_defaults__default_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"default_id","in":"path","required":true,"schema":{"type":"integer","title":"Default Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/profile-defaults/{default_id}/apply":{"post":{"tags":["inventory"],"summary":"Apply Profile Default","description":"Fill in what active spools of this default's product do not have yet.\n\nNever overwrites: a spool keeps its own preset, its preset per model and\nnozzle, and its K profile per hotend.","operationId":"apply_profile_default_api_v1_inventory_profile_defaults__default_id__apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"default_id","in":"path","required":true,"schema":{"type":"integer","title":"Default Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDefaultApplyResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/assignments":{"get":{"tags":["inventory"],"summary":"List Assignments","description":"List spool assignments, optionally filtered by printer.","operationId":"list_assignments_api_v1_inventory_assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolAssignmentResponse"},"title":"Response List Assignments Api V1 Inventory Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Assign Spool","description":"Assign a spool to an AMS slot and auto-configure via MQTT.","operationId":"assign_spool_api_v1_inventory_assignments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolAssignmentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/assignments/{printer_id}/{ams_id}/{tray_id}":{"delete":{"tags":["inventory"],"summary":"Unassign Spool","description":"Unassign a spool from an AMS slot.","operationId":"unassign_spool_api_v1_inventory_assignments__printer_id___ams_id___tray_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"tray_id","in":"path","required":true,"schema":{"type":"integer","title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/link-tag":{"patch":{"tags":["inventory"],"summary":"Link Tag To Spool","description":"Link an RFID tag_uid/tray_uuid to an existing spool.\n\nA tag another active spool already carries is refused with the shared\n``tag_already_linked`` 409, which names that spool so a caller can offer\nto move the tag instead of only reporting that it is taken (#3110).","operationId":"link_tag_to_spool_api_v1_inventory_spools__spool_id__link_tag_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/{spool_id}/usage":{"get":{"tags":["inventory"],"summary":"Get Spool Usage History","description":"Get usage history for a specific spool.","operationId":"get_spool_usage_history_api_v1_inventory_spools__spool_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolUsageHistoryResponse"},"title":"Response Get Spool Usage History Api V1 Inventory Spools  Spool Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Clear Spool Usage History","description":"Clear usage history for a spool.","operationId":"clear_spool_usage_history_api_v1_inventory_spools__spool_id__usage_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/stats/suppliers":{"get":{"tags":["inventory"],"summary":"Get Supplier Stats","description":"Aggregate the inventory by purchase-source supplier (#2988).\n\nGroups by the supplier a spool was actually bought from (the\n``is_purchase_source`` assignment), so \"how much did we run through\nsupplier X\" reads directly. Stock comes from active spools; consumption\nand cost from the recorded usage history, archived spools included —\ntheir consumption happened. Sorted by consumption, heaviest first, then by name.\n\n``date_from`` / ``date_to`` scope the usage half only, so the widget can\nhonour the dashboard timeframe like every other one on that page. Stock is\npoint-in-time by nature and is never windowed.","operationId":"get_supplier_stats_api_v1_inventory_stats_suppliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date (inclusive), YYYY-MM-DD","title":"Date From"},"description":"Start date (inclusive), YYYY-MM-DD"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date (inclusive), YYYY-MM-DD","title":"Date To"},"description":"End date (inclusive), YYYY-MM-DD"},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupplierStats"},"title":"Response Get Supplier Stats Api V1 Inventory Stats Suppliers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/stats/material-numbers":{"get":{"tags":["inventory"],"summary":"Get Material Number Stats","description":"Aggregate the inventory by material number (#2870).\n\nThe material number is the internal purchasing identifier shared by all\nspools of a product, so this is the grouping the business actually costs\nby — unlike brand+material+colour. Two queries: active-spool counts and\nremaining weight from the spool table, consumption and cost from the\nrecorded usage history (archived spools included — their consumption\nhappened).\n\n``date_from``/``date_to`` narrow the usage half only, so the widget can\nfollow the dashboard timeframe the rest of the stats page uses. Stock is\npoint-in-time by nature and stays unfiltered — \"how much do I hold\" has\nno date range. Sorted by consumption, heaviest first, then by number so\na range where nothing was consumed still lists in a stable order.","operationId":"get_material_number_stats_api_v1_inventory_stats_material_numbers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"IANA zone the dates are calendar days in; the server's when omitted","title":"Tz"},"description":"IANA zone the dates are calendar days in; the server's when omitted"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaterialNumberStats"},"title":"Response Get Material Number Stats Api V1 Inventory Stats Material Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/usage":{"get":{"tags":["inventory"],"summary":"Get All Usage History","description":"Get global usage history, optionally filtered by printer.\n\nOne inventory's at a time: ``spoolman`` for the Spoolman spools'\n(#3407), otherwise the built-in ones'. Each keys its spools by its own ids.","operationId":"get_all_usage_history_api_v1_inventory_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"spoolman","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Spoolman"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolUsageHistoryResponse"},"title":"Response Get All Usage History Api V1 Inventory Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/sync-ams-weights":{"post":{"tags":["inventory"],"summary":"Sync Weights From Ams","description":"Force-sync spool weight_used from live AMS remain% data.\n\nOverwrites the database weight_used for every assigned spool using the\ncurrent AMS remain% from connected printers.  This is a manual recovery\ntool — it bypasses the normal \"only increase\" guard, and the weight lock\na hand-set or weighed figure carries, which it releases.\n\nA printer that is printing is left alone: its print's usage is charged\nwhen it completes, on top of whatever weight the spool has by then.","operationId":"sync_weights_from_ams_api_v1_inventory_sync_ams_weights_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/sku-settings":{"get":{"tags":["inventory"],"summary":"List Sku Settings","description":"List all filament SKU reorder settings.","operationId":"list_sku_settings_api_v1_inventory_sku_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FilamentSkuSettingsResponse"},"title":"Response List Sku Settings Api V1 Inventory Sku Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Upsert Sku Settings","description":"Create or update reorder settings for a filament SKU (material/subtype/brand).","operationId":"upsert_sku_settings_api_v1_inventory_sku_settings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentSkuSettingsUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilamentSkuSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/shopping-list":{"get":{"tags":["inventory"],"summary":"Get Shopping List","description":"Get the filament shopping list.","operationId":"get_shopping_list_api_v1_inventory_shopping_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShoppingListItemResponse"},"title":"Response Get Shopping List Api V1 Inventory Shopping List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Add To Shopping List","description":"Add a filament SKU to the shopping list.","operationId":"add_to_shopping_list_api_v1_inventory_shopping_list_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoppingListItemCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoppingListItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Clear Shopping List","description":"Clear all items from the shopping list.","operationId":"clear_shopping_list_api_v1_inventory_shopping_list_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/shopping-list/{item_id}/status":{"patch":{"tags":["inventory"],"summary":"Update Shopping List Status","description":"Update the purchase status of a shopping list item.","operationId":"update_shopping_list_status_api_v1_inventory_shopping_list__item_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoppingListItemStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShoppingListItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/shopping-list/{item_id}":{"delete":{"tags":["inventory"],"summary":"Remove From Shopping List","description":"Remove a single item from the shopping list.","operationId":"remove_from_shopping_list_api_v1_inventory_shopping_list__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/spools/from-slot":{"post":{"tags":["inventory"],"summary":"Create Spool From Slot","description":"Explicit user action: create an inventory spool from an AMS slot's current tray data.\n\nUsed by the \"+ Add to inventory\" affordance when auto_add_unknown_rfid is disabled —\nthe user looked at the slot and chose to register it. Also assigns the new spool\nto the slot in the same call.","operationId":"create_spool_from_slot_api_v1_inventory_spools_from_slot_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpoolFromSlotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/labels":{"post":{"tags":["labels"],"summary":"Render Local Inventory Labels","description":"Render labels for spools in the local inventory.","operationId":"render_local_inventory_labels_api_v1_inventory_labels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/labels/preview":{"post":{"tags":["labels"],"summary":"Preview Local Inventory Label","description":"One label for a local spool, as a PNG, for the picker's preview.","operationId":"preview_local_inventory_label_api_v1_inventory_labels_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/labels":{"post":{"tags":["labels"],"summary":"Render Spoolman Labels","description":"Render labels for spools tracked in Spoolman.","operationId":"render_spoolman_labels_api_v1_spoolman_labels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/labels/preview":{"post":{"tags":["labels"],"summary":"Preview Spoolman Label","description":"One label for a Spoolman spool, as a PNG, for the picker's preview.","operationId":"preview_spoolman_label_api_v1_spoolman_labels_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/label-templates":{"get":{"tags":["labels"],"summary":"List Label Templates","description":"All saved label templates, in natural name order.","operationId":"list_label_templates_api_v1_label_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LabelTemplateResponse"},"title":"Response List Label Templates Api V1 Label Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["labels"],"summary":"Create Label Template","description":"Save a custom sheet layout under a name.","operationId":"create_label_template_api_v1_label_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelTemplateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/label-templates/{template_id}":{"put":{"tags":["labels"],"summary":"Replace Label Template","description":"Rename a saved template or change its layout. The body is the whole\ntemplate, as the dialog's form always holds all of it.","operationId":"replace_label_template_api_v1_label_templates__template_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["labels"],"summary":"Delete Label Template","description":"Delete a saved template. Labels already printed with it are unaffected.","operationId":"delete_label_template_api_v1_label_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/":{"get":{"tags":["settings"],"summary":"Get Settings","description":"Get all application settings.","operationId":"get_settings_api_v1_settings__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Settings","description":"Update application settings.","operationId":"update_settings_api_v1_settings__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["settings"],"summary":"Patch Settings","description":"Partially update application settings (same as PUT, for REST compatibility).","operationId":"patch_settings_api_v1_settings__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings":{"get":{"tags":["settings"],"summary":"Get Settings","description":"Get all application settings.","operationId":"get_settings_api_v1_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["settings"],"summary":"Patch Settings","description":"Partially update application settings (same as PUT, for REST compatibility).","operationId":"patch_settings_api_v1_settings_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/electricity-price":{"post":{"tags":["settings"],"summary":"Update Electricity Price","description":"Update the per-kWh electricity cost used by the energy-tracking pipeline.\n\nThis is the only settings field writable via API key, gated by the\n``can_update_energy_cost`` toggle on the key. JWT users still need the\nstandard ``SETTINGS_UPDATE`` permission. See #1356 for the rationale —\nthe general ``PATCH /settings`` route remains denied for API keys because\nit can rewrite SMTP/LDAP/MQTT credentials, which is a much wider surface\nthan the documented dynamic-tariff use case requires.","operationId":"update_electricity_price_api_v1_settings_electricity_price_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElectricityPriceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/reset":{"post":{"tags":["settings"],"summary":"Reset Settings","description":"Reset all settings to defaults.","operationId":"reset_settings_api_v1_settings_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/default-sidebar-order":{"get":{"tags":["settings"],"summary":"Get Default Sidebar Order","description":"Get the admin-set default sidebar order.\n\nIntentionally unauthenticated: non-admin users need to read this value to apply\nthe default sidebar order, but may lack SETTINGS_READ permission.\nThe value is non-sensitive (sidebar item IDs only).","operationId":"get_default_sidebar_order_api_v1_settings_default_sidebar_order_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/settings/ui-preferences":{"get":{"tags":["settings"],"summary":"Get Ui Preferences","description":"Get the curated subset of settings that any page needs to render correctly.\n\nIntentionally not gated on SETTINGS_READ — every authenticated user (and\nevery page that loads for them) needs these fields, but granting SETTINGS_READ\nwould also grant visibility of secrets (SMTP/LDAP/MQTT credentials, etc.).\nSame pattern as /default-sidebar-order (#1293).\n\nReuses _build_settings_response so the typed values match what /settings\nreturns for fields with the same name — bool/int/float/str types stay in\nsync without a separate type-coercion path.","operationId":"get_ui_preferences_api_v1_settings_ui_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/settings/ui-flags":{"get":{"tags":["settings"],"summary":"Get Ui Flags","description":"Install configuration the app shell needs, for any signed-in user.\n\nGated on being authenticated rather than on ``SETTINGS_READ``. The sidebar\nhas to know whether billing is enabled before it can decide whether to offer\nFinance, and ``SETTINGS_READ`` cannot be the price of knowing that -- it also\ngrants sight of the SMTP, LDAP and MQTT credentials.\n\n``require_auth_if_enabled`` returns ``None`` when auth is switched off\nentirely, which is the case /ui-preferences was left ungated for. That is the\ndistinction the two endpoints draw: \"works when there is no auth\" is not the\nsame statement as \"readable by anyone\", and conflating them is what put a\nsettings read in front of a permission that was never meant to require one.","operationId":"get_ui_flags_api_v1_settings_ui_flags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/check-ffmpeg":{"get":{"tags":["settings"],"summary":"Check Ffmpeg","description":"Check if ffmpeg is installed and available.\n\nGated on ``SETTINGS_READ`` (audit finding I4 — the binary path was\nleaking the host filesystem layout to unauthenticated callers).\n``require_permission_if_auth_enabled`` returns ``None`` only when\nauth is disabled (in which case there's no privacy boundary to\nenforce); otherwise it raises 401/403 before we get here.","operationId":"check_ffmpeg_api_v1_settings_check_ffmpeg_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/spoolman":{"get":{"tags":["settings"],"summary":"Get Spoolman Settings","description":"Get Spoolman integration settings.","operationId":"get_spoolman_settings_api_v1_settings_spoolman_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Spoolman Settings","description":"Update Spoolman integration settings.\n\nThe body is a free-form dict rather than a schema, so each value is\nnormalised before it is persisted — see ``normalize_bool_setting`` for why\na JSON boolean used to produce a 500 here.","operationId":"update_spoolman_settings_api_v1_settings_spoolman_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Settings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/backup":{"get":{"tags":["settings"],"summary":"Create Backup","description":"Create a complete backup (database + all files) as a ZIP download.","operationId":"create_backup_api_v1_settings_backup_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/restore":{"post":{"tags":["settings"],"summary":"Restore Backup","description":"Restore from a complete backup ZIP.\n\nReplaces the database and all data directories from the backup ZIP.\nRequires a restart after restore.","operationId":"restore_backup_api_v1_settings_restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_restore_backup_api_v1_settings_restore_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/network-interfaces":{"get":{"tags":["settings"],"summary":"Get Network Interfaces","description":"Get available network interfaces with all IPs (primary + aliases).","operationId":"get_network_interfaces_api_v1_settings_network_interfaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/virtual-printer/models":{"get":{"tags":["settings"],"summary":"Get Virtual Printer Models","description":"Get available virtual printer models.","operationId":"get_virtual_printer_models_api_v1_settings_virtual_printer_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/virtual-printer":{"get":{"tags":["settings"],"summary":"Get Virtual Printer Settings","description":"Get the settings this route still sets, and the virtual printers' status.\n\nEvery other virtual printer setting lives on its own row\n(``GET /virtual-printers``).","operationId":"get_virtual_printer_settings_api_v1_settings_virtual_printer_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Virtual Printer Settings","description":"Legacy single-printer settings: the archive name source and the first\nvirtual printer's Tailscale switch.\n\nEvery other virtual printer setting lives on its own row, set with\n``PUT /virtual-printers/{id}``; the rest of this route's parameters are\nrefused (vp-3).","operationId":"update_virtual_printer_settings_api_v1_settings_virtual_printer_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean","title":"Enabled"}},{"name":"access_code","in":"query","required":false,"schema":{"type":"string","title":"Access Code"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","title":"Mode"}},{"name":"model","in":"query","required":false,"schema":{"type":"string","title":"Model"}},{"name":"target_printer_id","in":"query","required":false,"schema":{"type":"integer","title":"Target Printer Id"}},{"name":"remote_interface_ip","in":"query","required":false,"schema":{"type":"string","title":"Remote Interface Ip"}},{"name":"tailscale_disabled","in":"query","required":false,"schema":{"type":"boolean","title":"Tailscale Disabled"}},{"name":"archive_name_source","in":"query","required":false,"schema":{"type":"string","title":"Archive Name Source"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/mqtt/status":{"get":{"tags":["settings"],"summary":"Get Mqtt Status","description":"Get MQTT relay connection status.","operationId":"get_mqtt_status_api_v1_settings_mqtt_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/panda-breath/status":{"get":{"tags":["settings"],"summary":"Get Panda Breath Status","description":"Panda Breath heaters heard on the MQTT broker and their printers (#1466).\n\nA heater bound to a printer outside the caller's scope is listed without\nnaming the printer.","operationId":"get_panda_breath_status_api_v1_settings_panda_breath_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/overlay-logo":{"get":{"tags":["overlay-branding"],"summary":"Get Logo","operationId":"get_logo_api_v1_settings_overlay_logo_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["overlay-branding"],"summary":"Upload Logo","operationId":"upload_logo_api_v1_settings_overlay_logo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_logo_api_v1_settings_overlay_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["overlay-branding"],"summary":"Delete Logo","operationId":"delete_logo_api_v1_settings_overlay_logo_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/overlay-branding/logo":{"get":{"tags":["overlay-branding"],"summary":"Get Stream Logo","operationId":"get_stream_logo_api_v1_overlay_branding_logo_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/status":{"get":{"tags":["cloud"],"summary":"Get Auth Status","description":"Get current cloud authentication status.\n\n\"We hold a token\" is not the same claim as \"Bambu accepts it\", and this\nendpoint used to make the former while reporting the latter: it asked\n``cloud.is_authenticated``, which was a string-presence check behind a\nself-renewing expiry, so it answered ``true`` for as long as any token\nexisted — including tokens Bambu had been rejecting for months (#2562\nfollow-up). It now asks Bambu.\n\nThe verdict is cached for five minutes inside the service, so the several\ncomponents polling this endpoint don't each pay a round-trip. When Bambu\ncan't be reached the answer is ``None`` and we report the last known state\nrather than signing the user out over a transient outage.\n\n``region`` is exposed so the frontend can show \"Connected (China)\" after a\nreload without relying on local state.","operationId":"get_auth_status_api_v1_cloud_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudAuthStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/login":{"post":{"tags":["cloud"],"summary":"Login","description":"Initiate login to Bambu Cloud.\n\nThis will trigger either:\n- Email verification: A code is sent to the user's email\n- TOTP verification: User enters code from their authenticator app\n\nAfter receiving/generating the code, call /cloud/verify to complete the login.\nFor TOTP, include the tfa_key from this response in the verify request.","operationId":"login_api_v1_cloud_login_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudLoginRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/verify":{"post":{"tags":["cloud"],"summary":"Verify Code","description":"Complete login with verification code (email or TOTP).\n\nFor email verification:\n- After calling /cloud/login, the user receives an email with a 6-digit code\n- Submit the code with email address\n\nFor TOTP verification:\n- The user enters the 6-digit code from their authenticator app\n- Include the tfa_key from the /cloud/login response\n\n``request.region`` must match the region used in /cloud/login so that the\nTOTP call hits the correct TFA endpoint (bambulab.com vs bambulab.cn).","operationId":"verify_code_api_v1_cloud_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/token":{"post":{"tags":["cloud"],"summary":"Set Token","description":"Set access token directly.\n\nFor users who already have a token (e.g., from Bambu Studio). The\nselected ``region`` is persisted alongside the token so every subsequent\nrequest hits the right Bambu API endpoint, including after a restart.","operationId":"set_token_api_v1_cloud_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudTokenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudAuthStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/logout":{"post":{"tags":["cloud"],"summary":"Logout","description":"Log out of Bambu Cloud.","operationId":"logout_api_v1_cloud_logout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/settings":{"get":{"tags":["cloud"],"summary":"Get Slicer Settings","description":"Get all slicer settings (filament, printer, process presets).\n\nRequires authentication.","operationId":"get_slicer_settings_api_v1_cloud_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":false,"schema":{"type":"string","default":"1.0.0.0","title":"Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cloud"],"summary":"Create Setting","description":"Create a new slicer preset/setting.\n\nCreates a new preset on Bambu Cloud. The preset inherits from a base preset\nand only stores the delta (modified values).\n\nType should be: 'filament', 'print', or 'printer'","operationId":"create_setting_api_v1_cloud_settings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerSettingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/settings/{setting_id}":{"get":{"tags":["cloud"],"summary":"Get Setting Detail","description":"Get detailed information for a specific setting/preset.\n\nReturns the full preset configuration.","operationId":"get_setting_detail_api_v1_cloud_settings__setting_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setting_id","in":"path","required":true,"schema":{"type":"string","title":"Setting Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cloud"],"summary":"Update Setting","description":"Update an existing slicer preset/setting.\n\nUpdates the preset's name and/or settings on Bambu Cloud.","operationId":"update_setting_api_v1_cloud_settings__setting_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setting_id","in":"path","required":true,"schema":{"type":"string","title":"Setting Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerSettingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cloud"],"summary":"Delete Setting","description":"Delete a slicer preset/setting.\n\nRemoves the preset from Bambu Cloud. This cannot be undone.","operationId":"delete_setting_api_v1_cloud_settings__setting_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setting_id","in":"path","required":true,"schema":{"type":"string","title":"Setting Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerSettingDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/filaments":{"get":{"tags":["cloud"],"summary":"Get Filament Presets","description":"Get just filament presets (convenience endpoint).\n\nReturns all filament presets with custom presets first.\nUses the same cache as get_slicer_settings.","operationId":"get_filament_presets_api_v1_cloud_filaments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":false,"schema":{"type":"string","default":"1.0.0.0","title":"Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SlicerSetting"},"title":"Response Get Filament Presets Api V1 Cloud Filaments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/filament-info":{"post":{"tags":["cloud"],"summary":"Get Filament Info","description":"Get filament preset info (name and K value) for multiple setting IDs.\n\nUsed to enrich AMS tray and nozzle rack tooltips with preset data.\nLookup order: cache → cloud → local profiles → built-in table → empty fallback.","operationId":"get_filament_info_api_v1_cloud_filament_info_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Setting Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/devices":{"get":{"tags":["cloud"],"summary":"Get Devices","description":"Get list of bound printer devices.\n\nReturns printers registered to the user's Bambu account.","operationId":"get_devices_api_v1_cloud_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudDevice"},"title":"Response Get Devices Api V1 Cloud Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/firmware-updates":{"get":{"tags":["cloud"],"summary":"Get Firmware Updates","description":"Check for firmware updates for all bound devices.\n\nReturns firmware version info for each device including:\n- Current installed version\n- Latest available version\n- Whether an update is available\n- Release notes for the latest version\n\nRequires cloud authentication.","operationId":"get_firmware_updates_api_v1_cloud_firmware_updates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__app__schemas__cloud__FirmwareUpdatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/builtin-filaments":{"get":{"tags":["cloud"],"summary":"Get Builtin Filaments","description":"Get built-in filament names as a fallback source.\n\nReturns the static _BUILTIN_FILAMENT_NAMES table as a list of\n{filament_id, name} objects.  Used by the frontend when cloud\nand local profiles are unavailable.","operationId":"get_builtin_filaments_api_v1_cloud_builtin_filaments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/filament-id-map":{"get":{"tags":["cloud"],"summary":"Get Filament Id Map","description":"Get filament_id → name mapping for user cloud presets.\n\nK-profiles store a filament_id (e.g., \"P4d64437\") which is different from\nthe cloud preset setting_id (e.g., \"PFUS9ac902733670a9\"). This endpoint\nfetches details for all custom presets and returns the mapping.\nCached for 5 minutes per cloud account; a caller is only ever given the\nmapping of their own account's presets.","operationId":"get_filament_id_map_api_v1_cloud_filament_id_map_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/fields/{preset_type}":{"get":{"tags":["cloud"],"summary":"Get Preset Fields","description":"Get field definitions for a preset type.\n\nFor ``filament`` the Material type options are those of the preferred\nslicer (Settings → Slicer): Bambu Studio's or OrcaSlicer's.\n\nReturns a list of field definitions including:\n- key: The setting key name\n- label: Human-readable label\n- type: Field type (text, number, boolean, select)\n- category: Grouping category\n- description: Field description\n- options: For select fields, available options\n- unit: Unit of measurement (if applicable)\n- min/max/step: For number fields, validation constraints","operationId":"get_preset_fields_api_v1_cloud_fields__preset_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preset_type","in":"path","required":true,"schema":{"enum":["filament","print","process","printer"],"type":"string","title":"Preset Type"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cloud/fields":{"get":{"tags":["cloud"],"summary":"Get All Preset Fields","description":"Get all field definitions for all preset types.\n\nReturns field definitions organized by type.","operationId":"get_all_preset_fields_api_v1_cloud_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/device/start":{"post":{"tags":["orca-cloud"],"summary":"Device Start","description":"Begin device pairing. Requests a device code from Orca, stores it\nserver-side (the device_code is a secret and never leaves the backend),\nand returns the user_code + verification URIs + poll interval for the\nfrontend to display and poll against.","operationId":"device_start_api_v1_orca_cloud_device_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrcaDeviceStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/device/poll":{"post":{"tags":["orca-cloud"],"summary":"Device Poll","description":"Poll the token endpoint once for the in-flight pairing. Returns an\nin-progress status while the user approves; on approval persists the token\npair (clearing the pending state) and reports connected.","operationId":"device_poll_api_v1_orca_cloud_device_poll_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrcaDevicePollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/status":{"get":{"tags":["orca-cloud"],"summary":"Get Status","description":"Return whether the caller has an Orca Cloud session stored, plus\nidentifier details for display. Does NOT make a live API call.","operationId":"get_status_api_v1_orca_cloud_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrcaAuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/logout":{"post":{"tags":["orca-cloud"],"summary":"Logout","description":"Clear stored Orca Cloud credentials. Does not call Orca's disconnect\nendpoint (the user can revoke server-side from Orca Cloud's own settings;\nBambuddy will no longer have the token to use either way).","operationId":"logout_api_v1_orca_cloud_logout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/profiles":{"get":{"tags":["orca-cloud"],"summary":"List Profiles","description":"Return profile metadata grouped by type (``filament`` / ``printer``\n/ ``process``), matching the ``SlicerSettingsResponse`` shape the\nBambu Cloud tab consumes. This lets the frontend render Orca profiles\nwith the same visual components — same cards, same filter bar, same\ngrouping — without separate UI code paths.","operationId":"list_profiles_api_v1_orca_cloud_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrcaProfileListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orca-cloud/profiles/{profile_id}":{"get":{"tags":["orca-cloud"],"summary":"Get Profile","description":"Fetch a single profile's full content, shaped like\nthe frontend's ``SlicerSettingDetail`` so the Bambu Cloud detail modal can render it\nunchanged. The inner ``setting`` field is the raw slicer-format JSON\nOrca stores — same shape Bambu Cloud uses since OrcaSlicer is a\nBambuStudio fork.","operationId":"get_profile_api_v1_orca_cloud_profiles__profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrcaProfileDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/":{"get":{"tags":["Local Presets"],"summary":"List Local Presets","description":"List all local presets grouped by type.","operationId":"list_local_presets_api_v1_local_presets__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Local Presets"],"summary":"Create Local Preset","description":"Manually create a local preset.","operationId":"create_local_preset_api_v1_local_presets__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/{preset_id}":{"get":{"tags":["Local Presets"],"summary":"Get Local Preset","description":"Get full detail for a local preset including the setting JSON.","operationId":"get_local_preset_api_v1_local_presets__preset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"integer","title":"Preset Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Local Presets"],"summary":"Update Local Preset","description":"Update a local preset's name or settings.","operationId":"update_local_preset_api_v1_local_presets__preset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"integer","title":"Preset Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPresetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Local Presets"],"summary":"Delete Local Preset","description":"Delete a local preset.","operationId":"delete_local_preset_api_v1_local_presets__preset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"integer","title":"Preset Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/import":{"post":{"tags":["Local Presets"],"summary":"Import Presets","description":"Import presets from an OrcaSlicer export file (.json, .orca_filament, .bbscfg, .bbsflmt, .zip).","operationId":"import_presets_api_v1_local_presets_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_presets_api_v1_local_presets_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/base-cache/status":{"get":{"tags":["Local Presets"],"summary":"Base Cache Status","description":"Get the status of the OrcaSlicer base profile cache.","operationId":"base_cache_status_api_v1_local_presets_base_cache_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/base-cache/refresh":{"post":{"tags":["Local Presets"],"summary":"Refresh Cache","description":"Force refresh all cached base profiles from GitHub.","operationId":"refresh_cache_api_v1_local_presets_base_cache_refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-presets/reclassify":{"post":{"tags":["Local Presets"],"summary":"Reclassify","description":"Re-evaluate preset types for all local presets using the improved heuristic.","operationId":"reclassify_api_v1_local_presets_reclassify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/":{"get":{"tags":["smart-plugs"],"summary":"List Smart Plugs","description":"List all smart plugs, minus those powering printers the caller can't see (#1727).","operationId":"list_smart_plugs_api_v1_smart_plugs__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["smart-plugs"],"summary":"Create Smart Plug","description":"Create a new smart plug.","operationId":"create_smart_plug_api_v1_smart_plugs__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugResponseWithSecret"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/by-printer/{printer_id}":{"get":{"tags":["smart-plugs"],"summary":"Get Smart Plug By Printer","description":"Get the main smart plug assigned to a printer.\n\nWhen several plugs are assigned -- a printer outlet, an enclosure fan, a\nscript -- returns the one that best fits the card's power controls. See\n``_main_plug_rank`` for the order and why.","operationId":"get_smart_plug_by_printer_api_v1_smart_plugs_by_printer__printer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/by-printer/{printer_id}/scripts":{"get":{"tags":["smart-plugs"],"summary":"Get Script Plugs By Printer","description":"Get all HA entities assigned to a printer for display on printer card.\n\nReturns HA entities (switches, scripts, lights, etc.) for the printer that have\nshow_on_printer_card enabled.\nUsed to display action buttons alongside the main power plug.\n\nA switchable main plug is left out: it is rendered directly above this row\nwith its own on/off button, so listing it here draws the same entity twice\n(#2830). A script is not, because a printer whose only entities are scripts\nfalls back to showing one of them in the power row -- taking it out of this\nrow too would cost the one-click run it has always had there.","operationId":"get_script_plugs_by_printer_api_v1_smart_plugs_by_printer__printer_id__scripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmartPlugResponse"},"title":"Response Get Script Plugs By Printer Api V1 Smart Plugs By Printer  Printer Id  Scripts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/discover/scan":{"post":{"tags":["smart-plugs"],"summary":"Start Tasmota Scan","description":"Start an IP range scan for Tasmota devices.\n\nAuto-detects local network if no IP range provided.","operationId":"start_tasmota_scan_api_v1_smart_plugs_discover_scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TasmotaScanRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasmotaScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/discover/status":{"get":{"tags":["smart-plugs"],"summary":"Get Tasmota Scan Status","description":"Get the current Tasmota scan status.","operationId":"get_tasmota_scan_status_api_v1_smart_plugs_discover_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasmotaScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/discover/stop":{"post":{"tags":["smart-plugs"],"summary":"Stop Tasmota Scan","description":"Stop the current Tasmota scan.","operationId":"stop_tasmota_scan_api_v1_smart_plugs_discover_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasmotaScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/discover/devices":{"get":{"tags":["smart-plugs"],"summary":"Get Discovered Tasmota Devices","description":"Get list of discovered Tasmota devices.","operationId":"get_discovered_tasmota_devices_api_v1_smart_plugs_discover_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DiscoveredTasmotaDevice"},"title":"Response Get Discovered Tasmota Devices Api V1 Smart Plugs Discover Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/ha/test-connection":{"post":{"tags":["smart-plugs"],"summary":"Test Ha Connection","description":"Test connection to Home Assistant.\n\nThe placeholder token tests the stored token, against the stored URL only.","operationId":"test_ha_connection_api_v1_smart_plugs_ha_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HATestConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HATestConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/rest/test-connection":{"post":{"tags":["smart-plugs"],"summary":"Test Rest Connection","description":"Test connection to a REST/HTTP endpoint.\n\nWith plug_id, the placeholder headers are the plug's stored headers, for\nthe plug's own URLs only.","operationId":"test_rest_connection_api_v1_smart_plugs_rest_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RESTTestConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RESTTestConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/ha/entities":{"get":{"tags":["smart-plugs"],"summary":"List Ha Entities","description":"List available Home Assistant entities.\n\nBy default, returns switch/light/input_boolean entities.\nWhen search is provided, searches ALL entities by entity_id or friendly_name.\n\nRequires HA connection settings to be configured in Settings.","operationId":"list_ha_entities_api_v1_smart_plugs_ha_entities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HAEntity"},"title":"Response List Ha Entities Api V1 Smart Plugs Ha Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/ha/sensors":{"get":{"tags":["smart-plugs"],"summary":"List Ha Sensor Entities","description":"List available Home Assistant sensor entities for energy monitoring.\n\nReturns sensors with power/energy units (W, kW, kWh, Wh).\nRequires HA connection settings to be configured in Settings.","operationId":"list_ha_sensor_entities_api_v1_smart_plugs_ha_sensors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HASensorEntity"},"title":"Response List Ha Sensor Entities Api V1 Smart Plugs Ha Sensors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/{plug_id}":{"get":{"tags":["smart-plugs"],"summary":"Get Smart Plug","description":"Get a specific smart plug.","operationId":"get_smart_plug_api_v1_smart_plugs__plug_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plug_id","in":"path","required":true,"schema":{"type":"integer","title":"Plug Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["smart-plugs"],"summary":"Update Smart Plug","description":"Update a smart plug.","operationId":"update_smart_plug_api_v1_smart_plugs__plug_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plug_id","in":"path","required":true,"schema":{"type":"integer","title":"Plug Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugResponseWithSecret"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["smart-plugs"],"summary":"Delete Smart Plug","description":"Delete a smart plug.","operationId":"delete_smart_plug_api_v1_smart_plugs__plug_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plug_id","in":"path","required":true,"schema":{"type":"integer","title":"Plug Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/{plug_id}/control":{"post":{"tags":["smart-plugs"],"summary":"Control Smart Plug","description":"Manual control: on/off/toggle.","operationId":"control_smart_plug_api_v1_smart_plugs__plug_id__control_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plug_id","in":"path","required":true,"schema":{"type":"integer","title":"Plug Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugControl"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/{plug_id}/status":{"get":{"tags":["smart-plugs"],"summary":"Get Plug Status","description":"Get current plug status from device including energy data.","operationId":"get_plug_status_api_v1_smart_plugs__plug_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plug_id","in":"path","required":true,"schema":{"type":"integer","title":"Plug Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/smart-plugs/test-connection":{"post":{"tags":["smart-plugs"],"summary":"Test Connection","description":"Test connection to a Tasmota device.\n\nWith plug_id, the placeholder password is the plug's stored password, for\nthe plug's own address only.","operationId":"test_connection_api_v1_smart_plugs_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartPlugTestConnection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ha-sensors/":{"get":{"tags":["ha-sensors"],"summary":"List Ha Sensors","description":"List configured sensors, grouped by printer and in display order.","operationId":"list_ha_sensors_api_v1_ha_sensors__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrinterHASensorResponse"},"title":"Response List Ha Sensors Api V1 Ha Sensors  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ha-sensors"],"summary":"Create Ha Sensor","description":"Bind a Home Assistant entity to a printer.","operationId":"create_ha_sensor_api_v1_ha_sensors__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterHASensorCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ha-sensors/entities":{"get":{"tags":["ha-sensors"],"summary":"List Bindable Entities","description":"List the Home Assistant entities that can be bound to a printer.","operationId":"list_bindable_entities_api_v1_ha_sensors_entities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HADisplayEntity"},"title":"Response List Bindable Entities Api V1 Ha Sensors Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ha-sensors/by-printer/{printer_id}/readings":{"get":{"tags":["ha-sensors"],"summary":"Get Printer Sensor Readings","description":"Live state of a printer's card-visible sensors.\n\nServed from the poller's cache, so a page full of printer cards costs\nHome Assistant nothing. A sensor the poller has not reached yet falls back\nto its last persisted state, marked unreachable, rather than vanishing\nfrom the card on every restart.","operationId":"get_printer_sensor_readings_api_v1_ha_sensors_by_printer__printer_id__readings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrinterHASensorReading"},"title":"Response Get Printer Sensor Readings Api V1 Ha Sensors By Printer  Printer Id  Readings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ha-sensors/{sensor_id}":{"get":{"tags":["ha-sensors"],"summary":"Get Ha Sensor","operationId":"get_ha_sensor_api_v1_ha_sensors__sensor_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["ha-sensors"],"summary":"Update Ha Sensor","operationId":"update_ha_sensor_api_v1_ha_sensors__sensor_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterHASensorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ha-sensors"],"summary":"Delete Ha Sensor","operationId":"delete_ha_sensor_api_v1_ha_sensors__sensor_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/location-ha-sensors/":{"get":{"tags":["location-ha-sensors"],"summary":"List Location Ha Sensors","description":"List configured sensors, grouped by location and in display order.","operationId":"list_location_ha_sensors_api_v1_location_ha_sensors__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationHASensorResponse"},"title":"Response List Location Ha Sensors Api V1 Location Ha Sensors  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["location-ha-sensors"],"summary":"Create Location Ha Sensor","description":"Bind a Home Assistant entity to a storage location.","operationId":"create_location_ha_sensor_api_v1_location_ha_sensors__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationHASensorCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/location-ha-sensors/entities":{"get":{"tags":["location-ha-sensors"],"summary":"List Bindable Entities","description":"List the Home Assistant entities that can be bound to a storage location.","operationId":"list_bindable_entities_api_v1_location_ha_sensors_entities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HADisplayEntity"},"title":"Response List Bindable Entities Api V1 Location Ha Sensors Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/location-ha-sensors/by-location/{location_id}/readings":{"get":{"tags":["location-ha-sensors"],"summary":"Get Location Sensor Readings","description":"Live state of a location's card-visible sensors.\n\nServed from the poller's cache, so a page full of filament cards costs\nHome Assistant nothing. A sensor the poller has not reached yet falls\nback to its last persisted state, marked unreachable, rather than\nvanishing from the card on every restart.","operationId":"get_location_sensor_readings_api_v1_location_ha_sensors_by_location__location_id__readings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}},{"name":"show_on_card","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Show On Card"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationHASensorReading"},"title":"Response Get Location Sensor Readings Api V1 Location Ha Sensors By Location  Location Id  Readings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/location-ha-sensors/{sensor_id}":{"get":{"tags":["location-ha-sensors"],"summary":"Get Location Ha Sensor","operationId":"get_location_ha_sensor_api_v1_location_ha_sensors__sensor_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["location-ha-sensors"],"summary":"Update Location Ha Sensor","operationId":"update_location_ha_sensor_api_v1_location_ha_sensors__sensor_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationHASensorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationHASensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["location-ha-sensors"],"summary":"Delete Location Ha Sensor","operationId":"delete_location_ha_sensor_api_v1_location_ha_sensors__sensor_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/print-log/":{"get":{"tags":["print-log"],"summary":"Get Print Log","description":"Get the print log.","operationId":"get_print_log_api_v1_print_log__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"created_by_username","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"date","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["print-log"],"summary":"Clear Print Log","description":"Clear the print log.\n\nOnly deletes log entries. Archives and queue items are never touched.","operationId":"clear_print_log_api_v1_print_log__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/print-log/{entry_id}/thumbnail":{"get":{"tags":["print-log"],"summary":"Get Print Log Thumbnail","description":"Get the thumbnail for a print log entry.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nis scoped to the rows the caller can see in the log itself (#3025) -- the\nsame ``created_by_id`` filter ``get_print_log`` applies, including its\ntreatment of an ownerless entry as not-yours.\n\nSelf-heals stale entries: when thumbnail_path points to a file that no\nlonger exists on disk (archive was deleted, or print failed before the\nthumbnail was ever written), NULL the path on the entry so subsequent\npage renders skip the request entirely. The frontend's <img> tag is\ngated on entry.thumbnail_path being truthy, so the next fetch of the\nlog list will simply not request this thumbnail again.","operationId":"get_print_log_thumbnail_api_v1_print_log__entry_id__thumbnail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/print-log/{entry_id}":{"delete":{"tags":["print-log"],"summary":"Delete Print Log Entry","description":"Delete a single print-log entry (#1687).\n\nRemoves the row entirely. Because /archives/stats aggregates over\nPrintLogEntry, the deleted row's filament / cost / duration / count\ncontributions drop out of the totals in the same response cycle.\nThe linked archive (if any) is untouched — the FK on the archive row\nis from PrintLogEntry, not the other way around.","operationId":"delete_print_log_entry_api_v1_print_log__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["print-log"],"summary":"Update Print Log Entry","description":"Edit a single Print Log row's classification (#1687 part 4, reporter\nIndividualGhost1905).\n\nLets the user set ``failure_reason`` (and optionally re-classify ``status``)\ndirectly on a Print Log row — including orphan entries that have no\narchive to edit through. The Failure Analysis widget already groups by\n``PrintLogEntry.failure_reason`` (see ``archives.py:1421`` for the\narchive-side mirror); this endpoint is the missing edit affordance for the\nlog-side, mirror-less case.\n\nOwnership semantics mirror the per-row delete: archives:update_all sees\neverything; archives:update_own sees only rows it owns.","operationId":"update_print_log_entry_api_v1_print_log__entry_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLogEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintLogEntrySchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/":{"get":{"tags":["queue"],"summary":"List Queue","description":"List all queue items, optionally filtered by printer or status.","operationId":"list_queue_api_v1_queue__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by printer (-1 for unassigned)","title":"Printer Id"},"description":"Filter by printer (-1 for unassigned)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status; several may be given comma-separated","title":"Status"},"description":"Filter by status; several may be given comma-separated"},{"name":"target_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by target model (also includes model-based items when combined with printer_id)","title":"Target Model"},"description":"Filter by target model (also includes model-based items when combined with printer_id)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrintQueueItemResponse"},"title":"Response List Queue Api V1 Queue  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["queue"],"summary":"Add To Queue","description":"Add an item to the print queue.","operationId":"add_to_queue_api_v1_queue__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueItemCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/history":{"get":{"tags":["queue"],"summary":"List Queue History","description":"Finished, failed, skipped and cancelled runs, one page at a time.\n\nThe Queue page used to load the whole queue, history included, every five\nseconds and page through it in the browser. On a farm that is thousands of\nrows, each enriched from its 3MF, and the request held up every other one\nfor over a minute.","operationId":"list_queue_history_api_v1_queue_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by printer (-1 for unassigned)","title":"Printer Id"},"description":"Filter by printer (-1 for unassigned)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of completed, failed, skipped, cancelled","title":"Status"},"description":"One of completed, failed, skipped, cancelled"},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by location","title":"Location"},"description":"Filter by location"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["date","name","printer"],"type":"string","default":"date","title":"Sort By"}},{"name":"reverse","in":"query","required":false,"schema":{"type":"boolean","description":"Flip the default order (newest first, A to Z)","default":false,"title":"Reverse"},"description":"Flip the default order (newest first, A to Z)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/history/clear":{"post":{"tags":["queue"],"summary":"Clear Queue History","description":"Remove the history the Queue page shows under its current filters.\n\nThe page used to send one DELETE per history row. Each row goes through\nthe same rule as that DELETE: an order's last run for a plate is kept as\ncancelled rather than deleted (#2960). Rows are handled one at a time, in\none transaction, so each check sees the rows removed before it.\n\nReaches only rows the caller could both see and delete, as the page's\none-by-one DELETEs did: someone who may delete every run but read only\ntheir own clears only their own.","operationId":"clear_queue_history_api_v1_queue_history_clear_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by printer (-1 for unassigned)","title":"Printer Id"},"description":"Filter by printer (-1 for unassigned)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of completed, failed, skipped, cancelled","title":"Status"},"description":"One of completed, failed, skipped, cancelled"},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by location","title":"Location"},"description":"Filter by location"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueHistoryClearResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/bulk":{"patch":{"tags":["queue"],"summary":"Bulk Update Queue Items","description":"Bulk update multiple queue items with the same values.\n\nOnly pending items can be updated. Non-pending items are skipped.\nItems not owned by the user are also skipped (unless user has *_all permission).","operationId":"bulk_update_queue_items_api_v1_queue_bulk_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueBulkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueBulkUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/batches":{"post":{"tags":["queue"],"summary":"Create Batch","description":"Create a batch.\n\nTwo modes:\n* ``item_ids`` provided: assign the listed pending queue items to a new\n  batch (\"Group as batch\" UI action).\n* ``item_ids`` omitted/empty: create an empty batch so the client can\n  pass the returned ``id`` on subsequent ``POST /queue/`` calls. Used by\n  the multi-plate auto-batch flow in PrintModal.\n\n``plates`` turns the batch into an order with per-plate targets (#342):\nprogress is then measured against what was asked for rather than against\nwhat happened to be queued, so a failed run still counts as owed. Omitting\nit keeps the pre-#342 behaviour exactly.","operationId":"create_batch_api_v1_queue_batches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["queue"],"summary":"List Batches","description":"List print batches with progress stats.\n\nBatches with neither queue items nor per-plate targets are omitted. Those\nare empty shells — a grouping whose items were deleted with their source\narchive, or a create that never got as far as adding any — and they carry\nnothing to show, track or dispatch. A brand-new order is still listed\nbefore its first dispatch, because its targets say what it owes.","operationId":"list_batches_api_v1_queue_batches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (active, completed, cancelled)","title":"Status"},"description":"Filter by status (active, completed, cancelled)"},{"name":"external_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by the integration that created the batch","title":"External Source"},"description":"Filter by the integration that created the batch"},{"name":"external_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by the external record the batch fulfils","title":"External Ref"},"description":"Filter by the external record the batch fulfils"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrintBatchResponse"},"title":"Response List Batches Api V1 Queue Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/batches/{batch_id}":{"patch":{"tags":["queue"],"summary":"Update Batch","description":"Edit an order's header or its per-plate targets while it runs (#342).\n\nProduction requirements change mid-run, so targets are editable. Lowering a\ntarget below what has already been dispatched is allowed and simply leaves\n``remaining`` at zero — cancelling the surplus queue items is a separate,\nexplicit action, because silently deleting queued work on a number change\nwould be a nasty surprise.","operationId":"update_batch_api_v1_queue_batches__batch_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["queue"],"summary":"Get Batch","description":"Get a print batch with progress stats.","operationId":"get_batch_api_v1_queue_batches__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["queue"],"summary":"Cancel Batch","description":"Cancel all pending items in a batch and mark batch as cancelled.","operationId":"cancel_batch_api_v1_queue_batches__batch_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/batches/{batch_id}/dispatch":{"post":{"tags":["queue"],"summary":"Dispatch Batch","description":"Queue the runs this order still owes (#342).\n\nEach new item is cloned from the most recent item for the same plate in\nthis batch, so it inherits the printer/model target, AMS mapping, filament\noverrides and print options the user already chose — and the validation\nthose went through at creation time.","operationId":"dispatch_batch_api_v1_queue_batches__batch_id__dispatch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchDispatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/batches/{batch_id}/ungroup":{"post":{"tags":["queue"],"summary":"Ungroup Batch","description":"Disband a batch: clear batch_id from all members and delete the batch row.\n\nItems stay in the queue. Only ungroups items the caller owns (unless they\nhold QUEUE_UPDATE_ALL). A batch with all members ungrouped is deleted.","operationId":"ungroup_batch_api_v1_queue_batches__batch_id__ungroup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintBatchUngroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/{item_id}":{"get":{"tags":["queue"],"summary":"Get Queue Item","description":"Get a specific queue item.","operationId":"get_queue_item_api_v1_queue__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["queue"],"summary":"Update Queue Item","description":"Update a queue item.","operationId":"update_queue_item_api_v1_queue__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["queue"],"summary":"Delete Queue Item","description":"Remove an item from the queue.\n\nAn order's last surviving run for a plate is cancelled instead of deleted\n(#2960). The row is what a later dispatch clones, so removing it would\nleave the order reporting work outstanding that nothing could ever\nproduce. A completed run is exempt: it is the record of something that was\nactually made, and rewriting it as cancelled would falsify the order's\nprogress.","operationId":"delete_queue_item_api_v1_queue__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/reorder":{"post":{"tags":["queue"],"summary":"Reorder Queue","description":"Bulk update positions for queue items.","operationId":"reorder_queue_api_v1_queue_reorder_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrintQueueReorder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/printer/{printer_id}/resume":{"post":{"tags":["queue"],"summary":"Resume Queue After Failure","description":"Clear the previous-success gate for a printer and restore skipped items.\n\nSingle atomic op (#1818):\n\n* Sets ``gate_acknowledged=True`` on every ``failed`` / ``aborted`` queue\n  item for this printer that's still in the scheduler's lookback window,\n  so the next ``_check_previous_success`` call ignores them.\n* Restores ``skipped`` items whose ``error_message`` matches the\n  scheduler's exact \"Previous print failed or was aborted\" gate string\n  back to ``pending`` (clears ``error_message`` + ``completed_at``).\n\nReturns counts so the UI can render a precise toast. No-op endpoint\n(zero counts) when called against a printer with no gate to clear.","operationId":"resume_queue_after_failure_api_v1_queue_printer__printer_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/model/{model}/resume":{"post":{"tags":["queue"],"summary":"Resume Model Queue After Failure","description":"Clear the previous-success gate on every printer of a model the caller may use.\n\nA job for any printer of a model waits, rather than being skipped, when the\nlast print failed on every free one; this is its Resume. Same effect per\nprinter as :func:`resume_queue_after_failure`, which has no skipped jobs to\nrestore here.","operationId":"resume_model_queue_after_failure_api_v1_queue_model__model__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"path","required":true,"schema":{"type":"string","title":"Model"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/{item_id}/cancel":{"post":{"tags":["queue"],"summary":"Cancel Queue Item","description":"Cancel a pending queue item.","operationId":"cancel_queue_item_api_v1_queue__item_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/{item_id}/stop":{"post":{"tags":["queue"],"summary":"Stop Queue Item","description":"Stop an actively printing queue item.\n\nOwnership-scoped (#1625-followup): callers with QUEUE_UPDATE_OWN can stop\ntheir own items; callers with QUEUE_UPDATE_ALL can stop any item. Mirrors\nthe /cancel shape. Pre-fix this required QUEUE_UPDATE_ALL — Operators\nholding only _OWN saw the Stop button in the queue UI but got 403 on click.","operationId":"stop_queue_item_api_v1_queue__item_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/queue/{item_id}/start":{"post":{"tags":["queue"],"summary":"Start Queue Item","description":"Manually start a staged (manual_start) queue item.\n\nOwnership-scoped (#1625-followup): callers with QUEUE_UPDATE_OWN can\nstart their own items + claim ownership of NULL-owner items (VP-uploaded\nitems arrive unattributed per #1670). Callers with QUEUE_UPDATE_ALL can\nstart any item. Pre-fix this required QUEUE_UPDATE_OWN with no ownership\ncheck, so _OWN holders could start anyone's queue items via direct API.\n\nClears the manual_start flag so the scheduler picks it up. When\n``skip_filament_check`` is false (the default) the live filament\ndeficit (#1496) is checked first — if the assigned spool can't satisfy\na slot's required grams, the route returns ``409`` with the deficit\npayload so the caller can show a confirm dialog and retry with\n``skip_filament_check=true``. The same goes for a filament the printer has\nno tray for at all (#2799): ``409`` with ``code=unmatched_filament`` and\nthe missing filaments.","operationId":"start_queue_item_api_v1_queue__item_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"skip_filament_check","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Skip Filament Check"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduled-dryings":{"post":{"tags":["scheduled-dryings"],"summary":"Create Scheduled Drying","operationId":"create_scheduled_drying_api_v1_scheduled_dryings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledDryingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledDryingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scheduled-dryings"],"summary":"List Scheduled Dryings","operationId":"list_scheduled_dryings_api_v1_scheduled_dryings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledDryingResponse"},"title":"Response List Scheduled Dryings Api V1 Scheduled Dryings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduled-dryings/{scheduled_drying_id}":{"delete":{"tags":["scheduled-dryings"],"summary":"Cancel Scheduled Drying","operationId":"cancel_scheduled_drying_api_v1_scheduled_dryings__scheduled_drying_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scheduled_drying_id","in":"path","required":true,"schema":{"type":"integer","title":"Scheduled Drying Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/kprofiles/":{"get":{"tags":["kprofiles"],"summary":"Get Kprofiles","description":"Get K-profiles from a printer.\n\nArgs:\n    printer_id: ID of the printer\n    nozzle_diameter: Filter by nozzle diameter (default: \"0.4\")","operationId":"get_kprofiles_api_v1_printers__printer_id__kprofiles__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"nozzle_diameter","in":"query","required":false,"schema":{"type":"string","default":"0.4","title":"Nozzle Diameter"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KProfilesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["kprofiles"],"summary":"Set Kprofile","description":"Create or update a K-profile on the printer.\n\nFor H2D edits (slot_id > 0), this performs an in-place edit using cali_idx.\nFor other printers or new profiles, this adds a new profile.\n\nArgs:\n    printer_id: ID of the printer\n    profile: K-profile data to set","operationId":"set_kprofile_api_v1_printers__printer_id__kprofiles__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KProfileCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Kprofile Api V1 Printers  Printer Id  Kprofiles  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["kprofiles"],"summary":"Delete Kprofile","description":"Delete a K-profile from the printer.\n\nArgs:\n    printer_id: ID of the printer\n    profile: K-profile identification data for deletion","operationId":"delete_kprofile_api_v1_printers__printer_id__kprofiles__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KProfileDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Kprofile Api V1 Printers  Printer Id  Kprofiles  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/kprofiles/batch":{"post":{"tags":["kprofiles"],"summary":"Set Kprofiles Batch","description":"Create multiple K-profiles in a single command (for dual-nozzle).\n\nThis sends all profiles in one MQTT command, which is more reliable\nfor dual-nozzle printers that may not handle sequential commands well.\n\nArgs:\n    printer_id: ID of the printer\n    profiles: List of K-profiles to set","operationId":"set_kprofiles_batch_api_v1_printers__printer_id__kprofiles_batch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KProfileCreate"},"title":"Profiles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Kprofiles Batch Api V1 Printers  Printer Id  Kprofiles Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/kprofiles/notes":{"get":{"tags":["kprofiles"],"summary":"Get Kprofile Notes","description":"Get all K-profile notes for a printer.\n\nNotes are stored locally since printers don't support notes.\n\nArgs:\n    printer_id: ID of the printer","operationId":"get_kprofile_notes_api_v1_printers__printer_id__kprofiles_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KProfileNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["kprofiles"],"summary":"Set Kprofile Note","description":"Set or update a note for a K-profile.\n\nArgs:\n    printer_id: ID of the printer\n    note_data: The note data (setting_id and note content)","operationId":"set_kprofile_note_api_v1_printers__printer_id__kprofiles_notes_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KProfileNote"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Kprofile Note Api V1 Printers  Printer Id  Kprofiles Notes Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/kprofiles/notes/{setting_id}":{"delete":{"tags":["kprofiles"],"summary":"Delete Kprofile Note","description":"Delete a note for a K-profile.\n\nArgs:\n    printer_id: ID of the printer\n    setting_id: The setting_id of the K-profile","operationId":"delete_kprofile_note_api_v1_printers__printer_id__kprofiles_notes__setting_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"setting_id","in":"path","required":true,"schema":{"type":"string","title":"Setting Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Kprofile Note Api V1 Printers  Printer Id  Kprofiles Notes  Setting Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/":{"get":{"tags":["notifications"],"summary":"List Notification Providers","description":"List all notification providers.","operationId":"list_notification_providers_api_v1_notifications__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationProviderResponse"},"title":"Response List Notification Providers Api V1 Notifications  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Create Notification Provider","description":"Create a new notification provider.","operationId":"create_notification_provider_api_v1_notifications__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationProviderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/test-config":{"post":{"tags":["notifications"],"summary":"Test Notification Config","description":"Test notification configuration before saving.\n\nWith provider_id (an edited provider), the stored secrets fill in the\nplaceholders, for those who may edit providers.","operationId":"test_notification_config_api_v1_notifications_test_config_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/test-all":{"post":{"tags":["notifications"],"summary":"Test All Notification Providers","description":"Send a test notification to all enabled providers.","operationId":"test_all_notification_providers_api_v1_notifications_test_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/logs":{"get":{"tags":["notifications"],"summary":"Get Notification Logs","description":"Get notification logs with optional filters.","operationId":"get_notification_logs_api_v1_notifications_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Provider Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"success","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":90,"minimum":1},{"type":"null"}],"description":"Filter logs from the last N days","default":7,"title":"Days"},"description":"Filter logs from the last N days"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationLogResponse"},"title":"Response Get Notification Logs Api V1 Notifications Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Clear Notification Logs","description":"Clear old notification logs.","operationId":"clear_notification_logs_api_v1_notifications_logs_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"older_than_days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Delete logs older than N days","default":30,"title":"Older Than Days"},"description":"Delete logs older than N days"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/logs/stats":{"get":{"tags":["notifications"],"summary":"Get Notification Log Stats","description":"Get notification log statistics.","operationId":"get_notification_log_stats_api_v1_notifications_logs_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"description":"Statistics for the last N days","default":7,"title":"Days"},"description":"Statistics for the last N days"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationLogStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/photos/{filename}":{"get":{"tags":["notifications"],"summary":"Get Notification Photo","description":"Serve an ad-hoc notification snapshot to HA, Bark or Slack.\n\nThey fetch this URL themselves with no session, so the unguessable\nfilename is the credential and opens this one photo only -- see\nbackend/app/utils/notification_photos.py. Anything that isn't a live\nphoto of exactly that shape is a 404.","operationId":"get_notification_photo_api_v1_notifications_photos__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/app-message":{"post":{"tags":["notifications"],"summary":"Send App Message","description":"Send a message through every enabled channel that has \"Messages from\nconnected apps\" on. For other applications, e.g. Bambuddy Orders; an API\nkey needs the \"Send notifications\" permission. A caller limited to some\nprinters reaches only the channels of those printers.","operationId":"send_app_message_api_v1_notifications_app_message_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppMessageResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/app-message/channels":{"get":{"tags":["notifications"],"summary":"App Message Channels","description":"The enabled channels that deliver app messages: names and types only,\nso an app can tell its user where its messages will arrive.","operationId":"app_message_channels_api_v1_notifications_app_message_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppMessageChannel"},"title":"Response App Message Channels Api V1 Notifications App Message Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{provider_id}":{"get":{"tags":["notifications"],"summary":"Get Notification Provider","description":"Get a specific notification provider.","operationId":"get_notification_provider_api_v1_notifications__provider_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["notifications"],"summary":"Update Notification Provider","description":"Update a notification provider.","operationId":"update_notification_provider_api_v1_notifications__provider_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationProviderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Delete Notification Provider","description":"Delete a notification provider.","operationId":"delete_notification_provider_api_v1_notifications__provider_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{provider_id}/test":{"post":{"tags":["notifications"],"summary":"Test Notification Provider","description":"Send a test notification using an existing provider.","operationId":"test_notification_provider_api_v1_notifications__provider_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"integer","title":"Provider Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates/":{"get":{"tags":["notification-templates"],"summary":"Get Templates","description":"Get all notification templates.","operationId":"get_templates_api_v1_notification_templates__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationTemplateResponse"},"title":"Response Get Templates Api V1 Notification Templates  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates":{"get":{"tags":["notification-templates"],"summary":"Get Templates","description":"Get all notification templates.","operationId":"get_templates_api_v1_notification_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationTemplateResponse"},"title":"Response Get Templates Api V1 Notification Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates/variables":{"get":{"tags":["notification-templates"],"summary":"Get Variables","description":"Get available variables for each event type.","operationId":"get_variables_api_v1_notification_templates_variables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventVariablesResponse"},"title":"Response Get Variables Api V1 Notification Templates Variables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates/{template_id}":{"get":{"tags":["notification-templates"],"summary":"Get Template","description":"Get a single notification template.","operationId":"get_template_api_v1_notification_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notification-templates"],"summary":"Update Template","description":"Update a notification template.","operationId":"update_template_api_v1_notification_templates__template_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates/{template_id}/reset":{"post":{"tags":["notification-templates"],"summary":"Reset Template","description":"Reset a notification template to its default values.","operationId":"reset_template_api_v1_notification_templates__template_id__reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notification-templates/preview":{"post":{"tags":["notification-templates"],"summary":"Preview Template","description":"Preview a template with sample data.","operationId":"preview_template_api_v1_notification_templates_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user-notifications/preferences":{"get":{"tags":["user-notifications"],"summary":"Get User Email Preferences","description":"Get the current user's email notification preferences.\n\nReturns defaults (all enabled) if no preferences are saved yet.","operationId":"get_user_email_preferences_api_v1_user_notifications_preferences_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEmailPreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["user-notifications"],"summary":"Update User Email Preferences","description":"Update the current user's email notification preferences.","operationId":"update_user_email_preferences_api_v1_user_notifications_preferences_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEmailPreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEmailPreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/status":{"get":{"tags":["spoolman"],"summary":"Get Spoolman Status","description":"Get Spoolman integration status.\n\n``connected`` answers \"does the configured Spoolman respond?\", which means\nasking it. It used to answer \"has some earlier request in this process left\na client object lying around?\" -- and roughly twenty call sites build one\nlazily, so the answer depended on which page happened to load first rather\nthan on anything about Spoolman.\n\nThat mattered because the UI reads this one flag twice: it offers Connect\nonly while disconnected, and the AMS sync section only while connected.\nSaving the Settings page initialises a client as a side effect of syncing\nlocations, so enabling Spoolman there reported \"connected\" without anything\nhaving been set up, hiding the Connect button and revealing a sync that then\nfailed on every slot (issue #2903). Registration no longer depends on that\nbutton, but the flag was still describing Bambuddy's memory rather than the\nintegration, so it is now resolved the same way every other route resolves\nit -- including the stale-URL check, so editing the URL is not reported\nagainst the old host.","operationId":"get_spoolman_status_api_v1_spoolman_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/connect":{"post":{"tags":["spoolman"],"summary":"Connect Spoolman","description":"Connect to Spoolman server using configured URL.","operationId":"connect_spoolman_api_v1_spoolman_connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/disconnect":{"post":{"tags":["spoolman"],"summary":"Disconnect Spoolman","description":"Disconnect from Spoolman server.","operationId":"disconnect_spoolman_api_v1_spoolman_disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/sync/{printer_id}":{"post":{"tags":["spoolman"],"summary":"Sync Printer Ams","description":"Sync AMS data from a specific printer to Spoolman.","operationId":"sync_printer_ams_api_v1_spoolman_sync__printer_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/sync-all":{"post":{"tags":["spoolman"],"summary":"Sync All Printers","description":"Sync AMS data from all connected printers to Spoolman.","operationId":"sync_all_printers_api_v1_spoolman_sync_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools":{"get":{"tags":["spoolman"],"summary":"Get Spools","description":"Get all spools from Spoolman.","operationId":"get_spools_api_v1_spoolman_spools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/filaments":{"get":{"tags":["spoolman"],"summary":"Get Filaments","description":"Get all filaments from Spoolman.","operationId":"get_filaments_api_v1_spoolman_filaments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools/unlinked":{"get":{"tags":["spoolman"],"summary":"Get Unlinked Spools","description":"Get all Spoolman spools not currently assigned to an AMS slot.","operationId":"get_unlinked_spools_api_v1_spoolman_spools_unlinked_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UnlinkedSpool"},"title":"Response Get Unlinked Spools Api V1 Spoolman Spools Unlinked Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools/linked":{"get":{"tags":["spoolman"],"summary":"Get Linked Spools","description":"Get a map of tag -> spool_id for all Spoolman spools that have a tag assigned.","operationId":"get_linked_spools_api_v1_spoolman_spools_linked_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools/{spool_id}/link":{"post":{"tags":["spoolman"],"summary":"Link Spool","description":"Link a Spoolman spool to an AMS tag by setting Spoolman extra.tag.","operationId":"link_spool_api_v1_spoolman_spools__spool_id__link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkSpoolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools/{spool_id}/unlink":{"post":{"tags":["spoolman"],"summary":"Unlink Spool","description":"Unlink a Spoolman spool from AMS by clearing Spoolman extra.tag.","operationId":"unlink_spool_api_v1_spoolman_spools__spool_id__unlink_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/spools/from-slot":{"post":{"tags":["spoolman"],"summary":"Create Spool From Slot","description":"Explicit user action: create a Spoolman spool from an AMS slot's current tray data.\n\nUsed by the \"+ Add to inventory\" affordance when auto_add_unknown_rfid is disabled —\nthe user looked at the slot and chose to register it. Calls sync_ams_tray with the\nauto-add override on so the spool is created even when the global setting is off.","operationId":"create_spool_from_slot_api_v1_spoolman_spools_from_slot_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpoolFromSlotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools":{"get":{"tags":["spoolman-inventory"],"summary":"List Spools","description":"Return all Spoolman spools in the InventorySpool format.","operationId":"list_spools_api_v1_spoolman_inventory_spools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Spools Api V1 Spoolman Inventory Spools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spoolman-inventory"],"summary":"Create Spool","description":"Create a new spool in Spoolman, auto-creating vendor and filament as needed.","operationId":"create_spool_api_v1_spoolman_inventory_spools_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanInventoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Spool Api V1 Spoolman Inventory Spools Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}":{"get":{"tags":["spoolman-inventory"],"summary":"Get Spool","description":"Return a single Spoolman spool in the InventorySpool format.","operationId":"get_spool_api_v1_spoolman_inventory_spools__spool_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Spool Api V1 Spoolman Inventory Spools  Spool Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["spoolman-inventory"],"summary":"Update Spool","description":"Update an existing Spoolman spool, re-linking the filament if metadata changed.","operationId":"update_spool_api_v1_spoolman_inventory_spools__spool_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanInventoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Spool Api V1 Spoolman Inventory Spools  Spool Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["spoolman-inventory"],"summary":"Delete Spool","description":"Permanently delete a spool from Spoolman.","operationId":"delete_spool_api_v1_spoolman_inventory_spools__spool_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Spool Api V1 Spoolman Inventory Spools  Spool Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/bulk":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Create Spools","description":"Create multiple identical spools in Spoolman.","operationId":"bulk_create_spools_api_v1_spoolman_inventory_spools_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanInventoryBulkCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/archive":{"post":{"tags":["spoolman-inventory"],"summary":"Archive Spool","description":"Archive a spool in Spoolman (soft-delete).","operationId":"archive_spool_api_v1_spoolman_inventory_spools__spool_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Spool Api V1 Spoolman Inventory Spools  Spool Id  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/restore":{"post":{"tags":["spoolman-inventory"],"summary":"Restore Spool","description":"Restore an archived spool in Spoolman.","operationId":"restore_spool_api_v1_spoolman_inventory_spools__spool_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restore Spool Api V1 Spoolman Inventory Spools  Spool Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/reset-consumed-counter":{"post":{"tags":["spoolman-inventory"],"summary":"Reset Spool Consumed Counter","description":"Zero the displayed \"Total Consumed\" counter for a Spoolman spool.\n\nSpoolman has no native baseline field, so the baseline lives in\n``spool.extra`` — the same mechanism internal mode uses for its\n``weight_used_baseline`` column. ``_map_spoolman_spool`` folds it back in,\nso the Inventory page's ``weight_used - baseline`` reads 0 while every\nnative Spoolman field is left exactly as it was.\n\nIt used to PATCH ``used_weight = 0`` upstream, which is not the same thing:\nSpoolman recomputes ``remaining_weight`` from initial minus used, so the\nspool jumped back to full and the measured remaining filament was gone\n(#2906). Parity with the internal-mode endpoint (#1644, #1390, see also\n``backend/app/api/routes/inventory.py::reset_spool_consumed_counter``).","operationId":"reset_spool_consumed_counter_api_v1_spoolman_inventory_spools__spool_id__reset_consumed_counter_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Spool Consumed Counter Api V1 Spoolman Inventory Spools  Spool Id  Reset Consumed Counter Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/bulk-update":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Update Spools","description":"Apply the same partial update to every listed Spoolman spool.\n\nLoops the per-spool ``update_spool`` route so the filament re-linking +\nextra-dict + location-resolution rules stay in sync with the single-spool\nPATCH path. Per-spool errors are collected; one bad ID doesn't abort the\nbatch.","operationId":"bulk_update_spools_api_v1_spoolman_inventory_spools_bulk_update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanBulkUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Update Spools Api V1 Spoolman Inventory Spools Bulk Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/bulk-delete":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Delete Spools","description":"Hard-delete every listed Spoolman spool. Per-spool failures are collected.","operationId":"bulk_delete_spools_api_v1_spoolman_inventory_spools_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanBulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Delete Spools Api V1 Spoolman Inventory Spools Bulk Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/bulk-archive":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Archive Spools","description":"Archive every listed Spoolman spool. Per-spool failures are collected.","operationId":"bulk_archive_spools_api_v1_spoolman_inventory_spools_bulk_archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanBulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Archive Spools Api V1 Spoolman Inventory Spools Bulk Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/bulk-restore":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Restore Spools","description":"Restore every listed archived Spoolman spool. Per-spool failures are collected.","operationId":"bulk_restore_spools_api_v1_spoolman_inventory_spools_bulk_restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanBulkIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Restore Spools Api V1 Spoolman Inventory Spools Bulk Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/reset-consumed-counter-bulk":{"post":{"tags":["spoolman-inventory"],"summary":"Bulk Reset Spool Consumed Counter","description":"Bulk reset the \"Total Consumed\" counter across the given Spoolman spool IDs.\n\nCaller passes an explicit list of IDs — no \"reset all\" shortcut, since\na typo on a wildcard would wipe the entire inventory's tracking.\nReturns the count of spools reset and, like the other bulk actions, the\nones Spoolman refused in ``errors``: an individual failure does not abort\nthe batch, and a batch where every reset failed is not reported as a\nsuccess (FO-C8).","operationId":"bulk_reset_spool_consumed_counter_api_v1_spoolman_inventory_spools_reset_consumed_counter_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Reset Spool Consumed Counter Api V1 Spoolman Inventory Spools Reset Consumed Counter Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/weight":{"patch":{"tags":["spoolman-inventory"],"summary":"Sync Spool Weight","description":"Update a spool's remaining weight from a measured gross weight.\n\nComputes remaining = gross_weight - tare, with the tare resolved the way\nSpoolman does it (spool, filament, vendor, then 250 g; see spoolman_tare).","operationId":"sync_spool_weight_api_v1_spoolman_inventory_spools__spool_id__weight_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolWeightUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Spool Weight Api V1 Spoolman Inventory Spools  Spool Id  Weight Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/tag":{"patch":{"tags":["spoolman-inventory"],"summary":"Link Tag To Spoolman Spool","description":"Write an NFC tag UID or Bambu tray UUID into Spoolman's extra.tag for a spool.\n\ntray_uuid takes precedence over tag_uid when both are supplied.\nUses extra_lock to serialise against concurrent extra-field writes.\n\nA tag another active spool already carries is refused with the shared\n``tag_already_linked`` 409, identical to the built-in route's (#3110).","operationId":"link_tag_to_spoolman_spool_api_v1_spoolman_inventory_spools__spool_id__tag_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolTagLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Tag To Spoolman Spool Api V1 Spoolman Inventory Spools  Spool Id  Tag Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/tags/migrate":{"post":{"tags":["spoolman-inventory"],"summary":"Migrate Tags To Native","description":"Move tags from Spoolman's extra.tag into its native tags (Spoolman 0.27+).\n\nextra.tag itself is left as it is, so older readers keep working and a\ndowngrade loses nothing. A slot's fallback ID is not a physical tag and\nstays behind. Archived spools are skipped, and a tag an archived spool still\nholds moves to the active one. A tag Spoolman holds on another active spool\nis reported as a conflict for the user to settle, never moved by guessing.","operationId":"migrate_tags_to_native_api_v1_spoolman_inventory_tags_migrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"Only count what would move, change nothing","default":true,"title":"Dry Run"},"description":"Only count what would move, change nothing"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Migrate Tags To Native Api V1 Spoolman Inventory Tags Migrate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/slot-assignments/all":{"get":{"tags":["spoolman-inventory"],"summary":"Get All Spoolman Slot Assignments","description":"Return all Spoolman slot assignments enriched with printer_name and ams_label.\n\n``printer_name`` is null only when the printer relation is missing\n(cascade-deleted edge case). ``ams_label`` is null when no AmsLabel row\nmatches the slot's MQTT serial (or the synthetic ``f\"p{pid}a{ams_id}\"``\nfallback key).","operationId":"get_all_spoolman_slot_assignments_api_v1_spoolman_inventory_slot_assignments_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolmanSlotAssignmentEnriched"},"title":"Response Get All Spoolman Slot Assignments Api V1 Spoolman Inventory Slot Assignments All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/sync-ams-weights":{"post":{"tags":["spoolman-inventory"],"summary":"Sync Spoolman Ams Weights","description":"Sync remaining weight back to Spoolman for all slot-assigned spools.\n\nReads live AMS remain% from connected printers, computes\nremaining = label_weight * remain% / 100, and PATCHes Spoolman.","operationId":"sync_spoolman_ams_weights_api_v1_spoolman_inventory_sync_ams_weights_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/slot-assignments":{"post":{"tags":["spoolman-inventory"],"summary":"Assign Spoolman Slot","description":"Assign a Spoolman spool to a printer AMS slot (stored in local DB only).\n\nRaises 404 if the printer does not exist or the spool is not found in Spoolman.\nSpoolman's own ``spool.location`` field is NOT touched — it is user-managed.","operationId":"assign_spoolman_slot_api_v1_spoolman_inventory_slot_assignments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolSlotAssignmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Spoolman Slot Api V1 Spoolman Inventory Slot Assignments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["spoolman-inventory"],"summary":"Get Spoolman Slot Assignment","description":"Return the Spoolman spool assigned to a specific printer slot, or null if unassigned.","operationId":"get_spoolman_slot_assignment_api_v1_spoolman_inventory_slot_assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Printer Id"}},{"name":"ams_id","in":"query","required":true,"schema":{"type":"integer","maximum":7,"minimum":0,"title":"Ams Id"}},{"name":"tray_id","in":"query","required":true,"schema":{"type":"integer","maximum":3,"minimum":0,"title":"Tray Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Response Get Spoolman Slot Assignment Api V1 Spoolman Inventory Slot Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/slot-assignments/{spoolman_spool_id}":{"delete":{"tags":["spoolman-inventory"],"summary":"Unassign Spoolman Slot","description":"Remove the local slot assignment for a Spoolman spool.\n\nSpoolman's own ``spool.location`` field is NOT touched — it is user-managed.","operationId":"unassign_spoolman_slot_api_v1_spoolman_inventory_slot_assignments__spoolman_spool_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spoolman_spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spoolman Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unassign Spoolman Slot Api V1 Spoolman Inventory Slot Assignments  Spoolman Spool Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/usage":{"get":{"tags":["spoolman-inventory"],"summary":"Get Spoolman Spool Usage History","description":"A Spoolman spool's per-print usage, as Bambuddy charged it (#3407).","operationId":"get_spoolman_spool_usage_history_api_v1_spoolman_inventory_spools__spool_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolUsageHistoryResponse"},"title":"Response Get Spoolman Spool Usage History Api V1 Spoolman Inventory Spools  Spool Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["spoolman-inventory"],"summary":"Clear Spoolman Spool Usage History","description":"Clear a Spoolman spool's usage history. Spoolman's own totals are untouched.","operationId":"clear_spoolman_spool_usage_history_api_v1_spoolman_inventory_spools__spool_id__usage_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Clear Spoolman Spool Usage History Api V1 Spoolman Inventory Spools  Spool Id  Usage Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/filament-presets":{"get":{"tags":["spoolman-inventory"],"summary":"Get Spoolman Filament Presets","description":"Return all per-printer-model preset overrides for a Spoolman spool.","operationId":"get_spoolman_filament_presets_api_v1_spoolman_inventory_spools__spool_id__filament_presets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Spoolman Filament Presets Api V1 Spoolman Inventory Spools  Spool Id  Filament Presets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["spoolman-inventory"],"summary":"Save Spoolman Filament Presets","description":"Replace all per-printer-model preset overrides for a Spoolman spool.","operationId":"save_spoolman_filament_presets_api_v1_spoolman_inventory_spools__spool_id__filament_presets_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolFilamentPresetBase"},"title":"Presets"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Save Spoolman Filament Presets Api V1 Spoolman Inventory Spools  Spool Id  Filament Presets Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/filaments":{"get":{"tags":["spoolman-inventory"],"summary":"List Spoolman Filaments","description":"Return all filaments from Spoolman, normalised for the frontend catalog picker.","operationId":"list_spoolman_filaments_api_v1_spoolman_inventory_filaments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NormalizedFilament"},"title":"Response List Spoolman Filaments Api V1 Spoolman Inventory Filaments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/filaments/{filament_id}":{"patch":{"tags":["spoolman-inventory"],"summary":"Patch Spoolman Filament","description":"Update a Spoolman filament's name and/or spool_weight.\n\nWhen spool_weight changes, Option A (keep_existing_spools=True) stamps the old\nweight (the filament's, or its vendor's empty_spool_weight when the filament had\nnone) onto spools currently inheriting it (spool.spool_weight is None) so their\ntare calculations are unaffected by the filament change.\nOption B (keep_existing_spools=False, the default): when spool_weight is a\nconcrete value, stamps it onto every affected spool explicitly; when spool_weight\nis null, clears per-spool overrides so spools fall back to the filament value.","operationId":"patch_spoolman_filament_api_v1_spoolman_inventory_filaments__filament_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filament_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Filament Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolmanFilamentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizedFilament"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/profile-defaults/{default_id}/apply":{"post":{"tags":["spoolman-inventory"],"summary":"Apply Profile Default To Spoolman Spools","description":"Spoolman twin of ``POST /inventory/profile-defaults/{id}/apply`` (#1326).\n\nFills in what active Spoolman spools of the default's product do not have\nyet: the spool's own preset (in its extra dict), and its preset overrides\nand K profiles (Bambuddy tables keyed by the spool id). Never overwrites.","operationId":"apply_profile_default_to_spoolman_spools_api_v1_spoolman_inventory_profile_defaults__default_id__apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"default_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Default Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Profile Default To Spoolman Spools Api V1 Spoolman Inventory Profile Defaults  Default Id  Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/k-profiles":{"get":{"tags":["spoolman-inventory"],"summary":"Get Spoolman K Profiles","description":"Return all local K-value calibration profiles for a Spoolman spool.","operationId":"get_spoolman_k_profiles_api_v1_spoolman_inventory_spools__spool_id__k_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Spoolman K Profiles Api V1 Spoolman Inventory Spools  Spool Id  K Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["spoolman-inventory"],"summary":"Save Spoolman K Profiles","description":"Replace all K-value calibration profiles for a Spoolman spool.\n\nAs the internal route: a caller limited to some printers (#1727) replaces\nonly theirs, and the other printers' profiles stay.","operationId":"save_spoolman_k_profiles_api_v1_spoolman_inventory_spools__spool_id__k_profiles_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolKProfileBase"},"title":"Profiles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Save Spoolman K Profiles Api V1 Spoolman Inventory Spools  Spool Id  K Profiles Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolman/inventory/spools/{spool_id}/suppliers":{"get":{"tags":["spoolman-inventory"],"summary":"Get Spoolman Spool Suppliers","description":"Supplier assignments for a Spoolman spool (#2988, Bambuddy-side rows).","operationId":"get_spoolman_spool_suppliers_api_v1_spoolman_inventory_spools__spool_id__suppliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Spoolman Spool Suppliers Api V1 Spoolman Inventory Spools  Spool Id  Suppliers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["spoolman-inventory"],"summary":"Save Spoolman Spool Suppliers","description":"Replace a Spoolman spool's supplier assignments (#2988).\n\nMirror of the built-in inventory's replace-all endpoint — Spoolman owns\nthe spool, Bambuddy owns the assignment (``SpoolmanKProfile`` precedent),\nso the rows are local and the spool is only verified to exist remotely.","operationId":"save_spoolman_spool_suppliers_api_v1_spoolman_inventory_spools__spool_id__suppliers_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"spool_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Spool Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoolSupplierLinkInput"},"title":"Links"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Save Spoolman Spool Suppliers Api V1 Spoolman Inventory Spools  Spool Id  Suppliers Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/updates/version":{"get":{"tags":["updates"],"summary":"Get Version","description":"Get current application version.\n\nNote: Unauthenticated - needed to display version in UI without login.","operationId":"get_version_api_v1_updates_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/updates/check":{"get":{"tags":["updates"],"summary":"Check For Updates","description":"Check GitHub for available updates.","operationId":"check_for_updates_api_v1_updates_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/updates/apply":{"post":{"tags":["updates"],"summary":"Apply Update","description":"Apply available update (git pull + rebuild).","operationId":"apply_update_api_v1_updates_apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/updates/status":{"get":{"tags":["updates"],"summary":"Get Update Status","description":"Get current update status.","operationId":"get_update_status_api_v1_updates_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sponsor-prompt/check":{"get":{"tags":["sponsor-prompt"],"summary":"Check Sponsor Prompt","description":"Return the next eligible sponsor-toast trigger, or `{show: false}`.","operationId":"check_sponsor_prompt_api_v1_sponsor_prompt_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SponsorPromptCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sponsor-prompt/dismiss":{"post":{"tags":["sponsor-prompt"],"summary":"Dismiss Sponsor Prompt","description":"Anchor the 14-day cooldown and record the milestone as shown.","operationId":"dismiss_sponsor_prompt_api_v1_sponsor_prompt_dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SponsorPromptDismissRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/announcements":{"get":{"tags":["announcements"],"summary":"List Announcements","description":"Whether this user may see announcements, and the live ones newest first,\nwith their read state.","operationId":"list_announcements_api_v1_announcements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Announcements Api V1 Announcements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/announcements/{public_id}/read":{"post":{"tags":["announcements"],"summary":"Mark Announcement Read","operationId":"mark_announcement_read_api_v1_announcements__public_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/types":{"get":{"tags":["maintenance"],"summary":"Get Maintenance Types","description":"Get all maintenance types.","operationId":"get_maintenance_types_api_v1_maintenance_types_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaintenanceTypeResponse"},"title":"Response Get Maintenance Types Api V1 Maintenance Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["maintenance"],"summary":"Create Maintenance Type","description":"Create a custom maintenance type.","operationId":"create_maintenance_type_api_v1_maintenance_types_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceTypeCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceTypeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/types/{type_id}":{"patch":{"tags":["maintenance"],"summary":"Update Maintenance Type","description":"Update a maintenance type.","operationId":"update_maintenance_type_api_v1_maintenance_types__type_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"integer","title":"Type Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceTypeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceTypeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["maintenance"],"summary":"Delete Maintenance Type","description":"Delete a maintenance type.","operationId":"delete_maintenance_type_api_v1_maintenance_types__type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"integer","title":"Type Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/types/restore-defaults":{"post":{"tags":["maintenance"],"summary":"Restore Default Maintenance Types","description":"Restore deleted default maintenance types.","operationId":"restore_default_maintenance_types_api_v1_maintenance_types_restore_defaults_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/printers/{printer_id}":{"get":{"tags":["maintenance"],"summary":"Get Printer Maintenance","description":"Get maintenance overview for a specific printer.","operationId":"get_printer_maintenance_api_v1_maintenance_printers__printer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterMaintenanceOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/overview":{"get":{"tags":["maintenance"],"summary":"Get All Maintenance Overview","description":"Get maintenance overview for all active printers.","operationId":"get_all_maintenance_overview_api_v1_maintenance_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrinterMaintenanceOverview"},"title":"Response Get All Maintenance Overview Api V1 Maintenance Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/items/{item_id}":{"patch":{"tags":["maintenance"],"summary":"Update Printer Maintenance","description":"Update a printer maintenance item (e.g., custom interval, enabled).","operationId":"update_printer_maintenance_api_v1_maintenance_items__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterMaintenanceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterMaintenanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["maintenance"],"summary":"Remove Maintenance Item","description":"Remove a maintenance item (unassign a custom type from a printer).","operationId":"remove_maintenance_item_api_v1_maintenance_items__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/printers/{printer_id}/assign/{type_id}":{"post":{"tags":["maintenance"],"summary":"Assign Maintenance Type","description":"Assign a maintenance type to a specific printer (for custom types).","operationId":"assign_maintenance_type_api_v1_maintenance_printers__printer_id__assign__type_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"type_id","in":"path","required":true,"schema":{"type":"integer","title":"Type Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterMaintenanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/items/{item_id}/perform":{"post":{"tags":["maintenance"],"summary":"Perform Maintenance","description":"Mark maintenance as performed (reset the counter) and log it.","operationId":"perform_maintenance_api_v1_maintenance_items__item_id__perform_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformMaintenanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/items/{item_id}/history":{"get":{"tags":["maintenance"],"summary":"Get Maintenance History","description":"Get maintenance history for a specific item.","operationId":"get_maintenance_history_api_v1_maintenance_items__item_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaintenanceHistoryResponse"},"title":"Response Get Maintenance History Api V1 Maintenance Items  Item Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/printers/{printer_id}/log":{"get":{"tags":["maintenance"],"summary":"Get Printer Maintenance Log","description":"A printer's maintenance log, newest first.","operationId":"get_printer_maintenance_log_api_v1_maintenance_printers__printer_id__log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceLogPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["maintenance"],"summary":"Clean Up Printer Maintenance Log","description":"Delete a printer's maintenance log entries older than ``older_than_days``.","operationId":"clean_up_printer_maintenance_log_api_v1_maintenance_printers__printer_id__log_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"older_than_days","in":"query","required":true,"schema":{"type":"integer","maximum":36500,"minimum":1,"description":"Delete the entries older than this many days","title":"Older Than Days"},"description":"Delete the entries older than this many days"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/printers/{printer_id}/log/export":{"get":{"tags":["maintenance"],"summary":"Export Printer Maintenance Log","description":"A printer's maintenance log as CSV.","operationId":"export_printer_maintenance_log_api_v1_maintenance_printers__printer_id__log_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/log/export":{"get":{"tags":["maintenance"],"summary":"Export Maintenance Log","description":"The maintenance log of every printer the caller may see, as CSV.\n\nEntries of deleted printers are in it only for callers who see every\nprinter: a printer-scoped caller can't tell whose they were.","operationId":"export_maintenance_log_api_v1_maintenance_log_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/log":{"delete":{"tags":["maintenance"],"summary":"Clean Up Maintenance Log","description":"Delete the maintenance log entries older than ``older_than_days`` of every\nprinter the caller may see.\n\nEntries of deleted printers go too, but only for callers who see every\nprinter, as in the export.","operationId":"clean_up_maintenance_log_api_v1_maintenance_log_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"older_than_days","in":"query","required":true,"schema":{"type":"integer","maximum":36500,"minimum":1,"description":"Delete the entries older than this many days","title":"Older Than Days"},"description":"Delete the entries older than this many days"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/log/{entry_id}":{"delete":{"tags":["maintenance"],"summary":"Delete Maintenance Log Entry","description":"Delete one maintenance log entry, e.g. of a task reset by mistake.\n\nThe task's last reset stays as it is: deleting the entry does not undo it.","operationId":"delete_maintenance_log_entry_api_v1_maintenance_log__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/summary":{"get":{"tags":["maintenance"],"summary":"Get Maintenance Summary","description":"Get a summary of maintenance status across all printers.","operationId":"get_maintenance_summary_api_v1_maintenance_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maintenance/printers/{printer_id}/hours":{"patch":{"tags":["maintenance"],"summary":"Set Printer Hours","description":"Set the total print hours for a printer (adjusts offset to match).\n\nThe offset is calculated as: offset = total_hours - runtime_hours\nWhere runtime_hours comes from the runtime_seconds counter that tracks\nactual machine active time (RUNNING state only — paused time excluded, #1521).","operationId":"set_printer_hours_api_v1_maintenance_printers__printer_id__hours_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"total_hours","in":"query","required":true,"schema":{"type":"number","title":"Total Hours"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/camera/stream-token":{"post":{"tags":["camera"],"summary":"Create Stream Token","description":"Create a reusable token for camera stream/snapshot access.\n\nReturns a token valid for 60 minutes that can be appended as ?token=xxx\nto camera stream/snapshot URLs loaded via <img> tags. The token opens only\nthe printers its minter may see (#1727).","operationId":"create_stream_token_api_v1_printers_camera_stream_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/stream":{"get":{"tags":["camera"],"summary":"Camera Stream","description":"Stream live video from printer camera as MJPEG.\n\nThis endpoint returns a multipart MJPEG stream that can be used directly\nin an <img> tag or video player.\n\nRequires a stream token query param (?token=xxx) when auth is enabled.\n\nUses external camera if configured, otherwise uses built-in camera:\n- External: MJPEG, RTSP, or HTTP snapshot\n- A1/P1: Chamber image protocol (port 6000)\n- X1/H2/P2: RTSP via ffmpeg (port 322)\n\nArgs:\n    printer_id: Printer ID\n    fps: Target frames per second (default: 10, max: 30)","operationId":"camera_stream_api_v1_printers__printer_id__camera_stream_get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"fps","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Fps"}},{"name":"viewer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Viewer"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/stop":{"post":{"tags":["camera"],"summary":"Stop Camera Stream","description":"Stop active camera streams for a printer.\n\nCalled by the frontend on viewer unmount (cam-wall tile, embedded viewer,\npopup window). Accepts both GET and POST (POST for sendBeacon compatibility).\n\nReference-count guard: every viewer of a printer subscribes to the same\nfan-out broadcaster, so a force-shutdown triggered by ONE leaving viewer\nused to kill the others' streams (cam-wall tile froze when a user opened\nthen closed the embedded viewer). If any subscriber is still attached,\nskip the force-teardown — the broadcaster's natural grace-shutdown (5 s\nafter subscribers drop to 0) handles cleanup when the leaving viewer's\nHTTP connection actually closes.\n\nExternal cameras fan out too (RC-C6), under their own broadcaster key, so\ntheir viewers count the same way.","operationId":"stop_camera_stream_api_v1_printers__printer_id__camera_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"viewer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Viewer"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["camera"],"summary":"Stop Camera Stream","description":"Stop active camera streams for a printer.\n\nCalled by the frontend on viewer unmount (cam-wall tile, embedded viewer,\npopup window). Accepts both GET and POST (POST for sendBeacon compatibility).\n\nReference-count guard: every viewer of a printer subscribes to the same\nfan-out broadcaster, so a force-shutdown triggered by ONE leaving viewer\nused to kill the others' streams (cam-wall tile froze when a user opened\nthen closed the embedded viewer). If any subscriber is still attached,\nskip the force-teardown — the broadcaster's natural grace-shutdown (5 s\nafter subscribers drop to 0) handles cleanup when the leaving viewer's\nHTTP connection actually closes.\n\nExternal cameras fan out too (RC-C6), under their own broadcaster key, so\ntheir viewers count the same way.","operationId":"stop_camera_stream_api_v1_printers__printer_id__camera_stop_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"viewer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Viewer"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/snapshot":{"get":{"tags":["camera"],"summary":"Camera Snapshot","description":"Capture a single frame from the printer camera.\n\nReturns a JPEG image.\n\nRequires a stream token query param (?token=xxx) when auth is enabled.","operationId":"camera_snapshot_api_v1_printers__printer_id__camera_snapshot_get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/test":{"get":{"tags":["camera"],"summary":"Test Camera","description":"Test camera connection for a printer.\n\nReturns success status and any error message.","operationId":"test_camera_api_v1_printers__printer_id__camera_test_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/diagnose":{"post":{"tags":["camera"],"summary":"Diagnose Camera Route","description":"Run staged diagnostics for a printer's camera path.\n\nReturns a structured result the frontend renders inline so users can\nself-diagnose \"connection lost\" before opening a ticket. See\n``camera_diagnose`` for stage details and the live-stream shortcut.","operationId":"diagnose_camera_route_api_v1_printers__printer_id__camera_diagnose_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/status":{"get":{"tags":["camera"],"summary":"Camera Status","description":"Get the status of an active camera stream.\n\nReturns whether a stream is active and when the last frame was received.\nUsed by the frontend to detect stalled streams and auto-reconnect.","operationId":"camera_status_api_v1_printers__printer_id__camera_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/external/test":{"post":{"tags":["camera"],"summary":"Test External Camera","description":"Test external camera connection.\n\nThe URL comes in the body: it may carry the camera login, and a query\nstring ends up in the access log. The query form is still accepted from\nan older page.\n\nArgs:\n    printer_id: Printer ID (for authorization)\n    body / url: Camera URL or USB device path to test\n    body / camera_type: Camera type (\"mjpeg\", \"rtsp\", \"snapshot\", \"usb\")\n\nReturns:\n    Dict with {success: bool, error?: str, resolution?: str}","operationId":"test_external_camera_api_v1_printers__printer_id__camera_external_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},{"name":"camera_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Type"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExternalCameraTestRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/check-plate":{"get":{"tags":["camera"],"summary":"Check Plate Empty","description":"Check if the build plate is empty using camera vision.\n\nUses calibration-based difference detection - compares current frame\nto a reference image of the empty plate.\n\nIMPORTANT: Chamber light must be ON for reliable detection.\n\nArgs:\n    printer_id: Printer ID\n    plate_type: Type of build plate (e.g., \"High Temp Plate\") for calibration lookup\n    use_external: If True, prefer external camera over built-in. When omitted\n        (None), defaults to the printer's external_camera_enabled setting —\n        mirroring the runtime auto-check at print start (main.py). Without\n        this default the UI's manual check would always use the built-in\n        camera, mismatching the reference saved during calibration (#1359).\n    include_debug_image: If True, return URL to annotated debug image\n\nReturns:\n    Dict with detection results:\n    - is_empty: bool - Whether plate appears empty\n    - confidence: float - Confidence level (0.0 to 1.0)\n    - difference_percent: float - How different from calibration reference\n    - message: str - Human-readable result message\n    - needs_calibration: bool - True if calibration is required\n    - failure_reason: str | None - why the check could not run, None when it ran\n    - light_warning: bool - True if chamber light is off","operationId":"check_plate_empty_api_v1_printers__printer_id__camera_check_plate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"plate_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Type"}},{"name":"use_external","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use External"}},{"name":"include_debug_image","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Debug Image"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/plate-detection/calibrate":{"post":{"tags":["camera"],"summary":"Calibrate Plate Detection","description":"Calibrate plate detection by capturing a reference image of the empty plate.\n\nThe plate MUST be empty when calling this endpoint. The captured image\nwill be used as the reference for future detection comparisons.\n\nSupports up to 5 reference images per printer. When adding a 6th, the oldest\nis automatically removed.\n\nIMPORTANT: Chamber light should be ON for calibration.\n\nArgs:\n    printer_id: Printer ID\n    label: Optional label for this reference (e.g., \"High Temp Plate\", \"Wham Bam\")\n    use_external: If True, prefer external camera over built-in. When omitted\n        (None), defaults to the printer's external_camera_enabled setting so\n        calibration captures from the same source the runtime auto-check\n        uses at print start (#1359).\n\nReturns:\n    Dict with:\n    - success: bool - Whether calibration succeeded\n    - message: str - Status message\n    - index: int - The reference slot used (0-4)","operationId":"calibrate_plate_detection_api_v1_printers__printer_id__camera_plate_detection_calibrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},{"name":"use_external","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use External"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/plate-detection/status":{"get":{"tags":["camera"],"summary":"Get Plate Detection Status","description":"Check plate detection status for a printer and plate type.\n\nReturns:\n    Dict with:\n    - available: bool - Whether OpenCV is installed\n    - calibrated: bool - Whether printer has calibration for this plate type\n    - plate_type: str - The plate type queried\n    - chamber_light: bool - Whether chamber light is on\n    - message: str - Status message","operationId":"get_plate_detection_status_api_v1_printers__printer_id__camera_plate_detection_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"plate_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Type"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/plate-detection/references":{"get":{"tags":["camera"],"summary":"Get Plate References","description":"Get all calibration references for a printer with metadata.\n\nReturns list of references with index, label, timestamp, and thumbnail URL.","operationId":"get_plate_references_api_v1_printers__printer_id__camera_plate_detection_references_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/plate-detection/references/{index}/thumbnail":{"get":{"tags":["camera"],"summary":"Get Reference Thumbnail","description":"Get thumbnail image for a calibration reference.\n\nRequires a stream token query param (?token=xxx) when auth is enabled.","operationId":"get_reference_thumbnail_api_v1_printers__printer_id__camera_plate_detection_references__index__thumbnail_get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printers/{printer_id}/camera/plate-detection/references/{index}":{"put":{"tags":["camera"],"summary":"Update Reference Label","description":"Update the label for a calibration reference.","operationId":"update_reference_label_api_v1_printers__printer_id__camera_plate_detection_references__index__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"label","in":"query","required":true,"schema":{"type":"string","title":"Label"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["camera"],"summary":"Delete Reference","description":"Delete a specific calibration reference.","operationId":"delete_reference_api_v1_printers__printer_id__camera_plate_detection_references__index__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/camwall/printers":{"get":{"tags":["camwall"],"summary":"List Camwall Printers","description":"Every printer the token's owner may see (#1727), plus the handful of\nstatus fields a Cam Wall tile draws.\n\nOne call for the whole wall rather than one per printer: a kiosk polls this\non a fixed interval with no WebSocket to invalidate it, and N+1 requests\nevery few seconds is a poor trade for a screen nobody is interacting with.\n\nOrdered by name so tile positions stay put across polls — a wall that\nreshuffles itself is unusable to watch.","operationId":"list_camwall_printers_api_v1_camwall_printers_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Camwall Printers Api V1 Camwall Printers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-links/":{"get":{"tags":["external-links"],"summary":"List External Links","description":"List all external links ordered by sort_order.","operationId":"list_external_links_api_v1_external_links__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalLinkResponse"},"title":"Response List External Links Api V1 External Links  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["external-links"],"summary":"Create External Link","description":"Create a new external link.","operationId":"create_external_link_api_v1_external_links__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-links/badge":{"put":{"tags":["external-links"],"summary":"Set Badge","description":"Set the count on the sidebar links pointing at an app, e.g. Bambuddy\nOrders' To do. For the app itself: an API key needs the \"Send\nnotifications\" permission, like for its messages. The count shows while\nthe app keeps reporting it.","operationId":"set_badge_api_v1_external_links_badge_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkBadgeSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-links/{link_id}":{"get":{"tags":["external-links"],"summary":"Get External Link","description":"Get a specific external link.","operationId":"get_external_link_api_v1_external_links__link_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["external-links"],"summary":"Update External Link","description":"Update an external link.","operationId":"update_external_link_api_v1_external_links__link_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["external-links"],"summary":"Delete External Link","description":"Delete an external link.","operationId":"delete_external_link_api_v1_external_links__link_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-links/reorder":{"put":{"tags":["external-links"],"summary":"Reorder External Links","description":"Update the sort order of external links.","operationId":"reorder_external_links_api_v1_external_links_reorder_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkReorder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalLinkResponse"},"title":"Response Reorder External Links Api V1 External Links Reorder Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-links/{link_id}/icon":{"post":{"tags":["external-links"],"summary":"Upload Icon","description":"Upload a custom icon for an external link.","operationId":"upload_icon_api_v1_external_links__link_id__icon_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_icon_api_v1_external_links__link_id__icon_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["external-links"],"summary":"Delete Icon","description":"Delete the custom icon for an external link.","operationId":"delete_icon_api_v1_external_links__link_id__icon_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["external-links"],"summary":"Get Icon","description":"Get the custom icon for an external link.\n\nRequires a media token query param (?token=xxx) when auth is enabled, and\nthe same ``external_links:read`` every other read on this router takes.\nPreviously it took the camera-stream token, so a sidebar icon was visible\nonly to users who could also watch the printer camera (#3025).","operationId":"get_icon_api_v1_external_links__link_id__icon_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/":{"get":{"tags":["projects"],"summary":"List Projects","description":"List all projects with basic stats.","operationId":"list_projects_api_v1_projects__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectListResponse"},"title":"Response List Projects Api V1 Projects  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Project","description":"Create a new project.","operationId":"create_project_api_v1_projects__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects":{"get":{"tags":["projects"],"summary":"List Projects","description":"List all projects with basic stats.","operationId":"list_projects_api_v1_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectListResponse"},"title":"Response List Projects Api V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/templates":{"get":{"tags":["projects"],"summary":"List Templates","description":"List all project templates.","operationId":"list_templates_api_v1_projects_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectListResponse"},"title":"Response List Templates Api V1 Projects Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/from-template/{template_id}":{"post":{"tags":["projects"],"summary":"Create Project From Template","description":"Create a new project from a template.","operationId":"create_project_from_template_api_v1_projects_from_template__template_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"name","in":"query","required":false,"schema":{"type":"string","title":"Name"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","description":"Get a project by ID with detailed stats.","operationId":"get_project_api_v1_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","description":"Update a project.","operationId":"update_project_api_v1_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","description":"Delete a project. Archives and queue items will have project_id set to NULL.","operationId":"delete_project_api_v1_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/archives":{"get":{"tags":["projects"],"summary":"List Project Archives","description":"List the archives of a project the caller may see in the archives.","operationId":"list_project_archives_api_v1_projects__project_id__archives_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/queue":{"get":{"tags":["projects"],"summary":"List Project Queue","description":"List the queue items of a project the caller may see in the queue.","operationId":"list_project_queue_api_v1_projects__project_id__queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/file-progress":{"get":{"tags":["projects"],"summary":"Get Project File Progress","description":"Completed-run counts per library file inside a project (#1897).\n\nCounts completed ``PrintLogEntry`` rows (same source as the aggregate\nproject stats) of archives attributed to this project, and maps each run to\none of the project's library files — the files living in folders linked to\nthe project, the same set the project detail page renders.\n\nA run is attributed to exactly one file, by the strongest available match:\n1. ``archive.library_file_id`` (stamped at queue dispatch since #1897),\n2. content hash (covers historical rows),\n3. filename (covers hash drift, e.g. re-sliced uploads of the same name).\nFiles with no completed runs are omitted — the frontend treats absence as 0.","operationId":"get_project_file_progress_api_v1_projects__project_id__file_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectFileProgress"},"title":"Response Get Project File Progress Api V1 Projects  Project Id  File Progress Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/add-archives":{"post":{"tags":["projects"],"summary":"Add Archives To Project","description":"Batch add archives to a project.","operationId":"add_archives_to_project_api_v1_projects__project_id__add_archives_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAddArchives"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/add-queue":{"post":{"tags":["projects"],"summary":"Add Queue Items To Project","description":"Batch add queue items to a project.","operationId":"add_queue_items_to_project_api_v1_projects__project_id__add_queue_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAddQueueItems"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/remove-archives":{"post":{"tags":["projects"],"summary":"Remove Archives From Project","description":"Remove archives from a project (sets project_id to NULL).","operationId":"remove_archives_from_project_api_v1_projects__project_id__remove_archives_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAddArchives"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/cover-image":{"post":{"tags":["projects"],"summary":"Upload Project Cover Image","description":"Upload (or replace) the project's cover image (#1155).\n\nStored alongside other attachments but tracked via Project.cover_image_filename\nso swap/delete operations don't touch the attachments list. Replaces any\nexisting cover image — the prior file is deleted on disk before the new one\nlands so a stuck filesystem reference can't accumulate orphaned images.","operationId":"upload_project_cover_image_api_v1_projects__project_id__cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_project_cover_image_api_v1_projects__project_id__cover_image_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"Get Project Cover Image","description":"Stream the project's cover image (#1155).\n\nBrowsers can't attach `Authorization: Bearer ...` to `<img src>` requests,\nso this route accepts a `?token=` media credential, the same one\n/archives/{id}/thumbnail takes. The frontend wraps URLs with `withMediaToken`.\n\nGated on ``projects:read`` like every other project route. It used to take\nthe camera-stream token, which required ``camera:view`` instead -- an\nunrelated permission that a user could hold without any project access, and\nthat a project reader could easily lack (#3025). Projects carry no\n``created_by_id``, so there is no per-row owner to check beyond that.","operationId":"get_project_cover_image_api_v1_projects__project_id__cover_image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project Cover Image","description":"Remove the project's cover image (#1155).","operationId":"delete_project_cover_image_api_v1_projects__project_id__cover_image_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/bom":{"get":{"tags":["projects"],"summary":"List Bom Items","description":"List all BOM items for a project.","operationId":"list_bom_items_api_v1_projects__project_id__bom_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BOMItemResponse"},"title":"Response List Bom Items Api V1 Projects  Project Id  Bom Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Bom Item","description":"Add a BOM item to a project.","operationId":"create_bom_item_api_v1_projects__project_id__bom_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BOMItemCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BOMItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/bom/{item_id}":{"patch":{"tags":["projects"],"summary":"Update Bom Item","description":"Update a BOM item.","operationId":"update_bom_item_api_v1_projects__project_id__bom__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BOMItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BOMItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Bom Item","description":"Delete a BOM item.","operationId":"delete_bom_item_api_v1_projects__project_id__bom__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/create-template":{"post":{"tags":["projects"],"summary":"Create Template From Project","description":"Create a template from an existing project.","operationId":"create_template_from_project_api_v1_projects__project_id__create_template_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/timeline":{"get":{"tags":["projects"],"summary":"Get Project Timeline","description":"Get timeline of events for a project, from the archives and queue items\nthe caller may see there.","operationId":"get_project_timeline_api_v1_projects__project_id__timeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimelineEvent"},"title":"Response Get Project Timeline Api V1 Projects  Project Id  Timeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/export":{"get":{"tags":["projects"],"summary":"Export Project","description":"Export a project. Use format=zip (default) for full export with files, or format=json for metadata only.","operationId":"export_project_api_v1_projects__project_id__export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"zip","title":"Format"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/import":{"post":{"tags":["projects"],"summary":"Import Project","description":"Import a project with optional BOM items and linked folders.","operationId":"import_project_api_v1_projects_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/import/file":{"post":{"tags":["projects"],"summary":"Import Project File","description":"Import a project from a ZIP or JSON file.","operationId":"import_project_file_api_v1_projects_import_file_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_project_file_api_v1_projects_import_file_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/":{"get":{"tags":["library"],"summary":"List Folders","description":"Get all folders as a tree structure.\n\nA library:read_own user gets only the folders they may see (#3201), and\nthe file counts and activity times of their own files only.","operationId":"list_folders_api_v1_library_folders__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderTreeItem"},"title":"Response List Folders Api V1 Library Folders  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Create Folder","description":"Create a new folder, owned by the user who makes it (#3201).","operationId":"create_folder_api_v1_library_folders__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders":{"get":{"tags":["library"],"summary":"List Folders","description":"Get all folders as a tree structure.\n\nA library:read_own user gets only the folders they may see (#3201), and\nthe file counts and activity times of their own files only.","operationId":"list_folders_api_v1_library_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderTreeItem"},"title":"Response List Folders Api V1 Library Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Create Folder","description":"Create a new folder, owned by the user who makes it (#3201).","operationId":"create_folder_api_v1_library_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/by-project/{project_id}":{"get":{"tags":["library"],"summary":"Get Folders By Project","description":"Get all folders linked to a specific project, those the user may see (#3201).","operationId":"get_folders_by_project_api_v1_library_folders_by_project__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderResponse"},"title":"Response Get Folders By Project Api V1 Library Folders By Project  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/by-archive/{archive_id}":{"get":{"tags":["library"],"summary":"Get Folders By Archive","description":"Get all folders linked to a specific archive, those the user may see (#3201).","operationId":"get_folders_by_archive_api_v1_library_folders_by_archive__archive_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderResponse"},"title":"Response Get Folders By Archive Api V1 Library Folders By Archive  Archive Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/{folder_id}":{"get":{"tags":["library"],"summary":"Get Folder","description":"Get a folder by ID; 404 for a folder the user may not see (#3201).","operationId":"get_folder_api_v1_library_folders__folder_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["library"],"summary":"Update Folder","description":"Update a folder.\n\nlibrary:update_all changes any folder. With library:update_own a user may\nrename their own folders and move them into another folder they can\nwrite to (#3201); linking and sharing stay with library:update_all.","operationId":"update_folder_api_v1_library_folders__folder_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library"],"summary":"Delete Folder","description":"Delete a folder and all its contents (cascade).\n\nlibrary:delete_all deletes any folder. With library:delete_own a user\ndeletes their own folder when everything in it is theirs too (#3201), or\nan ownerless folder that is truly empty (#1781). See\n``library_folder_access.folder_delete_blocker``.","operationId":"delete_folder_api_v1_library_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/{folder_id}/readme":{"get":{"tags":["library"],"summary":"Get Folder Readme","description":"Return the first markdown description file for a folder (#1268).\n\nPicks ``README.md`` / ``readme.md`` / ``description.md`` first (any case),\notherwise the alphabetically-first ``*.md`` in the folder. 404 when no\nmarkdown file is present so the FE can hide the side panel.","operationId":"get_folder_readme_api_v1_library_folders__folder_id__readme_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderReadmeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/external":{"post":{"tags":["library"],"summary":"Create External Folder","description":"Create an external folder that points to a host directory.","operationId":"create_external_folder_api_v1_library_folders_external_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalFolderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/folders/{folder_id}/scan":{"post":{"tags":["library"],"summary":"Scan External Folder","description":"Scan an external folder and sync files to the database.\n\nDiscovers new files, removes DB entries for deleted files.\nDoes not copy files — stores the external path directly.","operationId":"scan_external_folder_api_v1_library_folders__folder_id__scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/":{"get":{"tags":["library"],"summary":"List Files","description":"List files, optionally filtered by folder or project.\n\nArgs:\n    folder_id: Filter by folder ID. If None and include_root=True, returns root files.\n    project_id: Return all files across folders linked to this project (bulk fetch, avoids N+1).\n    include_root: If True and folder_id is None, returns files at root level.\n                 If False and folder_id is None, returns all files.\n    internal_only: Restrict the result to files in managed storage (`is_external=False`).\n                   Used by the File Manager's \"All Files\" sidebar entry so a linked NAS\n                   with hundreds of files doesn't drown the user's own uploads (#1621).\n    external_only: Restrict the result to files under external folders\n                   (`is_external=True`) — the symmetric combined view for users with\n                   multiple linked external sources (#1621).\n    recursive: When combined with ``folder_id``, also include files in every\n               descendant subfolder (#1268). Implemented via a recursive CTE\n               that walks ``library_folders.parent_id``. Default off so\n               existing callers (folder browsing, etc.) keep their narrow\n               single-folder semantics.\n    tag_ids: Restrict the listing to files carrying ALL of these tags\n             (AND semantics, #1268). When non-empty the folder filter is\n             intentionally bypassed — tags are cross-cutting and the user\n             wants \"every file with this tag\" regardless of where it lives.\n             ``recursive`` becomes irrelevant in that case.","operationId":"list_files_api_v1_library_files__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"include_root","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Root"}},{"name":"internal_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Internal Only"}},{"name":"external_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"External Only"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Recursive"}},{"name":"tag_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Tag Ids"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileListResponse"},"title":"Response List Files Api V1 Library Files  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Upload File","description":"Upload a file to the library.","operationId":"upload_file_api_v1_library_files__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"generate_stl_thumbnails","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Generate Stl Thumbnails"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_v1_library_files__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files":{"get":{"tags":["library"],"summary":"List Files","description":"List files, optionally filtered by folder or project.\n\nArgs:\n    folder_id: Filter by folder ID. If None and include_root=True, returns root files.\n    project_id: Return all files across folders linked to this project (bulk fetch, avoids N+1).\n    include_root: If True and folder_id is None, returns files at root level.\n                 If False and folder_id is None, returns all files.\n    internal_only: Restrict the result to files in managed storage (`is_external=False`).\n                   Used by the File Manager's \"All Files\" sidebar entry so a linked NAS\n                   with hundreds of files doesn't drown the user's own uploads (#1621).\n    external_only: Restrict the result to files under external folders\n                   (`is_external=True`) — the symmetric combined view for users with\n                   multiple linked external sources (#1621).\n    recursive: When combined with ``folder_id``, also include files in every\n               descendant subfolder (#1268). Implemented via a recursive CTE\n               that walks ``library_folders.parent_id``. Default off so\n               existing callers (folder browsing, etc.) keep their narrow\n               single-folder semantics.\n    tag_ids: Restrict the listing to files carrying ALL of these tags\n             (AND semantics, #1268). When non-empty the folder filter is\n             intentionally bypassed — tags are cross-cutting and the user\n             wants \"every file with this tag\" regardless of where it lives.\n             ``recursive`` becomes irrelevant in that case.","operationId":"list_files_api_v1_library_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"include_root","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Root"}},{"name":"internal_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Internal Only"}},{"name":"external_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"External Only"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Recursive"}},{"name":"tag_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Tag Ids"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileListResponse"},"title":"Response List Files Api V1 Library Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Upload File","description":"Upload a file to the library.","operationId":"upload_file_api_v1_library_files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"generate_stl_thumbnails","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Generate Stl Thumbnails"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_v1_library_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/extract-zip":{"post":{"tags":["library"],"summary":"Extract Zip File","description":"Upload and extract a ZIP file to the library.\n\nArgs:\n    file: The ZIP file to extract\n    folder_id: Target folder ID (None = root)\n    preserve_structure: If True, recreate folder structure from ZIP; if False, extract all files flat\n    create_folder_from_zip: If True, create a folder named after the ZIP file and extract into it\n    generate_stl_thumbnails: If True, generate thumbnails for STL files","operationId":"extract_zip_file_api_v1_library_files_extract_zip_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"preserve_structure","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Preserve Structure"}},{"name":"create_folder_from_zip","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Create Folder From Zip"}},{"name":"generate_stl_thumbnails","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Generate Stl Thumbnails"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_zip_file_api_v1_library_files_extract_zip_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipExtractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/generate-stl-thumbnails":{"post":{"tags":["library"],"summary":"Batch Generate Stl Thumbnails","description":"Generate thumbnails for STL and PDF files in batch.\n\nWith library:update_all this covers every matching file; with only\nlibrary:update_own it is narrowed to the caller's own files, the same\nrule as update_file. The File Manager offers the toolbar button and the\nper-file \"Generate Thumbnail\" entry to update_own users, and both land\nhere.\n\nPDFs are included so the ones added before server-side PDF thumbnails\nexisted can be backfilled without opening each preview. The route keeps\nits name for API compatibility.\n\nCan generate thumbnails for:\n- Specific file IDs (file_ids)\n- All STL/PDF files in a folder (folder_id)\n- All STL/PDF files missing thumbnails (all_missing=True)","operationId":"batch_generate_stl_thumbnails_api_v1_library_generate_stl_thumbnails_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchThumbnailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchThumbnailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/combine":{"post":{"tags":["library"],"summary":"Combine Files","description":"Combine STL library files into one multi-object 3MF.\n\nThe slicer sidecar takes one model per slice, so putting several separate\nSTLs (or several copies of one, #2999) on one plate means building that\nfile first. The result is a new library file that slices like any other\n3MF; with auto-arrange on, the slicer lays the objects out on the bed.\nThe sources are left untouched.","operationId":"combine_files_api_v1_library_files_combine_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CombineFilesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/add-to-queue":{"post":{"tags":["library"],"summary":"Add Files To Queue","description":"Add library files to the print queue.\n\nOnly sliced files (.gcode or .gcode.3mf) can be added to the queue.\nThe archive will be created automatically when the print starts.\n\nA caller may name a printer or a target model for the whole batch; with\nneither, each file is aimed at the model it says it was sliced for. The\ngates are the ones ``POST /queue/`` applies to a single item, because an\nitem that reaches the scheduler through this route has to be as printable\nas one that reaches it through that one (#3112).","operationId":"add_files_to_queue_api_v1_library_files_add_to_queue_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddToQueueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddToQueueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/plates":{"get":{"tags":["library"],"summary":"Get Library File Plates","description":"Get available plates from a multi-plate 3MF library file.\n\nReturns a list of plates with their index, name, thumbnail availability,\nand filament requirements. For single-plate exports, returns a single plate.","operationId":"get_library_file_plates_api_v1_library_files__file_id__plates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/plate-thumbnail/{plate_index}":{"get":{"tags":["library"],"summary":"Get Library File Plate Thumbnail","description":"Get the thumbnail image for a specific plate from a library file.\n\nOwnership-gated on the same terms as the file itself (#3025).","operationId":"get_library_file_plate_thumbnail_api_v1_library_files__file_id__plate_thumbnail__plate_index__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"plate_index","in":"path","required":true,"schema":{"type":"integer","title":"Plate Index"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/filament-requirements":{"get":{"tags":["library"],"summary":"Get Library File Filament Requirements","description":"Get filament requirements from a library file.\n\nParses the 3MF file to extract filament slot IDs, types, colors, and usage.\nThis enables AMS slot assignment when printing from the file manager.\n\nArgs:\n    file_id: The library file ID\n    plate_id: Optional plate index to get filaments for a specific plate\n    full_slots: Return one entry per *project* slot rather than only the\n        slots the plate consumes. See :func:`_expand_to_project_slots`.\n        Only the slice modal wants this; print-time AMS matching must keep\n        the used-only list.","operationId":"get_library_file_filament_requirements_api_v1_library_files__file_id__filament_requirements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"plate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"name":"full_slots","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Full Slots"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/slice":{"post":{"tags":["library"],"summary":"Slice Library File","description":"Enqueue a slice job for a library file. Returns 202 + job_id; the\nslice runs in the background, the caller polls `GET /slice-jobs/{id}`.","operationId":"slice_library_file_api_v1_library_files__file_id__slice_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SliceRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/print":{"post":{"tags":["library"],"summary":"Print Library File","description":"Legacy direct library print endpoint. Use POST /queue/ instead.","operationId":"print_library_file_api_v1_library_files__file_id__print_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"printer_id","in":"query","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}":{"get":{"tags":["library"],"summary":"Get File","description":"Get a file by ID with full details.","operationId":"get_file_api_v1_library_files__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["library"],"summary":"Update File","description":"Update a file's metadata.","operationId":"update_file_api_v1_library_files__file_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library"],"summary":"Delete File","description":"Move a file to the trash (soft-delete).\n\nThe file's bytes and thumbnail stay on disk until the trash sweeper\nhard-deletes the row after the retention window (see #1008). External\nfiles skip the trash entirely — they can't be restored from disk and the\nunderlying file is outside Bambuddy's control, so we just drop the DB\nrecord and thumbnail.","operationId":"delete_file_api_v1_library_files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/download":{"get":{"tags":["library"],"summary":"Download File","description":"Download a file.","operationId":"download_file_api_v1_library_files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/slicer-token":{"post":{"tags":["library"],"summary":"Create Library Slicer Token","description":"Create a short-lived download token for opening files in slicer applications.\n\nSlicer protocol handlers (bambustudioopen://, orcaslicer://) cannot send\nauth headers, so they use this token in the URL path instead.","operationId":"create_library_slicer_token_api_v1_library_files__file_id__slicer_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/dl/{token}/{filename}":{"get":{"tags":["library"],"summary":"Download Library File For Slicer","description":"Download a library file using a slicer download token.\n\nToken-authenticated (no auth headers needed). The token is short-lived and\nfile-bound, created by POST /files/{file_id}/slicer-token, and redeemable\nfor the rest of its TTL rather than exactly once -- the slicer is a separate\nprocess that may fetch the URL more than once (#3029).\nFilename is at the end of the URL so slicers can detect the file format.","operationId":"download_library_file_for_slicer_api_v1_library_files__file_id__dl__token___filename__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/thumbnail":{"get":{"tags":["library"],"summary":"Get Thumbnail","description":"Get a file's thumbnail.\n\nAccepts a media token in ``?token=`` because <img> cannot send headers.\nOwnership is enforced here rather than assumed from the credential: until\n#3025 this route took the anonymous camera-stream token, which carried no\nprincipal, so any holder could read any user's thumbnail by walking IDs.","operationId":"get_thumbnail_api_v1_library_files__file_id__thumbnail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/preview-thumbnail":{"post":{"tags":["library"],"summary":"Upload Preview Thumbnail","description":"Store a client-rendered preview thumbnail for a file (#2976).\n\nSTEP, PDF and spreadsheet previews are rendered in the browser; the FE\nposts its first render here so the grid gets a thumbnail without the\nserver needing OpenCascade. A PDF normally has its PDFium thumbnail from\nupload already, so for PDFs this only fills the gap for a file PDFium\ncould not read. Only file types in ``CLIENT_THUMBNAIL_TYPES`` are\naccepted, and only while the file has no thumbnail yet — a stored\nthumbnail is never replaced by this route.","operationId":"upload_preview_thumbnail_api_v1_library_files__file_id__preview_thumbnail_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_preview_thumbnail_api_v1_library_files__file_id__preview_thumbnail_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientThumbnailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/photos":{"post":{"tags":["library"],"summary":"Upload File Photo","description":"Attach a photo of the printed result to a library file.\n\nPhotos are Bambuddy-side metadata, so external files take them too. Same\nshape as the archive photo upload: extension allowlist, uuid-named on\ndisk, and the ``photos`` list re-assigned so SQLAlchemy sees the change.","operationId":"upload_file_photo_api_v1_library_files__file_id__photos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_photo_api_v1_library_files__file_id__photos_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/photos/{filename}":{"get":{"tags":["library"],"summary":"Get File Photo","description":"Serve one photo. Media-token auth like the thumbnail route (#3025).","operationId":"get_file_photo_api_v1_library_files__file_id__photos__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library"],"summary":"Delete File Photo","description":"Remove a photo from a library file.","operationId":"delete_file_photo_api_v1_library_files__file_id__photos__filename__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/{file_id}/gcode":{"get":{"tags":["library"],"summary":"Get Gcode","description":"Get gcode for a file (for preview).\n\nMirrors the archive route: ``?plate=2`` returns ``Metadata/plate_2.gcode``,\nand omitting it returns the lowest-numbered plate. The viewer has been\nsending ``plate`` since it gained a multi-plate URL, but this route took no\nsuch parameter and FastAPI drops unknown query parameters silently — so\nevery multi-plate library file opened on whichever plate the slicer wrote\nfirst into the zip, which is not plate 1.","operationId":"get_gcode_api_v1_library_files__file_id__gcode_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"plate","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/files/move":{"post":{"tags":["library"],"summary":"Move Files","description":"Move multiple files to a folder.\n\nCross-boundary moves (managed ↔ external, or external ↔ external)\nphysically relocate the bytes — see ``_move_file_bytes``. Same-boundary\nmoves stay DB-only because the file's on-disk location doesn't depend\non which managed folder owns it.\n\nFiles not owned by the user are skipped (unless user has ``*_all``\npermission). Each skip carries a structured reason so the UI can\nsurface \"5 of 10 files were skipped: 3 had filename collisions on\nthe NAS, 2 are no longer on disk\" rather than a blank \"skipped: 5\".","operationId":"move_files_api_v1_library_files_move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/bulk-delete":{"post":{"tags":["library"],"summary":"Bulk Delete","description":"Delete multiple files and/or folders.\n\nFiles not owned by the user are skipped (unless user has *_all permission).","operationId":"bulk_delete_api_v1_library_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/stats":{"get":{"tags":["library"],"summary":"Get Library Stats","description":"Get library statistics.","operationId":"get_library_stats_api_v1_library_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/tags/":{"get":{"tags":["library-tags"],"summary":"List Tags","description":"List every tag in the catalog with the count of files using it.\n\nCatalog rows are global, so a ``read_own`` caller still sees every tag\nname — that's just the chip set the rest of the UI offers. But the\n``file_count`` projection is filtered to their own files so the number\nmatches what they'd see when they filter the listing by that tag.","operationId":"list_tags_api_v1_library_tags__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagResponse"},"title":"Response List Tags Api V1 Library Tags  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library-tags"],"summary":"Create Tag","description":"Create a tag. Case-insensitive dup → 409.","operationId":"create_tag_api_v1_library_tags__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/tags":{"get":{"tags":["library-tags"],"summary":"List Tags","description":"List every tag in the catalog with the count of files using it.\n\nCatalog rows are global, so a ``read_own`` caller still sees every tag\nname — that's just the chip set the rest of the UI offers. But the\n``file_count`` projection is filtered to their own files so the number\nmatches what they'd see when they filter the listing by that tag.","operationId":"list_tags_api_v1_library_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagResponse"},"title":"Response List Tags Api V1 Library Tags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library-tags"],"summary":"Create Tag","description":"Create a tag. Case-insensitive dup → 409.","operationId":"create_tag_api_v1_library_tags_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/tags/{tag_id}":{"patch":{"tags":["library-tags"],"summary":"Update Tag","description":"Rename a tag. Case-insensitive dup → 409 (own-name no-op is allowed).","operationId":"update_tag_api_v1_library_tags__tag_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library-tags"],"summary":"Delete Tag","description":"Delete a tag. Association rows ON DELETE CASCADE — files are untouched.","operationId":"delete_tag_api_v1_library_tags__tag_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/tags/bulk-assign":{"post":{"tags":["library-tags"],"summary":"Bulk Assign","description":"Add / remove / replace tag assignments across multiple files.\n\nImplemented as set-style operations against the association table —\ncheaper than re-doing the M2M list per file and idempotent on retries.\nA caller without ``*_UPDATE_ALL`` can only modify files they created\n(per the existing ownership pair); silently-skipped files are\nexcluded from the response counts so the UI can detect partial\napplication.","operationId":"bulk_assign_api_v1_library_tags_bulk_assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBulkAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBulkAssignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/purge/preview":{"get":{"tags":["library-trash"],"summary":"Preview Purge","description":"Preview how many files would move to trash for the given age threshold.\n\nRead-only — safe to call repeatedly as the admin adjusts the slider.","operationId":"preview_purge_api_v1_library_purge_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"older_than_days","in":"query","required":true,"schema":{"type":"integer","maximum":3650,"minimum":1,"title":"Older Than Days"}},{"name":"include_never_printed","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Never Printed"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/purge":{"post":{"tags":["library-trash"],"summary":"Execute Purge","description":"Move matching files to trash. Idempotent — already-trashed rows skip.","operationId":"execute_purge_api_v1_library_purge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/trash":{"get":{"tags":["library-trash"],"summary":"List Trash","description":"List trashed files.\n\nAdmins (``LIBRARY_DELETE_ALL``) see every user's trash; regular users\n(``LIBRARY_DELETE_OWN``) see only rows they created.","operationId":"list_trash_api_v1_library_trash_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library-trash"],"summary":"Empty Trash","description":"Permanently delete all trashed files in the caller's scope.\n\nRegular users empty only their own trash; admins empty everyone's.","operationId":"empty_trash_api_v1_library_trash_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyTrashResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/trash/{file_id}/restore":{"post":{"tags":["library-trash"],"summary":"Restore From Trash","operationId":"restore_from_trash_api_v1_library_trash__file_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/trash/{file_id}":{"delete":{"tags":["library-trash"],"summary":"Hard Delete From Trash","description":"Permanently delete a single trashed file + its bytes. Irreversible.","operationId":"hard_delete_from_trash_api_v1_library_trash__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/trash/settings":{"get":{"tags":["library-trash"],"summary":"Get Trash Settings","operationId":"get_trash_settings_api_v1_library_trash_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["library-trash"],"summary":"Update Trash Settings","operationId":"update_trash_settings_api_v1_library_trash_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrashSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups/":{"post":{"tags":["library-variants"],"summary":"Create Variant Group","description":"Group files as variants of one job, in priority order.","operationId":"create_variant_group_api_v1_library_variant_groups__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups":{"post":{"tags":["library-variants"],"summary":"Create Variant Group","description":"Group files as variants of one job, in priority order.","operationId":"create_variant_group_api_v1_library_variant_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups/by-file/{file_id}":{"get":{"tags":["library-variants"],"summary":"Get Group For File","description":"The group a file belongs to.\n\nBoth consumers start from a file rather than a group id: the print modal\nknows which file the user clicked, and the queue-create flow knows which\nfile was selected.","operationId":"get_group_for_file_api_v1_library_variant_groups_by_file__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups/{group_id}":{"get":{"tags":["library-variants"],"summary":"Get Variant Group","operationId":"get_variant_group_api_v1_library_variant_groups__group_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["library-variants"],"summary":"Update Variant Group","description":"Rename the group, re-order its members, or both.\n\nRe-ordering is how the user says which printer they would rather have when\nboth are free, so it must be an explicit full ordering — a partial list\nwould leave the rest in an order nobody chose.","operationId":"update_variant_group_api_v1_library_variant_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library-variants"],"summary":"Delete Variant Group","description":"Ungroup the files. The files themselves are kept — every one of them is\nindependently printable, which is the whole reason they were grouped.","operationId":"delete_variant_group_api_v1_library_variant_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups/{group_id}/members":{"post":{"tags":["library-variants"],"summary":"Add Variant Group Member","description":"Attach another slice to an existing group.\n\nThis is the common real case: the H2S version was queued last week, the H2C\nversion was sliced today.","operationId":"add_variant_group_member_api_v1_library_variant_groups__group_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/variant-groups/{group_id}/members/{file_id}":{"delete":{"tags":["library-variants"],"summary":"Remove Variant Group Member","description":"Drop one file out of a group; the file itself is untouched.","operationId":"remove_variant_group_member_api_v1_library_variant_groups__group_id__members__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slice-jobs/{job_id}":{"get":{"tags":["slice-jobs"],"summary":"Get Slice Job","operationId":"get_slice_job_api_v1_slice_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer-pipelines/":{"get":{"tags":["Slicer Pipelines"],"summary":"List Pipelines","description":"List all pipelines, newest first. Soft-deleted rows are hidden.","operationId":"list_pipelines_api_v1_slicer_pipelines__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Slicer Pipelines"],"summary":"Create Pipeline","description":"Create a new pipeline.","operationId":"create_pipeline_api_v1_slicer_pipelines__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer-pipelines/{pipeline_id}":{"get":{"tags":["Slicer Pipelines"],"summary":"Get Pipeline","description":"Read one pipeline by id.","operationId":"get_pipeline_api_v1_slicer_pipelines__pipeline_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Slicer Pipelines"],"summary":"Update Pipeline","description":"Update a pipeline. Only fields present in the payload are written.","operationId":"update_pipeline_api_v1_slicer_pipelines__pipeline_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlicerPipelineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Slicer Pipelines"],"summary":"Delete Pipeline","description":"Soft-delete a pipeline (sets is_deleted=True so PR B+ run history can\nstill resolve pipeline metadata).","operationId":"delete_pipeline_api_v1_slicer_pipelines__pipeline_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer-pipelines/{pipeline_id}/check-eligibility":{"post":{"tags":["Slicer Pipelines"],"summary":"Check Eligibility","operationId":"check_eligibility_api_v1_slicer_pipelines__pipeline_id__check_eligibility_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckEligibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer-pipelines/{pipeline_id}/run":{"post":{"tags":["Slicer Pipelines"],"summary":"Run Pipeline","operationId":"run_pipeline_api_v1_slicer_pipelines__pipeline_id__run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunCreateRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer-pipelines/{pipeline_id}/runs":{"get":{"tags":["Slicer Pipelines"],"summary":"List Runs For Pipeline","operationId":"list_runs_for_pipeline_api_v1_slicer_pipelines__pipeline_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pipeline-runs":{"get":{"tags":["Slicer Pipelines"],"summary":"List All Runs","description":"Dashboard list. Newest first; filters on pipeline_id + status +\ntarget_printer_id + target_model_class. The ``status`` filter matches\nthe persisted snapshot, not the live roll-up — in-progress runs may\nappear under ``dispatching`` until the next state transition writes\nthrough. ``target_*`` filters JOIN to the pipeline so runs whose\npipeline currently points at the printer / class are returned.","operationId":"list_all_runs_api_v1_pipeline_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"pipeline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pipeline Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"target_printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"}},{"name":"target_model_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model Class"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pipeline-runs/clear":{"post":{"tags":["Slicer Pipelines"],"summary":"Clear Terminal Runs","description":"Delete every terminal pipeline run the caller could cancel (completed / failed / cancelled /\npartial_failure). In-flight runs (queued / slicing / dispatching /\nin_progress) are preserved — clearing those mid-flight would lose the\noperator's intent. Cascades to PipelineJob via the ondelete='CASCADE'\nrelationship; the linked PrintQueueItem rows stay (they have their own\nlifecycle on the queue page).","operationId":"clear_terminal_runs_api_v1_pipeline_runs_clear_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pipeline-runs/{run_id}":{"get":{"tags":["Slicer Pipelines"],"summary":"Get Run","operationId":"get_run_api_v1_pipeline_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pipeline-runs/{run_id}/cancel":{"post":{"tags":["Slicer Pipelines"],"summary":"Cancel Run","description":"Cancel a queued / in-flight run. Cascades to all non-terminal queue\nentries; in-flight prints continue on the printer (operator must Stop).\n\nThe run's queue entries are its starter's: cancelling it takes the right to\nchange their queue jobs, as cancelling one of them on the queue does.","operationId":"cancel_run_api_v1_pipeline_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pipeline-runs/{run_id}/retry-failed":{"post":{"tags":["Slicer Pipelines"],"summary":"Retry Failed","description":"Create a new run with copies = (failed + cancelled count) from the\nparent. Same pipeline, same source. Eligibility re-checked at run time\n(it might pass this time — operator may have fixed the issue).","operationId":"retry_failed_api_v1_pipeline_runs__run_id__retry_failed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer/printer-models":{"get":{"tags":["Slicer Presets"],"summary":"List Printer Models","description":"Canonical Bambu printer-model registry, surfaced for the SliceModal.\n\nReturns the backend's ``PRINTER_MODEL_MAP`` unmodified: keys are the long\n\"Bambu Lab <model>\" form that appears in 3MF metadata and in slicer\nprinter-preset names, values are the normalized short codes used in\nBambuStudio's `@BBL <code>` cloud-preset filenames. The frontend uses this\nmapping to classify cloud / standard presets against the selected printer,\nwhich carry no ``compatible_printers`` of their own (#1325 follow-up) -\navoiding a second, manually-maintained model table on the\nfrontend. No auth gate: this is a static reference dictionary, not\nuser data.","operationId":"list_printer_models_api_v1_slicer_printer_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response List Printer Models Api V1 Slicer Printer Models Get"}}}}}}},"/api/v1/slicer/preset-values":{"get":{"tags":["Slicer Presets"],"summary":"Get Preset Values","description":"Effective values of a preset, with its ``inherits:`` chain flattened.\n\nDrives the slice modal's process-settings panel: without this the panel can\nonly show the option schema's compiled-in defaults, so a preset that sets a\n0.42mm line width appears as the C++ default of 0.\n\nThe flattening is done by the *sidecar*, deliberately. A \"Standard\" pick is\nonly a ``{inherits: \"<name>\"}`` stub on our side, and even local/cloud\npresets are deltas — the values live in the profile tree bundled inside the\nrunning sidecar image. Bambuddy's own ``orca_profiles`` resolver walks\nOrcaSlicer's published tree instead, which can disagree with what actually\nslices; showing numbers from it would be confidently wrong.\n\nReturns ``{\"resolved\": false, \"values\": {}, \"reason\": \"...\"}`` rather than\nan error whenever the values can't be obtained. ``reason`` is what makes\nthe fallback actionable: a Bambuddy install pulls its sidecar as\n``SIDECAR_TAG:-latest`` regardless of its own release channel, so the\noverwhelmingly common cause is a sidecar older than the endpoint — which\nthe user fixes by pulling a newer image, if we tell them that instead of\n\"could not read the values\".","operationId":"get_preset_values_api_v1_slicer_preset_values_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","description":"Preset tier: 'local', 'cloud', 'orca_cloud' or 'standard'.","title":"Source"},"description":"Preset tier: 'local', 'cloud', 'orca_cloud' or 'standard'."},{"name":"id","in":"query","required":true,"schema":{"type":"string","description":"Preset id within that tier.","title":"Id"},"description":"Preset id within that tier."},{"name":"slot","in":"query","required":false,"schema":{"type":"string","description":"Preset slot. Only 'process' is supported today.","default":"process","title":"Slot"},"description":"Preset slot. Only 'process' is supported today."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Preset Values Api V1 Slicer Preset Values Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer/presets":{"get":{"tags":["Slicer Presets"],"summary":"List Unified Presets","description":"List slicer presets across cloud / local / standard tiers, deduped by name.\n\nDrives the SliceModal preset dropdowns. Permission gate matches the\nslice action itself (``LIBRARY_UPLOAD``) so any user who can slice can\nsee the preset options for the dialog. The cloud branch is independently\ngated on ``CLOUD_AUTH`` inside ``_fetch_cloud_presets`` so a user with\nonly ``LIBRARY_UPLOAD`` doesn't see cloud presets they shouldn't have\naccess to.\n\nAPI-keyed callers (which return None from ``current_user``) get the\nowner User via ``resolve_api_key_cloud_owner`` when the key has the\ncloud-access scope, so the cloud tier surfaces correctly for them\ntoo — matching the slice route (#1182 follow-up).","operationId":"list_unified_presets_api_v1_slicer_presets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the in-process cloud and bundled-preset caches for this request. The SliceModal's Refresh button sets this so users who deleted a preset in Bambu Studio or Bambu Handy don't have to wait for the 5-minute cloud-cache TTL to expire.","default":false,"title":"Refresh"},"description":"Bypass the in-process cloud and bundled-preset caches for this request. The SliceModal's Refresh button sets this so users who deleted a preset in Bambu Studio or Bambu Handy don't have to wait for the 5-minute cloud-cache TTL to expire."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedPresetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer/loaded-spools":{"get":{"tags":["Slicer Presets"],"summary":"List Loaded Spools","description":"What is loaded in each connected printer, for the SliceModal's filters (#3172).\n\nOne call rather than a status request per printer: the dialog needs every\nconnected printer at once, and a farm has a hundred of them. Gated on the\nslice permission plus printers:read, because it shows what the printer\nstatus does, and limited to the caller's printers (#1727).\n\nOnly printers with a live connection are listed: an offline printer can't\nsay what it has loaded, and its last-known trays may be long gone.","operationId":"list_loaded_spools_api_v1_slicer_loaded_spools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadedSpoolsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slicer/preview-progress/{request_id}":{"get":{"tags":["Slicer Presets"],"summary":"Get Preview Slice Progress","description":"Proxy to the sidecar's ``GET /slice/progress/:requestId``.\n\nThe SliceModal's filament-requirements call kicks off a real preview\nslice on the sidecar to discover which AMS slots the picked plate\nactually consumes. That HTTP call holds open for the full slice\nduration (multi-second to multi-minute on complex models), and the\nbrowser can't reach the sidecar directly thanks to the same-origin\npolicy + the sidecar's CORS allowlist. This endpoint forwards the\npoll so the modal's inline spinner can show \"Generating G-code (45%)\"\ninstead of an opaque elapsed-time counter while the preview runs.\n\nReturns the sidecar's snapshot verbatim, or 404 when the request_id\nis unknown / completed and grace-window-expired.","operationId":"get_preview_slice_progress_api_v1_slicer_preview_progress__request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/purge/preview":{"get":{"tags":["archives-purge"],"summary":"Preview Archive Purge","description":"Count + size of archives eligible for purge. Read-only.","operationId":"preview_archive_purge_api_v1_archives_purge_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"older_than_days","in":"query","required":true,"schema":{"type":"integer","maximum":3650,"minimum":1,"title":"Older Than Days"}},{"name":"purge_stats","in":"query","required":false,"schema":{"type":"boolean","description":"When False (default) the count reflects soft-delete mode — already-soft-deleted rows are excluded so the number matches what a fresh purge would actually touch. When True the count includes already-soft-deleted rows (eligible for promotion to hard-delete). #1390.","default":false,"title":"Purge Stats"},"description":"When False (default) the count reflects soft-delete mode — already-soft-deleted rows are excluded so the number matches what a fresh purge would actually touch. When True the count includes already-soft-deleted rows (eligible for promotion to hard-delete). #1390."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/purge":{"post":{"tags":["archives-purge"],"summary":"Execute Archive Purge","description":"Bulk-delete archives older than the threshold.\n\nSoft-delete by default (Quick Stats preserved). Set ``purge_stats=true``\nin the body to also drop the contribution from /stats — irreversible\nin that mode, same as the single-archive route's ``?purge_stats=true``.","operationId":"execute_archive_purge_api_v1_archives_purge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/archives/purge/settings":{"get":{"tags":["archives-purge"],"summary":"Get Archive Purge Settings","operationId":"get_archive_purge_settings_api_v1_archives_purge_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgeSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["archives-purge"],"summary":"Update Archive Purge Settings","operationId":"update_archive_purge_settings_api_v1_archives_purge_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgeSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePurgeSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/makerworld/thumbnail":{"get":{"tags":["makerworld"],"summary":"Proxy Thumbnail","description":"Proxy a MakerWorld CDN thumbnail.\n\nThe SPA's ``img-src`` CSP only allows ``'self' data: blob:`` — hotlinking\nfrom makerworld.bblmw.com is blocked. This endpoint refetches the image\nserver-side and returns it with a long cache window.\n\n**Unauthenticated on purpose**: ``<img>`` tags can't send Authorization\nheaders, so requiring a Bearer token here would break the whole feature\n(browsers would get 401 on every image, rendering as broken-image\nplaceholders). The thumbnails being proxied are MakerWorld's *public*\nCDN — any visitor to makerworld.com can fetch them without auth — so no\ndata is exposed. The SSRF guard inside ``fetch_thumbnail`` restricts\nthe upstream host to the MakerWorld CDN allowlist, so this can't be\nabused as a generic open proxy.\n\nURLs are content-addressable (filename contains a hash), so the\naggressive ``immutable`` cache-control is safe.","operationId":"proxy_thumbnail_api_v1_makerworld_thumbnail_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"MakerWorld CDN image URL (makerworld.bblmw.com or public-cdn.bblmw.com)","title":"Url"},"description":"MakerWorld CDN image URL (makerworld.bblmw.com or public-cdn.bblmw.com)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/makerworld/status":{"get":{"tags":["makerworld"],"summary":"Get Status","description":"Report whether the caller can import 3MFs (needs a Bambu Cloud token).\n\nAPI-keyed callers (which return None from ``current_user``) get the\nowner User via ``resolve_api_key_cloud_owner`` when the key carries the\ncloud-access scope, so ``has_cloud_token`` reflects the owning user's\nstored token rather than always reporting ``False`` (#1777, same shape\nas the cloud-presets fix in #1182).","operationId":"get_status_api_v1_makerworld_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakerWorldStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/makerworld/resolve":{"post":{"tags":["makerworld"],"summary":"Resolve Url","description":"Resolve a MakerWorld URL to full model metadata + plate list.\n\nThe response also tells the caller which (if any) LibraryFile rows already\nexist for the same model URL, so the UI can show an \"Already imported\"\nbadge and skip a redundant download.","operationId":"resolve_url_api_v1_makerworld_resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakerWorldResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakerWorldResolvedModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/makerworld/import":{"post":{"tags":["makerworld"],"summary":"Import Instance","description":"Download a specific MakerWorld instance (plate configuration) and save\nthe 3MF into the library.\n\nDe-duplicates by canonicalised source URL — if the same MakerWorld model\nwas imported before (any plate), that existing LibraryFile is returned and\nno new download happens.","operationId":"import_instance_api_v1_makerworld_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakerWorldImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakerWorldImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/makerworld/recent-imports":{"get":{"tags":["makerworld"],"summary":"Recent Imports","description":"Last N MakerWorld imports the caller may open, newest first.\n\nSurfaces files whose ``source_type`` is ``\"makerworld\"`` so the MakerWorld\npage can show a 'Recent imports' sidebar that persists across resolves.\nWidening this to all registered providers is a behaviour change that\nbelongs with the provider that needs it.\n``limit`` is clamped to ``[1, 50]`` to keep payloads sensible.","operationId":"recent_imports_api_v1_makerworld_recent_imports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MakerWorldRecentImport"},"title":"Response Recent Imports Api V1 Makerworld Recent Imports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/config":{"get":{"tags":["manyfold"],"summary":"Get Config","description":"The stored connection, without the secret.","operationId":"get_config_api_v1_manyfold_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["manyfold"],"summary":"Update Config","description":"Store the connection. An empty secret keeps the stored one.","operationId":"update_config_api_v1_manyfold_config_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["manyfold"],"summary":"Delete Config","description":"Disconnect Manyfold. Files imported earlier stay in the library.","operationId":"delete_config_api_v1_manyfold_config_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/config/test":{"post":{"tags":["manyfold"],"summary":"Test Config","description":"Sign in with the entered values and count the models Bambuddy can see.\n\nNothing is stored. An empty secret tests the stored one, so an admin can\nre-test without typing it again.","operationId":"test_config_api_v1_manyfold_config_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/status":{"get":{"tags":["manyfold"],"summary":"Get Status","description":"Whether Manyfold is set up, and where it is.","operationId":"get_status_api_v1_manyfold_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/models":{"get":{"tags":["manyfold"],"summary":"List Models","description":"One page of Manyfold's models, optionally searched.\n\n``q`` takes Manyfold's own search syntax; the page size is the\napplication owner's Manyfold setting.","operationId":"list_models_api_v1_manyfold_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldModelList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/models/{model_id}":{"get":{"tags":["manyfold"],"summary":"Get Model","description":"A model's details and files, with the library file of each earlier import\nthe caller may open.","operationId":"get_model_api_v1_manyfold_models__model_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/models/{model_id}/preview":{"get":{"tags":["manyfold"],"summary":"Get Preview","description":"The model's preview image, fetched from Manyfold.\n\nThe browser can't send Manyfold's token, and the page's CSP only allows\nimages from Bambuddy itself, so the image comes through here. The page\nfetches it rather than pointing an ``<img>`` at it: a model without a\npreview answers 404, and a failing ``<img>`` on a protected URL makes the\napp renew its media token.","operationId":"get_preview_api_v1_manyfold_models__model_id__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manyfold/import":{"post":{"tags":["manyfold"],"summary":"Import File","description":"Download one Manyfold file into the library.\n\nA file imported before, and still in the library, is returned as it is\nrather than downloaded again.","operationId":"import_file_api_v1_manyfold_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManyfoldImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api-keys/":{"get":{"tags":["api-keys"],"summary":"List Api Keys","description":"List all API keys (without full key values).","operationId":"list_api_keys_api_v1_api_keys__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/APIKeyResponse"},"title":"Response List Api Keys Api V1 Api Keys  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Api Key","description":"Create a new API key.\n\nIMPORTANT: The full API key is only returned in this response.\nStore it securely - it cannot be retrieved again.","operationId":"create_api_key_api_v1_api_keys__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api-keys/{key_id}":{"get":{"tags":["api-keys"],"summary":"Get Api Key","description":"Get an API key by ID.","operationId":"get_api_key_api_v1_api_keys__key_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["api-keys"],"summary":"Update Api Key","description":"Update an API key.","operationId":"update_api_key_api_v1_api_keys__key_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["api-keys"],"summary":"Delete Api Key","description":"Delete (revoke) an API key.","operationId":"delete_api_key_api_v1_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connect/apps":{"get":{"tags":["connected-apps"],"summary":"List Connected Apps","operationId":"list_connected_apps_api_v1_connect_apps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectedAppResponse"},"title":"Response List Connected Apps Api V1 Connect Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["connected-apps"],"summary":"Create Connected App","description":"Register an app. The client secret is in this response and nowhere else.","operationId":"create_connected_app_api_v1_connect_apps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAppCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAppSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connect/apps/{app_id}":{"patch":{"tags":["connected-apps"],"summary":"Update Connected App","operationId":"update_connected_app_api_v1_connect_apps__app_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAppUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAppResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["connected-apps"],"summary":"Delete Connected App","operationId":"delete_connected_app_api_v1_connect_apps__app_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connect/apps/{app_id}/rotate-secret":{"post":{"tags":["connected-apps"],"summary":"Rotate Connected App Secret","description":"Replace the client secret. The old one stops working immediately.","operationId":"rotate_connected_app_secret_api_v1_connect_apps__app_id__rotate_secret_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAppSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connect/authorize/info":{"get":{"tags":["connected-apps"],"summary":"Authorize Info","description":"What the consent screen shows. Validates the request before the page acts on it.","operationId":"authorize_info_api_v1_connect_authorize_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Client Id"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","maxLength":500,"title":"Redirect Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAuthorizeInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connect/authorize":{"post":{"tags":["connected-apps"],"summary":"Authorize","description":"Issue a code for the signed-in user and record their consent.","operationId":"authorize_api_v1_connect_authorize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAuthorizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAuthorizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/connect/token":{"post":{"tags":["connected-apps"],"summary":"Exchange Code","description":"Swap a code for the user's identity and permissions.\n\nEvery failure after the rate-limit check counts against both the client and\nthe caller's IP. The response says only ``invalid_client`` (who is asking\nis wrong) or ``invalid_grant`` (the code is), never which check failed.","operationId":"exchange_code_api_v1_connect_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/queue/add":{"post":{"tags":["webhook"],"summary":"Webhook Add To Queue","description":"Add a print to the queue via webhook.\n\nRequires 'can_queue' permission.","operationId":"webhook_add_to_queue_api_v1_webhook_queue_add_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueAddRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueAddResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/printer/{printer_id}/start":{"post":{"tags":["webhook"],"summary":"Webhook Start Print","description":"Trigger the next manual-start queue item on a printer.\n\nMirrors `POST /print-queue/{item_id}/start`: clears `manual_start` on\nthe next pending item so the scheduler picks it up — which handles\nFTP upload, AMS mapping, and all print options (timelapse,\nbed_levelling, etc.) correctly via the queue's stored fields. The\nprevious implementation called `printer_manager.start_print()`\ndirectly with `archive_id` as the filename arg and no print options,\nbypassing the upload step entirely and discarding the user's\nworkflow choices — it 500'd before ever reaching the printer.\n\nRequires 'can_control_printer' permission.","operationId":"webhook_start_print_api_v1_webhook_printer__printer_id__start_post","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/printer/{printer_id}/stop":{"post":{"tags":["webhook"],"summary":"Webhook Stop Print","description":"Stop the current print on a printer.\n\nRequires 'can_control_printer' permission.","operationId":"webhook_stop_print_api_v1_webhook_printer__printer_id__stop_post","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/printer/{printer_id}/cancel":{"post":{"tags":["webhook"],"summary":"Webhook Cancel Print","description":"Cancel the current print on a printer.\n\nRequires 'can_control_printer' permission.","operationId":"webhook_cancel_print_api_v1_webhook_printer__printer_id__cancel_post","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/printer/{printer_id}/status":{"get":{"tags":["webhook"],"summary":"Webhook Get Printer Status","description":"Get status of a printer.\n\nRequires 'can_read_status' permission.","operationId":"webhook_get_printer_status_api_v1_webhook_printer__printer_id__status_get","parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhook/queue":{"get":{"tags":["webhook"],"summary":"Webhook Get Queue Status","description":"Get queue status for all printers or a specific printer.\n\nRequires 'can_read_status' permission. The counts cover every job; the\nitems listed are those the key's owner sees in the queue.","operationId":"webhook_get_queue_status_api_v1_webhook_queue_get","parameters":[{"name":"printer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QueueStatusResponse"},"title":"Response Webhook Get Queue Status Api V1 Webhook Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ams-history/{printer_id}/{ams_id}":{"get":{"tags":["ams-history"],"summary":"Get Ams History","description":"Get AMS sensor history for a specific printer and AMS unit.","operationId":"get_ams_history_api_v1_ams_history__printer_id___ams_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"ams_id","in":"path","required":true,"schema":{"type":"integer","title":"Ams Id"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Hours of history (1-168)","default":24,"title":"Hours"},"description":"Hours of history (1-168)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AMSHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/printer-sensor-history/{printer_id}":{"get":{"tags":["printer-sensor-history"],"summary":"Get Printer Sensor History","description":"Return per-sensor heater history for a printer.","operationId":"get_printer_sensor_history_api_v1_printer_sensor_history__printer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Hours of history (1-168)","default":24,"title":"Hours"},"description":"Hours of history (1-168)"},{"name":"kinds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of sensor kinds (nozzle, nozzle_2, bed, chamber). All by default.","title":"Kinds"},"description":"Comma-separated list of sensor kinds (nozzle, nozzle_2, bed, chamber). All by default."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterSensorHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/info":{"get":{"tags":["system"],"summary":"Get System Info","description":"Get comprehensive system information.","operationId":"get_system_info_api_v1_system_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/storage-usage":{"get":{"tags":["system"],"summary":"Get Storage Usage","description":"Get storage usage breakdown for Bambuddy data directories.","operationId":"get_storage_usage_api_v1_system_storage_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"max_age_seconds","in":"query","required":false,"schema":{"type":"integer","default":300,"title":"Max Age Seconds"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/health":{"get":{"tags":["system"],"summary":"Get System Health","description":"Scan the recent application log against the known-issue catalog.\n\nPowers the self-service triage surfaces (System page + bug reporter).\nSample lines are sanitized before they leave the process.","operationId":"get_system_health_api_v1_system_health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/db-pool":{"get":{"tags":["system"],"summary":"Get Db Pool","description":"Live database connection-pool gauges for large-farm diagnostics (#2572).\n\nReports the resolved pool configuration plus current checked-out /\nchecked-in / overflow counts. Deliberately takes no DB session — reading\nthe pool's own counters must not itself consume a connection, so this stays\ntruthful even when the pool is saturated. On a healthy install ``checked_out``\nsits well below ``config.pool_size + config.max_overflow``; sustained\nsaturation points at connections held across slow I/O (see #2572).","operationId":"get_db_pool_api_v1_system_db_pool_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/appliance":{"get":{"tags":["system"],"summary":"Get Appliance Defaults","description":"Expose appliance-set state for the SPA's bootstrap surface.\n\nTwo file sources, both optional and silently degraded when absent:\n\n- ``/etc/bambuddy/local.toml`` — hostname / timezone / locale the\n  firstboot wizard collected.\n- ``/run/bambuddy/time-synced`` — chrony NTP gate state. The RPi 5 has\n  no battery-backed RTC, so on a fresh boot the clock is wrong until\n  ntp-gate.sh writes \"ok\" (or \"warning\" if 3-minute timeout elapsed).\n  A warning state means JWT expiries and TLS validity windows may be\n  misaligned; the UI should surface this.\n\nNo auth required — the frontend bootstrap reads this BEFORE auth might\nbe set up, and the contents are user-set defaults plus a public sync\nflag (no secrets).","operationId":"get_appliance_defaults_api_v1_system_appliance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/support/debug-logging":{"get":{"tags":["support"],"summary":"Get Debug Logging State","description":"Get current debug logging state.","operationId":"get_debug_logging_state_api_v1_support_debug_logging_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebugLoggingState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["support"],"summary":"Toggle Debug Logging","description":"Enable or disable debug logging.","operationId":"toggle_debug_logging_api_v1_support_debug_logging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebugLoggingToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebugLoggingState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/logs":{"get":{"tags":["support"],"summary":"Get Logs","description":"Get recent application log entries with optional filtering.","operationId":"get_logs_api_v1_support_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of entries to return","default":200,"title":"Limit"},"description":"Maximum number of entries to return"},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by log level (DEBUG, INFO, WARNING, ERROR)","title":"Level"},"description":"Filter by log level (DEBUG, INFO, WARNING, ERROR)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search in message or logger name","title":"Search"},"description":"Search in message or logger name"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["support"],"summary":"Clear Logs","description":"Clear the application log file.","operationId":"clear_logs_api_v1_support_logs_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/bundle":{"get":{"tags":["support"],"summary":"Generate Support Bundle","description":"Generate a support bundle ZIP file for issue reporting.","operationId":"generate_support_bundle_api_v1_support_bundle_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/info":{"get":{"tags":["discovery"],"summary":"Get Discovery Info","description":"Get discovery environment info (Docker detection, etc.).","operationId":"get_discovery_info_api_v1_discovery_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/status":{"get":{"tags":["discovery"],"summary":"Get Discovery Status","description":"Get the current SSDP discovery status.","operationId":"get_discovery_status_api_v1_discovery_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/start":{"post":{"tags":["discovery"],"summary":"Start Discovery","description":"Start SSDP printer discovery.\n\nArgs:\n    duration: Discovery duration in seconds (default 10)","operationId":"start_discovery_api_v1_discovery_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"duration","in":"query","required":false,"schema":{"type":"number","default":10.0,"title":"Duration"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/stop":{"post":{"tags":["discovery"],"summary":"Stop Discovery","description":"Stop SSDP printer discovery.","operationId":"stop_discovery_api_v1_discovery_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/printers":{"get":{"tags":["discovery"],"summary":"Get Discovered Printers","description":"Get list of discovered printers (from both SSDP and subnet scan).","operationId":"get_discovered_printers_api_v1_discovery_printers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DiscoveredPrinterResponse"},"title":"Response Get Discovered Printers Api V1 Discovery Printers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/scan":{"post":{"tags":["discovery"],"summary":"Start Subnet Scan","description":"Start a subnet scan for Bambu printers.\n\nUse this when running in Docker where SSDP multicast doesn't work.\n\nArgs:\n    request: Subnet to scan in CIDR notation (e.g., \"192.168.1.0/24\")","operationId":"start_subnet_scan_api_v1_discovery_scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubnetScanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubnetScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/scan/status":{"get":{"tags":["discovery"],"summary":"Get Scan Status","description":"Get the current subnet scan status.","operationId":"get_scan_status_api_v1_discovery_scan_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubnetScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/discovery/scan/stop":{"post":{"tags":["discovery"],"summary":"Stop Subnet Scan","description":"Stop the current subnet scan.","operationId":"stop_subnet_scan_api_v1_discovery_scan_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubnetScanStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/":{"get":{"tags":["pending-uploads"],"summary":"List Pending Uploads","description":"List all pending uploads.","operationId":"list_pending_uploads_api_v1_pending_uploads__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PendingUploadResponse"},"title":"Response List Pending Uploads Api V1 Pending Uploads  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/count":{"get":{"tags":["pending-uploads"],"summary":"Get Pending Count","description":"Get count of pending uploads.","operationId":"get_pending_count_api_v1_pending_uploads_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/archive-all":{"post":{"tags":["pending-uploads"],"summary":"Archive All Pending","description":"Approve every pending upload: each goes to the File Manager.\n\nNeeds library:upload as well as queue:create: approving adds files.","operationId":"archive_all_pending_api_v1_pending_uploads_archive_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/discard-all":{"delete":{"tags":["pending-uploads"],"summary":"Discard All Pending","description":"Discard all pending uploads.","operationId":"discard_all_pending_api_v1_pending_uploads_discard_all_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/{upload_id}":{"get":{"tags":["pending-uploads"],"summary":"Get Pending Upload","description":"Get a specific pending upload.","operationId":"get_pending_upload_api_v1_pending_uploads__upload_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"integer","title":"Upload Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pending-uploads"],"summary":"Discard Pending Upload","description":"Discard a pending upload without archiving.","operationId":"discard_pending_upload_api_v1_pending_uploads__upload_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"integer","title":"Upload Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pending-uploads/{upload_id}/archive":{"post":{"tags":["pending-uploads"],"summary":"Archive Pending Upload","description":"Approve a pending upload: it goes to the File Manager.\n\nNeeds library:upload as well as queue:create: approving adds a file.","operationId":"archive_pending_upload_api_v1_pending_uploads__upload_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"integer","title":"Upload Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/updates":{"get":{"tags":["firmware"],"summary":"Check Firmware Updates","description":"Check for firmware updates for the connected printers the caller may see.\n\nCompares each printer's current firmware version against the latest\navailable version from Bambu Lab's official firmware download page.\n\nNote: This does not require cloud authentication - it uses public\nfirmware information from bambulab.com.","operationId":"check_firmware_updates_api_v1_firmware_updates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__app__api__routes__firmware__FirmwareUpdatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/updates/{printer_id}":{"get":{"tags":["firmware"],"summary":"Check Printer Firmware","description":"Check for firmware update for a specific printer.","operationId":"check_printer_firmware_api_v1_firmware_updates__printer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__app__api__routes__firmware__FirmwareUpdateInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/latest":{"get":{"tags":["firmware"],"summary":"Get All Latest Firmware","description":"Get the latest firmware versions for all Bambu Lab printer models.\n\nThis endpoint fetches the latest available firmware versions from\nBambu Lab's official firmware download page.","operationId":"get_all_latest_firmware_api_v1_firmware_latest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LatestFirmwareInfo"},"title":"Response Get All Latest Firmware Api V1 Firmware Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/updates/{printer_id}/prepare":{"get":{"tags":["firmware"],"summary":"Prepare Firmware Upload","description":"Check prerequisites for uploading firmware to a printer.\n\nThis performs pre-flight checks including:\n- SD card presence\n- Available storage space\n- Update availability\n\nCall this before starting a firmware upload to ensure the operation\ncan succeed.","operationId":"prepare_firmware_upload_api_v1_firmware_updates__printer_id__prepare_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirmwareUploadPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/updates/{printer_id}/upload":{"post":{"tags":["firmware"],"summary":"Start Firmware Upload","description":"Start uploading firmware to a printer's SD card.\n\nThis initiates a background process that:\n1. Downloads the firmware from Bambu Lab\n2. Uploads it to the printer's SD card via FTP\n\nPoll GET /firmware/updates/{printer_id}/upload/status for progress.\n\nAfter upload completes, the user must trigger the update from the\nprinter's screen (Settings > Firmware).","operationId":"start_firmware_upload_api_v1_firmware_updates__printer_id__upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirmwareUploadStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/firmware/updates/{printer_id}/upload/status":{"get":{"tags":["firmware"],"summary":"Get Firmware Upload Status","description":"Get the current status of a firmware upload operation (poll for progress).","operationId":"get_firmware_upload_status_api_v1_firmware_updates__printer_id__upload_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"printer_id","in":"path","required":true,"schema":{"type":"integer","title":"Printer Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirmwareUploadStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/printer-statuses":{"get":{"tags":["bulk"],"summary":"Get Printer Statuses","description":"``GET /printers/{printer_id}/status`` for several printers. Unknown ids are left out.","operationId":"get_printer_statuses_api_v1_bulk_printer_statuses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PrinterStatus"},"title":"Response Get Printer Statuses Api V1 Bulk Printer Statuses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/slot-presets":{"get":{"tags":["bulk"],"summary":"Get Slot Presets Bulk","description":"``GET /printers/{printer_id}/slot-presets`` for several printers, keyed by printer id.","operationId":"get_slot_presets_bulk_api_v1_bulk_slot_presets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/ams-labels":{"get":{"tags":["bulk"],"summary":"Get Ams Labels Bulk","description":"``GET /printers/{printer_id}/ams-labels`` for several printers, keyed by printer id.","operationId":"get_ams_labels_bulk_api_v1_bulk_ams_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/card-plugs":{"get":{"tags":["bulk"],"summary":"Get Smart Plugs By Printers","description":"``GET /smart-plugs/by-printer/{printer_id}`` and its ``/scripts``, for several printers.\n\nThe Printers page asked both once per printer card. A printer outside the\ncaller's scope is left out, which the client reports as the single routes'\n404.","operationId":"get_smart_plugs_by_printers_api_v1_bulk_card_plugs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PrinterCardPlugs"},"title":"Response 200 Get Smart Plugs By Printers Api V1 Bulk Card Plugs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/ha-sensor-readings":{"get":{"tags":["bulk"],"summary":"Get Sensor Readings By Printers","description":"``GET /ha-sensors/by-printer/{printer_id}/readings`` for several printers, keyed by printer id.\n\nThe Printers page asked once per card every 15 seconds. A printer outside\nthe caller's scope is left out, which the client reports as the single\nroute's 404.","operationId":"get_sensor_readings_by_printers_api_v1_bulk_ha_sensor_readings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/PrinterHASensorReading"}},"title":"Response Get Sensor Readings By Printers Api V1 Bulk Ha Sensor Readings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/firmware-updates":{"get":{"tags":["bulk"],"summary":"Check Printers Firmware","description":"``GET /firmware/updates/{printer_id}`` for several printers.\n\nThe Printers page asked once per card. Unknown printers, and printers\noutside the caller's scope, are left out, which the client reports as the\nsingle route's 404.","operationId":"check_printers_firmware_api_v1_bulk_firmware_updates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__app__api__routes__firmware__FirmwareUpdateInfo"},"title":"Response Check Printers Firmware Api V1 Bulk Firmware Updates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/printer-queues":{"get":{"tags":["bulk"],"summary":"List Queue By Printers","description":"``GET /queue/?printer_id=N&status=...`` for several printers, keyed by printer id.\n\nEvery printer card asked for its own queue, twice (the card and its queue\nwidget). Each list is what the single call returns: the printer's own jobs\nplus the \"Any <model>\" jobs for its model, in dispatch order. A job for a\nmodel shows up under every printer of that model.","operationId":"list_queue_by_printers_api_v1_bulk_printer_queues_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated printer ids","title":"Ids"},"description":"Comma-separated printer ids"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status; several may be given comma-separated","title":"Status"},"description":"Filter by status; several may be given comma-separated"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/PrintQueueItemResponse"}},"title":"Response List Queue By Printers Api V1 Bulk Printer Queues Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bulk/archive-folders":{"get":{"tags":["bulk"],"summary":"Get Folders By Archives","description":"``GET /library/folders/by-archive/{archive_id}`` for several archives, keyed by archive id.\n\nThe Archives page asked once per archive card, each time loading the whole\nfolder index to work out what the user may see.","operationId":"get_folders_by_archives_api_v1_bulk_archive_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated archive ids","title":"Ids"},"description":"Comma-separated archive ids"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/FolderResponse"}},"title":"Response Get Folders By Archives Api V1 Bulk Archive Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/cloud-accounts":{"get":{"tags":["github-backup"],"summary":"Get Cloud Accounts","description":"How many cloud accounts the Cloud Profiles category would collect from.\n\nIts own endpoint rather than a field on ``/config``, because the settings\nform needs this before any config exists — ``/config`` answers ``null``\nuntil the first save, which would leave the toggle disabled during the\nvery setup it's part of.","operationId":"get_cloud_accounts_api_v1_github_backup_cloud_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudAccountCounts"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/config":{"get":{"tags":["github-backup"],"summary":"Get Config","description":"Get the current GitHub backup configuration.","operationId":"get_config_api_v1_github_backup_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GitHubBackupConfigResponse"},{"type":"null"}],"title":"Response Get Config Api V1 Github Backup Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["github-backup"],"summary":"Save Config","description":"Create or update GitHub backup configuration.\n\nOnly one configuration is supported. If one exists, it will be updated.\nThe target repository must be private — Bambuddy backups carry MQTT\ncredentials, HA/Prometheus tokens, the Bambu Cloud email, and printer\naccess codes (via K-profiles), so a public repo is a hard reject.","operationId":"save_config_api_v1_github_backup_config_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupConfigCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["github-backup"],"summary":"Update Config","description":"Partially update GitHub backup configuration.","operationId":"update_config_api_v1_github_backup_config_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["github-backup"],"summary":"Delete Config","description":"Delete the GitHub backup configuration and all logs.","operationId":"delete_config_api_v1_github_backup_config_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/test":{"post":{"tags":["github-backup"],"summary":"Test Connection","description":"Test Git provider connection with provided credentials.","operationId":"test_connection_api_v1_github_backup_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubTestConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubTestConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/test-stored":{"post":{"tags":["github-backup"],"summary":"Test Stored Connection","description":"Test GitHub connection using stored configuration.","operationId":"test_stored_connection_api_v1_github_backup_test_stored_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubTestConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/run":{"post":{"tags":["github-backup"],"summary":"Trigger Backup","description":"Manually trigger a backup.","operationId":"trigger_backup_api_v1_github_backup_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupTriggerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/status":{"get":{"tags":["github-backup"],"summary":"Get Status","description":"Get current backup status.","operationId":"get_status_api_v1_github_backup_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubBackupStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/commits":{"get":{"tags":["github-backup"],"summary":"List Commits","description":"List recent backup commits so the user can pick one to restore from.","operationId":"list_commits_api_v1_github_backup_commits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubCommitListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/restore/preview":{"get":{"tags":["github-backup"],"summary":"Preview Restore","description":"Report which categories a given backup commit contains.","operationId":"preview_restore_api_v1_github_backup_restore_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","pattern":"^(?:HEAD|[0-9a-fA-F]{7,40})$","default":"HEAD","title":"Ref"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubRestorePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/restore":{"post":{"tags":["github-backup"],"summary":"Restore Backup","description":"Restore selected categories from one backup commit.\n\nNote there is no private-repo gate here, unlike the config endpoints: that\ncheck exists to stop credentials leaving the instance, and this path only\nreads. A config can only be saved against a private repo anyway.\n\nEvery category needs the permission that owns the rows it writes, on top of\n``github:restore`` — see ``_CATEGORY_WRITE_PERMISSION`` and the check below.","operationId":"restore_backup_api_v1_github_backup_restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubRestoreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubRestoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/github-backup/logs":{"get":{"tags":["github-backup"],"summary":"Get Logs","description":"Get backup logs.","operationId":"get_logs_api_v1_github_backup_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GitHubBackupLogResponse"},"title":"Response Get Logs Api V1 Github Backup Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["github-backup"],"summary":"Clear Logs","description":"Clear backup logs, optionally keeping the most recent entries.","operationId":"clear_logs_api_v1_github_backup_logs_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"keep_last","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"description":"Number of recent logs to keep","default":10,"title":"Keep Last"},"description":"Number of recent logs to keep"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/status":{"get":{"tags":["local-backup"],"summary":"Get Status","description":"Get local backup scheduler status and configuration.","operationId":"get_status_api_v1_local_backup_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/path-check":{"get":{"tags":["local-backup"],"summary":"Check Path","description":"Check that the configured output directory can actually be written to.\n\nWrites and removes a probe file. A path the service cannot write to — a NAS\nshare outside the systemd unit's ReadWritePaths, say — otherwise only shows\nup as a failed backup hours later (#2544).","operationId":"check_path_api_v1_local_backup_path_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/run":{"post":{"tags":["local-backup"],"summary":"Trigger Backup","description":"Trigger a local backup immediately.","operationId":"trigger_backup_api_v1_local_backup_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/backups":{"get":{"tags":["local-backup"],"summary":"List Backups","description":"List existing backup files.","operationId":"list_backups_api_v1_local_backup_backups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/backups/{filename}/download":{"get":{"tags":["local-backup"],"summary":"Download Backup","description":"Download a specific backup file.","operationId":"download_backup_api_v1_local_backup_backups__filename__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","description":"Backup filename to download","title":"Filename"},"description":"Backup filename to download"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/backups/{filename}/restore":{"post":{"tags":["local-backup"],"summary":"Restore Backup","description":"Restore from a scheduled backup file on the server.","operationId":"restore_backup_api_v1_local_backup_backups__filename__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","description":"Backup filename to restore","title":"Filename"},"description":"Backup filename to restore"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/local-backup/backups/{filename}":{"delete":{"tags":["local-backup"],"summary":"Delete Backup","description":"Delete a specific backup file.","operationId":"delete_backup_api_v1_local_backup_backups__filename__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","description":"Backup filename to delete","title":"Filename"},"description":"Backup filename to delete"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/obico/status":{"get":{"tags":["obico"],"summary":"Get Status","description":"Scheduler status, per-printer classification, and recent detection history.","operationId":"get_status_api_v1_obico_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/obico/printer-status":{"get":{"tags":["obico"],"summary":"Get Printer Status","description":"Per-printer live classification for the printer cards (#1546).\n\nDeliberately excludes configuration (ML URL, action, history) so users\nwith printers:read but no settings:read can still render the badge.","operationId":"get_printer_status_api_v1_obico_printer_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/obico/test-connection":{"post":{"tags":["obico"],"summary":"Test Connection","description":"Ping the Obico ML API health endpoint and check the token. Returns ok + raw body.","operationId":"test_connection_api_v1_obico_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__app__api__routes__obico__TestConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/obico/cached-frame/{nonce}":{"get":{"tags":["obico"],"summary":"Cached Frame","description":"Serve a pre-captured JPEG to the Obico ML API.\n\nThe detection loop captures a snapshot locally (where we control the timeout),\nstashes the bytes under a one-shot random nonce, then hands this URL to Obico's\nML API. Obico's hardcoded 5s read timeout never races our snapshot pipeline.\n\nUnauthenticated: the unguessable 32-byte nonce is single-use and expires in\nseconds, so exposing this path doesn't widen the camera access surface.","operationId":"cached_frame_api_v1_obico_cached_frame__nonce__get","parameters":[{"name":"nonce","in":"path","required":true,"schema":{"type":"string","title":"Nonce"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/octoeverywhere/status":{"get":{"tags":["octoeverywhere"],"summary":"Get Status","description":"Scheduler status, print quality, and recent detection history.","operationId":"get_status_api_v1_octoeverywhere_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/octoeverywhere/printer-status":{"get":{"tags":["octoeverywhere"],"summary":"Get Printer Status","description":"Live printer-card status without exposing provider configuration.","operationId":"get_printer_status_api_v1_octoeverywhere_printer_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/octoeverywhere/test-connection":{"post":{"tags":["octoeverywhere"],"summary":"Test Connection","description":"Validate the key by creating a context, without uploading a camera image.","operationId":"test_connection_api_v1_octoeverywhere_test_connection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__app__api__routes__octoeverywhere__TestConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/metrics":{"get":{"tags":["metrics"],"summary":"Get Metrics","description":"Prometheus metrics endpoint.\n\nReturns metrics in Prometheus text exposition format.\nRequires prometheus_enabled setting to be true.\nIf prometheus_token is set, requires Bearer token authentication.","operationId":"get_metrics_api_v1_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers":{"get":{"tags":["virtual-printers"],"summary":"List Virtual Printers","description":"List all virtual printers with status.","operationId":"list_virtual_printers_api_v1_virtual_printers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["virtual-printers"],"summary":"Create Virtual Printer","description":"Create a new virtual printer.","operationId":"create_virtual_printer_api_v1_virtual_printers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualPrinterCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/tailscale-status":{"get":{"tags":["virtual-printers"],"summary":"Get Tailscale Status","description":"Return current Tailscale availability and machine identity.\n\nUsed by the frontend to indicate whether virtual printer TLS is backed\nby a trusted Let's Encrypt certificate or a self-signed CA.","operationId":"get_tailscale_status_api_v1_virtual_printers_tailscale_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TailscaleStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/ca-certificate":{"get":{"tags":["virtual-printers"],"summary":"Get Ca Certificate","description":"Return the shared virtual-printer CA certificate (PEM) for slicer trust import.\n\nOne CA is shared by every virtual printer — the user imports it into their\nslicer's trust store once. Only the public certificate is returned; the CA\nprivate key never leaves the backend. So any signed-in user may fetch it,\nfor the Connect slicer page (#3602).","operationId":"get_ca_certificate_api_v1_virtual_printers_ca_certificate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/ca-certificate/installer/{platform}":{"get":{"tags":["virtual-printers"],"summary":"Get Ca Certificate Installer","description":"Return a script that adds the CA to Bambu Studio and OrcaSlicer.\n\n``platform`` is ``windows`` (a .cmd) or ``unix`` (a .sh for Linux and\nmacOS). The CA is written into the script, which then needs no access to\nBambuddy. Returns ``{\"filename\", \"content\"}``. Holds only the public\ncertificate, so any signed-in user may fetch it (#3602).","operationId":"get_ca_certificate_installer_api_v1_virtual_printers_ca_certificate_installer__platform__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/my-access-code":{"get":{"tags":["virtual-printers"],"summary":"Get My Access Code","description":"The signed-in user's personal access code for virtual printers (#1430).\n\nEntered in their slicer instead of a virtual printer's own code, it marks\nwhat they send as theirs. Made on first use. Only for a signed-in user (an\nAPI key has no slicer); a virtual printer checks at every sign-in whether\nthe user may send to it.","operationId":"get_my_access_code_api_v1_virtual_printers_my_access_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["virtual-printers"],"summary":"Renew My Access Code","description":"Replace the signed-in user's personal access code; the old one stops working.","operationId":"renew_my_access_code_api_v1_virtual_printers_my_access_code_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/virtual-printers/connect-info":{"get":{"tags":["virtual-printers"],"summary":"Get Connect Info","description":"What a signed-in user enters in their slicer to send to virtual printers (#3602).\n\nLists the enabled virtual printers they may sign in to with their personal\ncode (the sign-in's own rule, ``user_codes.refusal``), with only what the\nslicer asks for. Never a virtual printer's own access code. With auth off\nthere are no personal codes: ``auth_enabled`` is false and the list empty.\nAn API key has no slicer, so it is refused.","operationId":"get_connect_info_api_v1_virtual_printers_connect_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/{vp_id}/diagnostic":{"get":{"tags":["virtual-printers"],"summary":"Diagnose Virtual Printer","description":"Run setup diagnostics for a virtual printer.\n\nProbes the VP's own bind IP and services so the user can self-diagnose the\ncommon \"my virtual printer doesn't show up in the slicer\" failures.","operationId":"diagnose_virtual_printer_api_v1_virtual_printers__vp_id__diagnostic_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vp_id","in":"path","required":true,"schema":{"type":"integer","title":"Vp Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VPDiagnosticResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/virtual-printers/{vp_id}":{"get":{"tags":["virtual-printers"],"summary":"Get Virtual Printer","description":"Get a single virtual printer with status.","operationId":"get_virtual_printer_api_v1_virtual_printers__vp_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vp_id","in":"path","required":true,"schema":{"type":"integer","title":"Vp Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["virtual-printers"],"summary":"Update Virtual Printer","description":"Update a virtual printer.","operationId":"update_virtual_printer_api_v1_virtual_printers__vp_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vp_id","in":"path","required":true,"schema":{"type":"integer","title":"Vp Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualPrinterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["virtual-printers"],"summary":"Delete Virtual Printer","description":"Delete a virtual printer.","operationId":"delete_virtual_printer_api_v1_virtual_printers__vp_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vp_id","in":"path","required":true,"schema":{"type":"integer","title":"Vp Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/register":{"post":{"tags":["spoolbuddy"],"summary":"Register Device","description":"Register or re-register a SpoolBuddy device.","operationId":"register_device_api_v1_spoolbuddy_devices_register_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices":{"get":{"tags":["spoolbuddy"],"summary":"List Devices","description":"List all registered SpoolBuddy devices.","operationId":"list_devices_api_v1_spoolbuddy_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceResponse"},"title":"Response List Devices Api V1 Spoolbuddy Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}":{"delete":{"tags":["spoolbuddy"],"summary":"Unregister Device","description":"Unregister a SpoolBuddy device. The daemon can re-register via heartbeat later.","operationId":"unregister_device_api_v1_spoolbuddy_devices__device_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/heartbeat":{"post":{"tags":["spoolbuddy"],"summary":"Device Heartbeat","description":"Daemon heartbeat — updates status and returns pending commands.","operationId":"device_heartbeat_api_v1_spoolbuddy_devices__device_id__heartbeat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/nfc/tag-scanned":{"post":{"tags":["spoolbuddy"],"summary":"Nfc Tag Scanned","description":"RPi reports NFC tag detected — lookup spool and broadcast.\n\nRoutes the lookup to the inventory backend Bambuddy is configured for:\nSpoolman exclusively when ``spoolman_enabled`` is true, local DB\nexclusively otherwise. The previous implementation always tried local\nfirst and only consulted Spoolman as a fallback on local-DB miss, which\nmeant a stale local copy of a tag would silently win over the\nauthoritative Spoolman row, and deleting the local copy was the only way\nto surface the Spoolman match. Operators expect the SpoolBuddy lookup to\nfollow the inventory mode they selected in Bambuddy settings.","operationId":"nfc_tag_scanned_api_v1_spoolbuddy_nfc_tag_scanned_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagScannedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/nfc/tag-removed":{"post":{"tags":["spoolbuddy"],"summary":"Nfc Tag Removed","description":"RPi reports NFC tag removed — broadcast event.","operationId":"nfc_tag_removed_api_v1_spoolbuddy_nfc_tag_removed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRemovedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/nfc/write-tag":{"post":{"tags":["spoolbuddy"],"summary":"Nfc Write Tag","description":"Queue an NFC tag write command for a SpoolBuddy device.\n\nThe spool comes from the inventory in use: Spoolman when it is enabled,\notherwise Bambuddy's own. Built-in spools are kept after switching to\nSpoolman, so one with the same id must not stand in for the Spoolman spool.","operationId":"nfc_write_tag_api_v1_spoolbuddy_nfc_write_tag_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/nfc/write-result":{"post":{"tags":["spoolbuddy"],"summary":"Nfc Write Result","description":"Handle NFC tag write result from SpoolBuddy daemon.","operationId":"nfc_write_result_api_v1_spoolbuddy_nfc_write_result_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteTagResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/cancel-write":{"post":{"tags":["spoolbuddy"],"summary":"Cancel Write","description":"Cancel a pending write-tag command.","operationId":"cancel_write_api_v1_spoolbuddy_devices__device_id__cancel_write_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/scale/reading":{"post":{"tags":["spoolbuddy"],"summary":"Scale Reading","description":"RPi reports scale weight — broadcast to all clients.","operationId":"scale_reading_api_v1_spoolbuddy_scale_reading_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScaleReadingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/scale/update-spool-weight":{"post":{"tags":["spoolbuddy"],"summary":"Update Spool Weight","description":"Update spool's used weight from scale reading.\n\nRoutes the update to whichever inventory backend Bambuddy is configured\nfor: Spoolman exclusively when ``spoolman_enabled`` is true, local DB\nexclusively otherwise. The previous implementation tried local first and\nonly consulted Spoolman on a local-DB miss, which meant a stale local row\nsharing a numeric id with a Spoolman spool would silently absorb the\nupdate while the Spoolman row the user is actually looking at stayed\nunchanged (#1530). Mirrors the routing already used by ``nfc/tag-scanned``.","operationId":"update_spool_weight_api_v1_spoolbuddy_scale_update_spool_weight_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpoolWeightRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/calibration/tare":{"post":{"tags":["spoolbuddy"],"summary":"Tare Scale","description":"Set pending tare command for the device to pick up.","operationId":"tare_scale_api_v1_spoolbuddy_devices__device_id__calibration_tare_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/calibration/set-tare":{"post":{"tags":["spoolbuddy"],"summary":"Set Tare Offset","description":"Store tare offset reported by the daemon after executing a tare.","operationId":"set_tare_offset_api_v1_spoolbuddy_devices__device_id__calibration_set_tare_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/calibration/set-factor":{"post":{"tags":["spoolbuddy"],"summary":"Set Calibration Factor","description":"Calculate and store calibration factor from a known weight.","operationId":"set_calibration_factor_api_v1_spoolbuddy_devices__device_id__calibration_set_factor_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCalibrationFactorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/calibration":{"get":{"tags":["spoolbuddy"],"summary":"Get Calibration","description":"Get current calibration values for a device.","operationId":"get_calibration_api_v1_spoolbuddy_devices__device_id__calibration_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/display":{"get":{"tags":["spoolbuddy"],"summary":"Get Display Settings","description":"Read current display brightness and screen blank timeout for a device.\n\nUsed by the SpoolBuddy kiosk idle watchdog on autostart to configure\nswayidle with the same timeout the user picked in the UI, without having\nto wait for the daemon heartbeat to arrive first.","operationId":"get_display_settings_api_v1_spoolbuddy_devices__device_id__display_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["spoolbuddy"],"summary":"Update Display Settings","description":"Update display brightness and screen blank timeout for a device.","operationId":"update_display_settings_api_v1_spoolbuddy_devices__device_id__display_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplaySettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/system/config":{"post":{"tags":["spoolbuddy"],"summary":"Queue System Config Update","description":"Queue update of SpoolBuddy .env config on the device.","operationId":"queue_system_config_update_api_v1_spoolbuddy_devices__device_id__system_config_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/system/command":{"post":{"tags":["spoolbuddy"],"summary":"Queue System Command","description":"Queue a system command (reboot, shutdown, restart_daemon, restart_browser) for the SpoolBuddy device.","operationId":"queue_system_command_api_v1_spoolbuddy_devices__device_id__system_command_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemCommandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/system/command-result":{"post":{"tags":["spoolbuddy"],"summary":"System Command Result","description":"Receive completion status for queued system command from daemon.","operationId":"system_command_result_api_v1_spoolbuddy_devices__device_id__system_command_result_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemCommandResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/diagnostics/{device_id}/run":{"post":{"tags":["spoolbuddy"],"summary":"Queue Diagnostic","description":"Queue a hardware diagnostic to run on the SpoolBuddy device.\n\nArgs:\n    device_id: The device ID\n    diagnostic: 'scale' or 'nfc' to select which diagnostic to run\n\nReturns:\n    Status message indicating diagnostic was queued","operationId":"queue_diagnostic_api_v1_spoolbuddy_diagnostics__device_id__run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"diagnostic","in":"query","required":true,"schema":{"type":"string","title":"Diagnostic"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/diagnostics/{device_id}/result":{"get":{"tags":["spoolbuddy"],"summary":"Get Diagnostic Result","description":"Get the latest diagnostic result for a device.\n\nArgs:\n    device_id: The device ID\n    diagnostic: 'scale' or 'nfc'\n\nReturns:\n    Diagnostic result or 404 if not found","operationId":"get_diagnostic_result_api_v1_spoolbuddy_diagnostics__device_id__result_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"diagnostic","in":"query","required":true,"schema":{"type":"string","title":"Diagnostic"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spoolbuddy"],"summary":"Report Diagnostic Result","description":"Report diagnostic result from SpoolBuddy device.","operationId":"report_diagnostic_result_api_v1_spoolbuddy_diagnostics__device_id__result_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosticResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/update-check":{"get":{"tags":["spoolbuddy"],"summary":"Check Daemon Update","description":"Check if the SpoolBuddy daemon needs updating to match the Bambuddy backend version.","operationId":"check_daemon_update_api_v1_spoolbuddy_devices__device_id__update_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/devices/{device_id}/update":{"post":{"tags":["spoolbuddy"],"summary":"Trigger Daemon Update","description":"Trigger a SpoolBuddy update over SSH.\n\nBambuddy SSHes into the device, pulls the matching branch, installs deps,\nand restarts the daemon. Progress is broadcast via WebSocket.","operationId":"trigger_daemon_update_api_v1_spoolbuddy_devices__device_id__update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/spoolbuddy/ssh/public-key":{"get":{"tags":["spoolbuddy"],"summary":"Get Ssh Public Key","description":"Return the SSH public key for SpoolBuddy pairing.","operationId":"get_ssh_public_key_api_v1_spoolbuddy_ssh_public_key_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Serve Frontend","description":"Serve the React frontend.","operationId":"serve_frontend__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Health check endpoint.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manifest.json":{"get":{"summary":"Serve Manifest","description":"Serve PWA manifest.","operationId":"serve_manifest_manifest_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Serve Manifest","description":"Serve PWA manifest.","operationId":"serve_manifest_manifest_json_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sw.js":{"get":{"summary":"Serve Service Worker","description":"Serve service worker.","operationId":"serve_service_worker_sw_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Serve Service Worker","description":"Serve service worker.","operationId":"serve_service_worker_sw_js_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sw-register.js":{"get":{"summary":"Serve Sw Register","description":"Serve the service-worker registration bootstrap script.\n\nServed as a real JS file so the strict `script-src 'self'` CSP covers it\nwithout needing 'unsafe-inline' or per-build hashes on the inline tag.","operationId":"serve_sw_register_sw_register_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Serve Sw Register","description":"Serve the service-worker registration bootstrap script.\n\nServed as a real JS file so the strict `script-src 'self'` CSP covers it\nwithout needing 'unsafe-inline' or per-build hashes on the inline tag.","operationId":"serve_sw_register_sw_register_js_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{full_path}":{"get":{"summary":"Serve Spa","description":"Serve React app for client-side routing.","operationId":"serve_spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AMSHistoryPoint":{"properties":{"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"humidity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Humidity"},"humidity_raw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Humidity Raw"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"}},"type":"object","required":["recorded_at","humidity","humidity_raw","temperature"],"title":"AMSHistoryPoint"},"AMSHistoryResponse":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id"},"data":{"items":{"$ref":"#/components/schemas/AMSHistoryPoint"},"type":"array","title":"Data"},"min_humidity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Humidity"},"max_humidity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Humidity"},"avg_humidity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Humidity"},"min_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Temperature"},"max_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Temperature"},"avg_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Temperature"}},"type":"object","required":["printer_id","ams_id","data","min_humidity","max_humidity","avg_humidity","min_temperature","max_temperature","avg_temperature"],"title":"AMSHistoryResponse"},"AMSTray":{"properties":{"id":{"type":"integer","title":"Id"},"tray_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Color"},"tray_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Type"},"tray_sub_brands":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Sub Brands"},"tray_id_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Id Name"},"tray_info_idx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Info Idx"},"remain":{"type":"integer","title":"Remain","default":0},"k":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"K"},"cali_idx":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cali Idx"},"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"drying_temp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drying Temp"},"drying_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drying Time"},"state":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"State"},"exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists"}},"type":"object","required":["id"],"title":"AMSTray"},"AMSUnit":{"properties":{"id":{"type":"integer","title":"Id"},"humidity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Humidity"},"temp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp"},"is_ams_ht":{"type":"boolean","title":"Is Ams Ht","default":false},"tray":{"items":{"$ref":"#/components/schemas/AMSTray"},"type":"array","title":"Tray","default":[]},"serial_number":{"type":"string","title":"Serial Number","default":""},"sw_ver":{"type":"string","title":"Sw Ver","default":""},"dry_time":{"type":"integer","title":"Dry Time","default":0},"dry_countdown_stalled":{"type":"boolean","title":"Dry Countdown Stalled","default":false},"dry_status":{"type":"integer","title":"Dry Status","default":0},"dry_sub_status":{"type":"integer","title":"Dry Sub Status","default":0},"dry_sf_reason":{"items":{"type":"integer"},"type":"array","title":"Dry Sf Reason","default":[]},"dry_target_temp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dry Target Temp"},"dry_filament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dry Filament"},"module_type":{"type":"string","title":"Module Type","default":""},"ams_type":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ams Type"},"dryer_slots":{"items":{"type":"integer"},"type":"array","title":"Dryer Slots","default":[]},"dryer_humidity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dryer Humidity"},"dryer_temp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dryer Temp"}},"type":"object","required":["id"],"title":"AMSUnit"},"APIKeyCreate":{"properties":{"name":{"type":"string","title":"Name"},"can_queue":{"type":"boolean","title":"Can Queue","default":true},"can_control_printer":{"type":"boolean","title":"Can Control Printer","default":false},"can_read_status":{"type":"boolean","title":"Can Read Status","default":true},"can_manage_library":{"type":"boolean","title":"Can Manage Library","default":true},"can_manage_inventory":{"type":"boolean","title":"Can Manage Inventory","default":true},"can_manage_maintenance":{"type":"boolean","title":"Can Manage Maintenance","default":true},"can_manage_archives":{"type":"boolean","title":"Can Manage Archives","default":true},"can_manage_projects":{"type":"boolean","title":"Can Manage Projects","default":true},"can_access_cloud":{"type":"boolean","title":"Can Access Cloud","default":false},"can_update_energy_cost":{"type":"boolean","title":"Can Update Energy Cost","default":false},"can_send_notifications":{"type":"boolean","title":"Can Send Notifications","default":false},"printer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Printer Ids"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["name"],"title":"APIKeyCreate","description":"Schema for creating a new API key."},"APIKeyCreateResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"can_queue":{"type":"boolean","title":"Can Queue"},"can_control_printer":{"type":"boolean","title":"Can Control Printer"},"can_read_status":{"type":"boolean","title":"Can Read Status"},"can_manage_library":{"type":"boolean","title":"Can Manage Library"},"can_manage_inventory":{"type":"boolean","title":"Can Manage Inventory"},"can_manage_maintenance":{"type":"boolean","title":"Can Manage Maintenance"},"can_manage_archives":{"type":"boolean","title":"Can Manage Archives"},"can_manage_projects":{"type":"boolean","title":"Can Manage Projects"},"can_access_cloud":{"type":"boolean","title":"Can Access Cloud"},"can_update_energy_cost":{"type":"boolean","title":"Can Update Energy Cost"},"can_send_notifications":{"type":"boolean","title":"Can Send Notifications"},"printer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Printer Ids"},"enabled":{"type":"boolean","title":"Enabled"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","key_prefix","user_id","can_queue","can_control_printer","can_read_status","can_manage_library","can_manage_inventory","can_manage_maintenance","can_manage_archives","can_manage_projects","can_access_cloud","can_update_energy_cost","can_send_notifications","printer_ids","enabled","last_used","created_at","expires_at","key"],"title":"APIKeyCreateResponse","description":"Response when creating a key - includes full key (shown only once)."},"APIKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"can_queue":{"type":"boolean","title":"Can Queue"},"can_control_printer":{"type":"boolean","title":"Can Control Printer"},"can_read_status":{"type":"boolean","title":"Can Read Status"},"can_manage_library":{"type":"boolean","title":"Can Manage Library"},"can_manage_inventory":{"type":"boolean","title":"Can Manage Inventory"},"can_manage_maintenance":{"type":"boolean","title":"Can Manage Maintenance"},"can_manage_archives":{"type":"boolean","title":"Can Manage Archives"},"can_manage_projects":{"type":"boolean","title":"Can Manage Projects"},"can_access_cloud":{"type":"boolean","title":"Can Access Cloud"},"can_update_energy_cost":{"type":"boolean","title":"Can Update Energy Cost"},"can_send_notifications":{"type":"boolean","title":"Can Send Notifications"},"printer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Printer Ids"},"enabled":{"type":"boolean","title":"Enabled"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","key_prefix","user_id","can_queue","can_control_printer","can_read_status","can_manage_library","can_manage_inventory","can_manage_maintenance","can_manage_archives","can_manage_projects","can_access_cloud","can_update_energy_cost","can_send_notifications","printer_ids","enabled","last_used","created_at","expires_at"],"title":"APIKeyResponse","description":"Schema for API key response (without full key)."},"APIKeyUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"can_queue":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Queue"},"can_control_printer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Control Printer"},"can_read_status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Read Status"},"can_manage_library":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Manage Library"},"can_manage_inventory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Manage Inventory"},"can_manage_maintenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Manage Maintenance"},"can_manage_archives":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Manage Archives"},"can_manage_projects":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Manage Projects"},"can_access_cloud":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Access Cloud"},"can_update_energy_cost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Update Energy Cost"},"can_send_notifications":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Send Notifications"},"printer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Printer Ids"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"APIKeyUpdate","description":"Schema for updating an API key."},"AddToQueueError":{"properties":{"file_id":{"type":"integer","title":"File Id"},"filename":{"type":"string","title":"Filename"},"error":{"type":"string","title":"Error"}},"type":"object","required":["file_id","filename","error"],"title":"AddToQueueError","description":"Error for a file that couldn't be added to queue."},"AddToQueueRequest":{"properties":{"file_ids":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"File Ids"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"target_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model"}},"type":"object","required":["file_ids"],"title":"AddToQueueRequest","description":"Schema for adding library files to the print queue."},"AddToQueueResponse":{"properties":{"added":{"items":{"$ref":"#/components/schemas/AddToQueueResult"},"type":"array","title":"Added"},"errors":{"items":{"$ref":"#/components/schemas/AddToQueueError"},"type":"array","title":"Errors"}},"type":"object","required":["added","errors"],"title":"AddToQueueResponse","description":"Schema for add-to-queue response."},"AddToQueueResult":{"properties":{"file_id":{"type":"integer","title":"File Id"},"filename":{"type":"string","title":"Filename"},"queue_item_id":{"type":"integer","title":"Queue Item Id"}},"type":"object","required":["file_id","filename","queue_item_id"],"title":"AddToQueueResult","description":"Result for a single file added to queue."},"AdminDisable2FARequest":{"properties":{"admin_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Admin Password"}},"type":"object","title":"AdminDisable2FARequest","description":"Admin must supply their own password as re-auth before disabling 2FA for another user.\n\nOIDC/LDAP-only admins (no local password_hash) are exempt from this check."},"AmsLabelBody":{"properties":{"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label"},"ams_serial":{"type":"string","maxLength":50,"title":"Ams Serial","default":""}},"type":"object","required":["label"],"title":"AmsLabelBody"},"AppMessage":{"properties":{"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Url","description":"A link the message points to (http or https)"}},"type":"object","required":["title","message"],"title":"AppMessage","description":"A message another application sends through Bambuddy's notification channels."},"AppMessageChannel":{"properties":{"name":{"type":"string","title":"Name"},"provider_type":{"type":"string","title":"Provider Type"}},"type":"object","required":["name","provider_type"],"title":"AppMessageChannel"},"AppMessageResult":{"properties":{"channels":{"type":"integer","title":"Channels","description":"How many channels the message was handed to"}},"type":"object","required":["channels"],"title":"AppMessageResult"},"AppSettings":{"properties":{"auto_archive":{"type":"boolean","title":"Auto Archive","description":"Automatically archive prints when completed","default":true},"save_thumbnails":{"type":"boolean","title":"Save Thumbnails","description":"Extract and save preview images from 3MF files","default":true},"capture_finish_photo":{"type":"boolean","title":"Capture Finish Photo","description":"Capture photo from printer camera when print completes. Bambuddy records a brief timelapse during the print so the photo can be sourced from the moment before the bed drops; the timelapse file is kept if you enabled timelapse for this print, otherwise it is deleted automatically after the photo is captured.","default":true},"finish_photo_restore_plate":{"type":"boolean","title":"Finish Photo Restore Plate","description":"Raise the build plate back into camera framing before taking the finish photo. Bambu's end G-code drops the plate ~100mm as the last thing it does, leaving the finished print far below the camera's natural framing. Bambuddy moves it back to just above the last printed layer, takes the photo, then lowers it again. Skipped when the print height is unknown or another job is queued for the printer.","default":true},"default_filament_cost":{"type":"number","title":"Default Filament Cost","description":"Default filament cost per kg","default":25.0},"currency":{"type":"string","title":"Currency","description":"Currency for cost tracking","default":"USD"},"energy_cost_per_kwh":{"type":"number","title":"Energy Cost Per Kwh","description":"Electricity cost per kWh for energy tracking","default":0.15},"energy_tracking_mode":{"type":"string","title":"Energy Tracking Mode","description":"Energy display mode on stats: 'print' shows sum of per-print energy, 'total' shows lifetime plug consumption","default":"total"},"energy_price_source":{"type":"string","title":"Energy Price Source","description":"Where the electricity price comes from: 'fixed' uses energy_cost_per_kwh, 'homeassistant' reads energy_price_ha_entity hourly and at print start and end (#1251)","default":"fixed"},"energy_price_ha_entity":{"type":"string","title":"Energy Price Ha Entity","description":"Home Assistant sensor holding the electricity price per kWh","default":""},"spoolman_enabled":{"type":"boolean","title":"Spoolman Enabled","description":"Enable Spoolman integration for filament tracking","default":false},"spoolman_url":{"type":"string","title":"Spoolman Url","description":"Spoolman server URL (e.g., http://localhost:7912)","default":""},"spoolman_sync_mode":{"type":"string","title":"Spoolman Sync Mode","description":"Sync mode: 'auto' syncs immediately, 'manual' requires button press","default":"auto"},"spoolman_disable_weight_sync":{"type":"boolean","title":"Spoolman Disable Weight Sync","description":"Disable remaining_weight sync. When enabled, only location is updated for existing spools.","default":false},"spoolman_report_partial_usage":{"type":"boolean","title":"Spoolman Report Partial Usage","description":"Report Partial Usage for Failed Prints. When a print fails or is cancelled, report the estimated filament used up to that point based on layer progress.","default":true},"auto_add_unknown_rfid":{"type":"boolean","title":"Auto Add Unknown Rfid","description":"Automatically add spools with unknown RFID tags to inventory. Disable if you pre-create inventory entries manually to avoid duplicates.","default":true},"disable_filament_warnings":{"type":"boolean","title":"Disable Filament Warnings","description":"Disable insufficient filament warnings when printing or queueing prints","default":false},"prefer_lowest_filament":{"type":"boolean","title":"Prefer Lowest Filament","description":"When multiple AMS spools match, prefer the one with lowest remaining filament","default":false},"check_updates":{"type":"boolean","title":"Check Updates","description":"Automatically check for updates on startup","default":true},"check_printer_firmware":{"type":"boolean","title":"Check Printer Firmware","description":"Check for printer firmware updates from Bambu Lab","default":true},"include_beta_updates":{"type":"boolean","title":"Include Beta Updates","description":"Include beta/prerelease versions in update checks","default":false},"announcements_enabled":{"type":"boolean","title":"Announcements Enabled","description":"Fetch announcements from the Bambuddy maintainers (a signed file on GitHub)","default":true},"announcements_all_users":{"type":"boolean","title":"Announcements All Users","description":"Show announcements to every signed-in user, not only administrators","default":false},"language":{"type":"string","title":"Language","description":"UI language (en, de, fr, ja, it, pt-BR)","default":"en"},"notification_language":{"type":"string","title":"Notification Language","description":"Language for push notifications (en, de)","default":"en"},"bed_cooled_threshold":{"type":"number","title":"Bed Cooled Threshold","description":"Bed temperature threshold for cooled notification (°C)","default":35.0},"pause_warning_minutes":{"type":"integer","title":"Pause Warning Minutes","description":"Minutes before a pause to send the pause-coming-up notification","default":5},"ams_humidity_good":{"type":"integer","title":"Ams Humidity Good","description":"Humidity threshold for good (green): <= this value","default":40},"ams_humidity_fair":{"type":"integer","title":"Ams Humidity Fair","description":"Humidity threshold for fair (orange): <= this value, > is red","default":60},"ams_temp_good":{"type":"number","title":"Ams Temp Good","description":"Temperature threshold for good (blue): <= this value","default":28.0},"ams_temp_fair":{"type":"number","title":"Ams Temp Fair","description":"Temperature threshold for fair (orange): <= this value, > is red","default":35.0},"ams_temp_alarm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ams Temp Alarm","description":"Temperature threshold (°C) for sending an alarm. Unset falls back to ams_temp_fair."},"ams_history_retention_days":{"type":"integer","title":"Ams History Retention Days","description":"Number of days to keep AMS sensor history data","default":30},"printer_sensor_history_retention_days":{"type":"integer","title":"Printer Sensor History Retention Days","description":"Number of days to keep printer heater history data (nozzle / bed / chamber)","default":30},"queue_drying_enabled":{"type":"boolean","title":"Queue Drying Enabled","description":"Automatically dry AMS filament between queued prints","default":false},"queue_drying_block":{"type":"boolean","title":"Queue Drying Block","description":"Block queue until drying completes (when disabled, prints take priority over drying)","default":false},"ambient_drying_enabled":{"type":"boolean","title":"Ambient Drying Enabled","description":"Automatically dry AMS filament on idle printers when humidity exceeds threshold, regardless of queue","default":false},"ambient_drying_sustained_minutes":{"type":"integer","maximum":240.0,"minimum":0.0,"title":"Ambient Drying Sustained Minutes","description":"Minutes the humidity must stay above the threshold before an ambient auto-dry starts (0 = start immediately). Rides out the reading spike from opening the AMS lid instead of buying a dry cycle for it.","default":0},"print_drying_enabled":{"type":"boolean","title":"Print Drying Enabled","description":"Allow auto-drying to also fire on a printer that is currently printing, when its model+firmware supports concurrent drying (H2D 01.03.00.00+, H2C/H2S/P2S/H2D Pro 01.02.00.00+, X2D/A2L 01.01.00.00+, X1C 01.11.02.00+). Drying temperature is automatically capped 5 degC below the idle preset (floor 40 degC) to protect spools during print.","default":false},"drying_presets":{"type":"string","title":"Drying Presets","description":"JSON blob of drying presets per filament type (empty = use built-in defaults)","default":""},"ams_humidity_thresholds":{"type":"string","title":"Ams Humidity Thresholds","description":"JSON blob of per-filament-type humidity trigger thresholds for auto-drying and alarms. Shape: {\"default\": int, \"PLA\": int, \"ASA\": int, ...}. Empty = fall back to ams_humidity_fair for all types.","default":""},"gcode_snippets":{"type":"string","title":"Gcode Snippets","description":"JSON: per-model G-code injection snippets {model: {start_gcode, end_gcode}}","default":""},"local_backup_enabled":{"type":"boolean","title":"Local Backup Enabled","description":"Enable scheduled local backups","default":false},"local_backup_schedule":{"type":"string","title":"Local Backup Schedule","description":"Backup frequency: hourly, daily, weekly","default":"daily"},"local_backup_time":{"type":"string","title":"Local Backup Time","description":"Time of day for daily/weekly backups (HH:MM, 24h)","default":"03:00"},"local_backup_retention":{"type":"integer","title":"Local Backup Retention","description":"Number of backup files to keep (1-100)","default":5},"local_backup_path":{"type":"string","title":"Local Backup Path","description":"Backup output directory (empty = DATA_DIR/backups)","default":""},"per_printer_mapping_expanded":{"type":"boolean","title":"Per Printer Mapping Expanded","description":"Expand custom filament mapping by default in print modal","default":false},"date_format":{"type":"string","title":"Date Format","description":"Date format: system, us, eu, iso","default":"system"},"time_format":{"type":"string","title":"Time Format","description":"Time format: system, 12h, 24h","default":"system"},"default_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Printer Id","description":"Default printer ID for uploads, reprints, etc."},"pipeline_max_copies":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Pipeline Max Copies","description":"Upper bound on the copies an operator can request when running a Slicer Pipeline. Larger fleets / production rigs can raise this; the hard ceiling at 1000 is a sanity guard against fat-fingered input.","default":50},"virtual_printer_archive_name_source":{"type":"string","title":"Virtual Printer Archive Name Source","description":"Source for the archive's display name on virtual-printer uploads: 'metadata' uses the 3MF's embedded print_name (default, matches Bambu's behavior), 'filename' uses the filename Bambu Studio sent over FTP (lets users rename via the slicer's 'send to printer' dialog).","default":"metadata"},"virtual_printer_connect_instructions":{"type":"string","maxLength":4000,"title":"Virtual Printer Connect Instructions","description":"Markdown the Connect slicer page shows every user above their virtual printers (#3602), e.g. 'connect to the VPN first'. Empty: none.","default":""},"dark_style":{"type":"string","title":"Dark Style","description":"Dark mode style: classic, glow, vibrant","default":"vibrant"},"dark_background":{"type":"string","title":"Dark Background","description":"Dark mode background: neutral, warm, cool, oled, slate, forest","default":"cool"},"dark_accent":{"type":"string","title":"Dark Accent","description":"Dark mode accent: green, teal, blue, orange, purple, red","default":"green"},"light_style":{"type":"string","title":"Light Style","description":"Light mode style: classic, glow, vibrant","default":"classic"},"light_background":{"type":"string","title":"Light Background","description":"Light mode background: neutral, warm, cool","default":"neutral"},"light_accent":{"type":"string","title":"Light Accent","description":"Light mode accent: green, teal, blue, orange, purple, red","default":"green"},"ftp_retry_enabled":{"type":"boolean","title":"Ftp Retry Enabled","description":"Enable automatic retry for FTP operations","default":true},"ftp_retry_count":{"type":"integer","title":"Ftp Retry Count","description":"Number of retry attempts for FTP operations (1-10)","default":3},"ftp_retry_delay":{"type":"integer","title":"Ftp Retry Delay","description":"Seconds to wait between FTP retry attempts (1-30)","default":2},"ftp_timeout":{"type":"integer","title":"Ftp Timeout","description":"FTP connection timeout in seconds (10-300)","default":30},"mqtt_enabled":{"type":"boolean","title":"Mqtt Enabled","description":"Enable MQTT event publishing to external broker","default":false},"mqtt_broker":{"type":"string","title":"Mqtt Broker","description":"MQTT broker hostname or IP address","default":""},"mqtt_port":{"type":"integer","title":"Mqtt Port","description":"MQTT broker port (default 1883, TLS typically 8883)","default":1883},"mqtt_username":{"type":"string","title":"Mqtt Username","description":"MQTT username for authentication (optional)","default":""},"mqtt_password":{"type":"string","title":"Mqtt Password","description":"MQTT password for authentication (optional)","default":""},"mqtt_topic_prefix":{"type":"string","title":"Mqtt Topic Prefix","description":"Topic prefix for all published messages","default":"bambuddy"},"mqtt_use_tls":{"type":"boolean","title":"Mqtt Use Tls","description":"Use TLS/SSL encryption for MQTT connection","default":false},"panda_breath_enabled":{"type":"boolean","title":"Panda Breath Enabled","description":"Follow BIQU Panda Breath heaters on the MQTT broker above (#1466)","default":false},"external_url":{"type":"string","title":"External Url","description":"External URL where Bambuddy is accessible (for notification images)","default":""},"docker_compose_dir":{"type":"string","title":"Docker Compose Dir","description":"Host directory containing docker-compose.yml, used in the update instructions","default":""},"ha_enabled":{"type":"boolean","title":"Ha Enabled","description":"Enable Home Assistant integration for smart plug control","default":false},"ha_url":{"type":"string","title":"Ha Url","description":"Home Assistant URL (e.g., http://192.168.1.100:8123)","default":""},"ha_token":{"type":"string","title":"Ha Token","description":"Home Assistant Long-Lived Access Token","default":""},"ha_url_from_env":{"type":"boolean","title":"Ha Url From Env","description":"Whether HA URL is set via HA_URL environment variable","default":false},"ha_token_from_env":{"type":"boolean","title":"Ha Token From Env","description":"Whether HA token is set via HA_TOKEN environment variable","default":false},"ha_env_managed":{"type":"boolean","title":"Ha Env Managed","description":"Whether HA integration is fully managed by environment variables","default":false},"library_disk_warning_gb":{"type":"number","title":"Library Disk Warning Gb","description":"Show warning when free disk space falls below this threshold (GB)","default":5.0},"camera_light_mode":{"type":"string","title":"Camera Light Mode","description":"Turn the chamber light on while the camera is in use: 'off', 'all' or 'selected' printers","default":"off"},"camera_light_delay":{"type":"number","title":"Camera Light Delay","description":"Seconds an automatic snapshot waits after the chamber light was turned on","default":2.0},"camera_view_mode":{"type":"string","title":"Camera View Mode","description":"Camera view mode: 'window' opens in new browser window, 'embedded' shows overlay on main screen","default":"window"},"preferred_slicer":{"type":"string","title":"Preferred Slicer","description":"Slicer used for the server-side API / sidecar: 'bambu_studio' or 'orcaslicer'","default":"bambu_studio"},"open_in_slicer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open In Slicer","description":"Desktop slicer for the 'Open in Slicer' button: 'bambu_studio' or 'orcaslicer'. None inherits from preferred_slicer."},"slice_engine":{"type":"string","title":"Slice Engine","description":"Default execution site for slicing: 'sidecar' (server-side API) or 'browser'","default":"sidecar"},"use_slicer_api":{"type":"boolean","title":"Use Slicer Api","description":"Use the slicer-API sidecar for slicing instead of the desktop slicer URI scheme","default":false},"orcaslicer_api_url":{"type":"string","title":"Orcaslicer Api Url","description":"OrcaSlicer sidecar URL (e.g. http://localhost:3003). Empty falls back to the SLICER_API_URL env var.","default":""},"bambu_studio_api_url":{"type":"string","title":"Bambu Studio Api Url","description":"BambuStudio sidecar URL (e.g. http://localhost:3001). Empty falls back to the BAMBU_STUDIO_API_URL env var.","default":""},"slicer_stall_timeout_minutes":{"type":"integer","maximum":240.0,"minimum":1.0,"title":"Slicer Stall Timeout Minutes","description":"Give up on a slice after this many minutes with no progress from the sidecar. On sidecars that do not report progress, applies to total slicing time instead.","default":15},"prometheus_enabled":{"type":"boolean","title":"Prometheus Enabled","description":"Enable Prometheus metrics endpoint at /metrics","default":false},"prometheus_token":{"type":"string","title":"Prometheus Token","description":"Bearer token for Prometheus metrics authentication (optional)","default":""},"low_stock_threshold":{"type":"number","maximum":99.9,"minimum":0.1,"title":"Low Stock Threshold","description":"Low stock threshold percentage (%) for inventory filtering and display","default":20.0},"session_max_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Session Max Hours","description":"Maximum session lifetime in hours for user logins (default 24, max 720). Applies to new logins only; already-issued tokens keep their original expiry. Longer sessions reduce automatic logout protection.","default":24},"user_notifications_enabled":{"type":"boolean","title":"User Notifications Enabled","description":"Enable user email notifications for print job events (requires Advanced Authentication)","default":true},"notification_submitter_email_enabled":{"type":"boolean","title":"Notification Submitter Email Enabled","description":"Fill {submitted_by_email} in print notifications with the email of the user who sent the job. Off, it stays empty: anyone who can edit templates or providers could otherwise send every submitter's email to a server of their choosing.","default":false},"default_bed_levelling":{"type":"string","enum":["off","on","auto"],"title":"Default Bed Levelling","description":"Default bed levelling option for new prints","default":"auto"},"default_flow_cali":{"type":"string","enum":["off","on","auto"],"title":"Default Flow Cali","description":"Default flow calibration option for new prints","default":"auto"},"default_vibration_cali":{"type":"boolean","title":"Default Vibration Cali","description":"Default vibration calibration option for new prints","default":true},"default_layer_inspect":{"type":"boolean","title":"Default Layer Inspect","description":"Default first layer inspection option for new prints","default":false},"default_timelapse":{"type":"boolean","title":"Default Timelapse","description":"Default timelapse option for new prints","default":false},"default_nozzle_offset_cali":{"type":"string","enum":["off","on","auto"],"title":"Default Nozzle Offset Cali","description":"Default nozzle offset calibration option for new prints (dual-nozzle printers only)","default":"auto"},"default_confirm_outcome":{"type":"boolean","title":"Default Confirm Outcome","description":"Default for asking for a post-print outcome verdict on new prints (#1898)","default":false},"confirm_outcome_external_prints":{"type":"boolean","title":"Confirm Outcome External Prints","description":"Also ask for the outcome of prints Bambuddy archived but did not dispatch — started at the printer, in Bambu Studio or in the Handy app (#1898)","default":false},"confirm_default_good_on_plate_clear":{"type":"boolean","title":"Confirm Default Good On Plate Clear","description":"When the build plate is released (manual acknowledgment or next dispatch) with the outcome prompt still unanswered, record the print as a good part (#1898)","default":false},"stagger_group_size":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Stagger Group Size","description":"Number of printers to start simultaneously in staggered mode","default":2},"stagger_interval_minutes":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Stagger Interval Minutes","description":"Minutes between staggered printer groups","default":5},"billing_enabled":{"type":"boolean","title":"Billing Enabled","description":"Enable cost-center billing enforcement for print and queue operations","default":false},"printer_kill_switch_enabled":{"type":"boolean","title":"Printer Kill Switch Enabled","description":"Immediately stop printer jobs that start without Bambuddy authorization","default":false},"finance_budget_reset_day":{"type":"integer","maximum":31.0,"minimum":1.0,"title":"Finance Budget Reset Day","description":"Day of month when monthly finance budget window resets (1-31, clamped for short months)","default":1},"finance_budget_reset_timezone":{"type":"string","title":"Finance Budget Reset Timezone","description":"IANA timezone for finance monthly budget reset calculation (e.g., Europe/Berlin)","default":"UTC"},"require_plate_clear":{"type":"boolean","title":"Require Plate Clear","description":"Require per-printer plate-clear confirmation before starting queued prints on finished printers","default":false},"queue_shortest_first":{"type":"boolean","title":"Queue Shortest First","description":"Shortest Job First — scheduler prioritizes shorter print jobs over longer ones","default":false},"queue_loaded_filament_first":{"type":"boolean","title":"Queue Loaded Filament First","description":"Skip a queued job whose filament is not loaded on its printer instead of holding it, so jobs behind it that fit can run first (#3587)","default":false},"queue_max_wait_hours":{"anyOf":[{"type":"integer","maximum":8760.0,"minimum":1.0},{"type":"null"}],"title":"Queue Max Wait Hours","description":"With loaded-filament-first: hours after which a skipped job gets priority and its printer is kept free for it. null = no limit (#3587)","default":48},"model_dispatch_order":{"type":"string","enum":["fewest_hours","most_hours","least_recently_used","priority"],"title":"Model Dispatch Order","description":"Which printer an 'Any model' job takes when several can run it (#2915): the one with the fewest print hours, the most, the one idle the longest, or the first by the printers' own priority.","default":"fewest_hours"},"queue_max_concurrent_uploads":{"type":"integer","maximum":16.0,"minimum":1.0,"title":"Queue Max Concurrent Uploads","description":"How many printers the queue may upload to at the same time. Printers are independent machines, so raising this starts a multi-printer batch proportionally sooner; each concurrent upload costs one connection and one thread on the Bambuddy host.","default":4},"preheat_enabled":{"type":"boolean","title":"Preheat Enabled","description":"Master toggle / default for new queue items. Per-item preheat_override can flip the decision per print.","default":false},"preheat_filament_targets":{"type":"string","title":"Preheat Filament Targets","description":"JSON map of normalized filament type → chamber target °C. Empty = bundled defaults (PLA/PETG/TPU/PVA: 0, PETG-CF: 40, ABS/ASA: 45, PA/PC/PC-FR: 50, PA-CF: 55, default: 0). Scheduler picks max across loaded AMS slots; 0 disables chamber phase for that print.","default":""},"preheat_max_wait_seconds":{"type":"integer","maximum":3600.0,"minimum":60.0,"title":"Preheat Max Wait Seconds","description":"Maximum time to wait for the chamber to reach the target before falling through to the soak phase (radiant heating on X1C/P2S can take 15-30 min).","default":900},"preheat_soak_seconds":{"type":"integer","maximum":1800.0,"minimum":0.0,"title":"Preheat Soak Seconds","description":"Additional hold time at temperature after the chamber reaches the target (or after max_wait_seconds elapses). 0 = no soak.","default":300},"queue_keep_bed_warm":{"type":"boolean","title":"Queue Keep Bed Warm","description":"While a printer is in FINISH state awaiting plate-clear and the next queued item requires chamber heating, hold the bed hot so the chamber stays warm during the bed-clearing window. The bed is the chamber's heating element here: the hold target is queue_keep_warm_bed_temp, or the item's own bed_temperature when the slicer metadata reports a higher one. Only fires for filaments with a non-zero chamber target (ASA, ABS, PA, PC etc.); PLA/PETG prints are skipped automatically.","default":false},"queue_keep_warm_bed_temp":{"type":"integer","maximum":110.0,"minimum":40.0,"title":"Queue Keep Warm Bed Temp","description":"Bed temperature (°C) used when the bed's job is to heat the chamber. 90 sustains chamber warmth on enclosed printers and satisfies bed-threshold-linked aftermarket chamber heaters (which typically activate at bed ≥ 80). Applies in two places: the keep-warm hold between chamber-heated prints, and preheat when a chamber-heated item's slicer metadata carries no bed temperature at all. A parsed bed temperature higher than this always wins, so the bed is never driven cooler than the print needs.","default":90},"queue_keep_warm_max_minutes":{"type":"integer","maximum":480.0,"minimum":5.0,"title":"Queue Keep Warm Max Minutes","description":"How long keep-warm may hold the bed on a printer waiting for its plate to be cleared. When this elapses the bed is switched off, and the hold does not re-arm until the printer next becomes a keep-warm candidate — so a plate nobody clears cannot leave the bed hot indefinitely. Set it to how long you realistically take to reach the printer; the only cost of it being too short is that the next print re-soaks from cold.","default":120},"nozzle_temp_presets":{"type":"string","title":"Nozzle Temp Presets","description":"JSON array of 3 nozzle-temperature preset values in C (0-320). Empty = use defaults [120, 220, 260]","default":""},"bed_temp_presets":{"type":"string","title":"Bed Temp Presets","description":"JSON array of 3 bed-temperature preset values in C (0-140). Empty = use defaults [55, 75, 90]","default":""},"chamber_temp_presets":{"type":"string","title":"Chamber Temp Presets","description":"JSON array of 3 chamber-temperature preset values in C (0-65). Empty = use defaults [35, 45, 60]","default":""},"fan_speed_presets":{"type":"string","title":"Fan Speed Presets","description":"JSON array of 3 fan-speed preset values in % (0-100). Empty = use defaults [50, 75, 100]","default":""},"local_login_enabled":{"type":"boolean","title":"Local Login Enabled","description":"Allow username + password login on /auth/login. Disable when only SSO should be usable. BAMBUDDY_LOCAL_LOGIN=true on the server overrides this to keep a recovery path open.","default":true},"ldap_enabled":{"type":"boolean","title":"Ldap Enabled","description":"Enable LDAP authentication","default":false},"ldap_server_url":{"type":"string","title":"Ldap Server Url","description":"LDAP server URL (e.g., ldap://ldap.example.com:389)","default":""},"ldap_bind_dn":{"type":"string","title":"Ldap Bind Dn","description":"Bind DN for LDAP searches (e.g., cn=admin,dc=example,dc=com)","default":""},"ldap_bind_password":{"type":"string","title":"Ldap Bind Password","description":"Bind password for LDAP searches","default":""},"ldap_search_base":{"type":"string","title":"Ldap Search Base","description":"Search base DN (e.g., ou=users,dc=example,dc=com)","default":""},"ldap_user_filter":{"type":"string","title":"Ldap User Filter","description":"LDAP user search filter. {username} is replaced with the login username","default":"(sAMAccountName={username})"},"ldap_security":{"type":"string","title":"Ldap Security","description":"LDAP security: 'starttls' or 'ldaps'","default":"starttls"},"ldap_group_mapping":{"type":"string","title":"Ldap Group Mapping","description":"JSON: LDAP group to BamBuddy group mapping {ldap_group_dn: bambuddy_group_name}","default":""},"ldap_auto_provision":{"type":"boolean","title":"Ldap Auto Provision","description":"Auto-create BamBuddy user on first successful LDAP login","default":false},"ldap_default_group":{"type":"string","title":"Ldap Default Group","description":"Fallback BamBuddy group name assigned when an LDAP user authenticates but has no mapped groups. Empty = no fallback.","default":""},"obico_enabled":{"type":"boolean","title":"Obico Enabled","description":"Enable Obico AI print failure detection","default":false},"obico_ml_url":{"type":"string","title":"Obico Ml Url","description":"Self-hosted Obico ML API base URL (e.g., http://192.168.1.10:3333)","default":""},"bambuddy_internal_url":{"type":"string","title":"Bambuddy Internal Url","description":"Bambuddy Internal URL for Obico; empty uses External URL","default":""},"obico_ml_token":{"type":"string","title":"Obico Ml Token","description":"Bearer token for the Obico ML API, matching the server's ML_API_TOKEN environment variable. Empty when the server runs without one.","default":""},"obico_sensitivity":{"type":"string","title":"Obico Sensitivity","description":"Detection sensitivity: 'low', 'medium', or 'high' (adjusts LOW/HIGH thresholds)","default":"medium"},"obico_action":{"type":"string","title":"Obico Action","description":"Action on detected failure: 'notify', 'pause', or 'pause_and_off'","default":"notify"},"obico_poll_interval":{"type":"integer","maximum":120.0,"minimum":5.0,"title":"Obico Poll Interval","description":"Seconds between detection checks while a print is running","default":10},"obico_enabled_printers":{"type":"string","title":"Obico Enabled Printers","description":"JSON array of printer IDs to monitor (empty = all connected printers)","default":""},"octoeverywhere_enabled":{"type":"boolean","title":"Octoeverywhere Enabled","description":"Enable OctoEverywhere AI print failure detection","default":false},"octoeverywhere_api_key":{"type":"string","title":"Octoeverywhere Api Key","description":"OctoEverywhere Gadget API key","default":""},"octoeverywhere_api_key_configured":{"type":"boolean","title":"Octoeverywhere Api Key Configured","description":"Whether an OctoEverywhere Gadget API key is saved","default":false},"octoeverywhere_poll_interval":{"type":"integer","maximum":30.0,"minimum":5.0,"title":"Octoeverywhere Poll Interval","description":"Seconds between inspections, subject to the server's minimum interval","default":20},"octoeverywhere_confidence":{"type":"string","title":"Octoeverywhere Confidence","description":"Confidence OctoEverywhere needs before suggesting a warning or pause: lowest, low, medium, high, or highest (API levels 1-5). Lower reports sooner with more false positives.","default":"medium"},"octoeverywhere_action":{"type":"string","title":"Octoeverywhere Action","description":"Action on failure: notify, pause, or pause_and_off","default":"notify"},"octoeverywhere_enabled_printers":{"type":"string","title":"Octoeverywhere Enabled Printers","description":"JSON array of printer IDs to monitor (empty = all connected printers)","default":""},"forecast_global_lead_time_days":{"type":"integer","minimum":0.0,"title":"Forecast Global Lead Time Days","description":"Global lead time floor (days) used in reorder point calculation for all SKUs","default":0},"location_sensor_poll_interval":{"type":"integer","maximum":3600.0,"minimum":60.0,"title":"Location Sensor Poll Interval","description":"Seconds between Home Assistant polls/UI refreshes for storage-location sensors","default":120},"location_sensor_alert_defaults":{"type":"string","title":"Location Sensor Alert Defaults","description":"JSON map of sensor category (temperature/humidity/battery) → {\"alertAbove\": str, \"alertBelow\": str, \"notifyOnAlert\": bool}, seeding new storage-location sensor bindings. Empty = built-in defaults.","default":""},"default_sidebar_order":{"type":"string","title":"Default Sidebar Order","description":"JSON object with 'order' key containing array of sidebar item IDs (empty = no default)","default":""}},"type":"object","title":"AppSettings","description":"Application settings schema."},"AppSettingsUpdate":{"properties":{"auto_archive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Archive"},"save_thumbnails":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Save Thumbnails"},"capture_finish_photo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Capture Finish Photo"},"finish_photo_restore_plate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Finish Photo Restore Plate"},"default_filament_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Filament Cost"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"energy_cost_per_kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Cost Per Kwh"},"energy_tracking_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Energy Tracking Mode"},"energy_price_source":{"anyOf":[{"type":"string","enum":["fixed","homeassistant"]},{"type":"null"}],"title":"Energy Price Source"},"energy_price_ha_entity":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Energy Price Ha Entity"},"spoolman_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spoolman Enabled"},"spoolman_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spoolman Url"},"spoolman_sync_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spoolman Sync Mode"},"spoolman_disable_weight_sync":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spoolman Disable Weight Sync"},"spoolman_report_partial_usage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spoolman Report Partial Usage"},"auto_add_unknown_rfid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Add Unknown Rfid"},"disable_filament_warnings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disable Filament Warnings"},"prefer_lowest_filament":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prefer Lowest Filament"},"check_updates":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Updates"},"check_printer_firmware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Printer Firmware"},"include_beta_updates":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Beta Updates"},"announcements_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Announcements Enabled"},"announcements_all_users":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Announcements All Users"},"local_login_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Local Login Enabled"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"notification_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Language"},"bed_cooled_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bed Cooled Threshold"},"pause_warning_minutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Pause Warning Minutes"},"ams_humidity_good":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ams Humidity Good"},"ams_humidity_fair":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ams Humidity Fair"},"ams_temp_good":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ams Temp Good"},"ams_temp_fair":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ams Temp Fair"},"ams_temp_alarm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ams Temp Alarm"},"ams_history_retention_days":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Ams History Retention Days"},"printer_sensor_history_retention_days":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Printer Sensor History Retention Days"},"queue_drying_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Drying Enabled"},"queue_drying_block":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Drying Block"},"ambient_drying_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ambient Drying Enabled"},"ambient_drying_sustained_minutes":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":0.0},{"type":"null"}],"title":"Ambient Drying Sustained Minutes"},"print_drying_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Print Drying Enabled"},"drying_presets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drying Presets"},"ams_humidity_thresholds":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ams Humidity Thresholds"},"per_printer_mapping_expanded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Per Printer Mapping Expanded"},"date_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Format"},"time_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Format"},"default_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Printer Id"},"pipeline_max_copies":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pipeline Max Copies"},"virtual_printer_archive_name_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Virtual Printer Archive Name Source"},"virtual_printer_connect_instructions":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Virtual Printer Connect Instructions"},"dark_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dark Style"},"dark_background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dark Background"},"dark_accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dark Accent"},"light_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Light Style"},"light_background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Light Background"},"light_accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Light Accent"},"ftp_retry_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ftp Retry Enabled"},"ftp_retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ftp Retry Count"},"ftp_retry_delay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ftp Retry Delay"},"ftp_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ftp Timeout"},"mqtt_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mqtt Enabled"},"mqtt_broker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Broker"},"mqtt_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mqtt Port"},"mqtt_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Username"},"mqtt_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Password"},"mqtt_topic_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Topic Prefix"},"mqtt_use_tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mqtt Use Tls"},"panda_breath_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Panda Breath Enabled"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"docker_compose_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Docker Compose Dir"},"ha_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ha Enabled"},"ha_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Url"},"ha_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Token"},"library_disk_warning_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Library Disk Warning Gb"},"camera_view_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera View Mode"},"camera_light_mode":{"anyOf":[{"type":"string","enum":["off","all","selected"]},{"type":"null"}],"title":"Camera Light Mode"},"camera_light_delay":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Camera Light Delay"},"model_dispatch_order":{"anyOf":[{"type":"string","enum":["fewest_hours","most_hours","least_recently_used","priority"]},{"type":"null"}],"title":"Model Dispatch Order"},"preferred_slicer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Slicer"},"open_in_slicer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open In Slicer"},"slice_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slice Engine"},"use_slicer_api":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Slicer Api"},"orcaslicer_api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orcaslicer Api Url"},"bambu_studio_api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bambu Studio Api Url"},"slicer_stall_timeout_minutes":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Slicer Stall Timeout Minutes"},"prometheus_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prometheus Enabled"},"prometheus_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prometheus Token"},"low_stock_threshold":{"anyOf":[{"type":"number","maximum":99.9,"minimum":0.1},{"type":"null"}],"title":"Low Stock Threshold"},"session_max_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Session Max Hours"},"user_notifications_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"User Notifications Enabled"},"notification_submitter_email_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notification Submitter Email Enabled"},"default_bed_levelling":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Default Bed Levelling"},"default_flow_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Default Flow Cali"},"default_vibration_cali":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Vibration Cali"},"default_layer_inspect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Layer Inspect"},"default_timelapse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Timelapse"},"default_nozzle_offset_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Default Nozzle Offset Cali"},"default_confirm_outcome":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Confirm Outcome"},"confirm_outcome_external_prints":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Outcome External Prints"},"confirm_default_good_on_plate_clear":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Default Good On Plate Clear"},"stagger_group_size":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Stagger Group Size"},"stagger_interval_minutes":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Stagger Interval Minutes"},"billing_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Billing Enabled"},"printer_kill_switch_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Printer Kill Switch Enabled"},"finance_budget_reset_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Finance Budget Reset Day"},"finance_budget_reset_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finance Budget Reset Timezone"},"require_plate_clear":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Plate Clear"},"queue_shortest_first":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Shortest First"},"queue_loaded_filament_first":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Loaded Filament First"},"queue_max_wait_hours":{"anyOf":[{"type":"integer","maximum":8760.0,"minimum":1.0},{"type":"null"}],"title":"Queue Max Wait Hours"},"queue_max_concurrent_uploads":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Queue Max Concurrent Uploads"},"preheat_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preheat Enabled"},"preheat_filament_targets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preheat Filament Targets"},"preheat_max_wait_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":60.0},{"type":"null"}],"title":"Preheat Max Wait Seconds"},"preheat_soak_seconds":{"anyOf":[{"type":"integer","maximum":1800.0,"minimum":0.0},{"type":"null"}],"title":"Preheat Soak Seconds"},"queue_keep_bed_warm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Keep Bed Warm"},"queue_keep_warm_bed_temp":{"anyOf":[{"type":"integer","maximum":110.0,"minimum":40.0},{"type":"null"}],"title":"Queue Keep Warm Bed Temp"},"queue_keep_warm_max_minutes":{"anyOf":[{"type":"integer","maximum":480.0,"minimum":5.0},{"type":"null"}],"title":"Queue Keep Warm Max Minutes"},"nozzle_temp_presets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nozzle Temp Presets"},"bed_temp_presets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bed Temp Presets"},"chamber_temp_presets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chamber Temp Presets"},"fan_speed_presets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fan Speed Presets"},"gcode_snippets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcode Snippets"},"local_backup_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Local Backup Enabled"},"local_backup_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Backup Schedule"},"local_backup_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Backup Time"},"local_backup_retention":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Local Backup Retention"},"local_backup_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Backup Path"},"ldap_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ldap Enabled"},"ldap_server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Server Url"},"ldap_bind_dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Bind Dn"},"ldap_bind_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Bind Password"},"ldap_search_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Search Base"},"ldap_user_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap User Filter"},"ldap_security":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Security"},"ldap_group_mapping":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Group Mapping"},"ldap_auto_provision":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ldap Auto Provision"},"ldap_default_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Default Group"},"obico_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Obico Enabled"},"obico_ml_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obico Ml Url"},"bambuddy_internal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bambuddy Internal Url"},"obico_ml_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obico Ml Token"},"obico_sensitivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obico Sensitivity"},"obico_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obico Action"},"obico_poll_interval":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":5.0},{"type":"null"}],"title":"Obico Poll Interval"},"obico_enabled_printers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obico Enabled Printers"},"octoeverywhere_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Octoeverywhere Enabled"},"octoeverywhere_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Octoeverywhere Api Key"},"octoeverywhere_poll_interval":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":5.0},{"type":"null"}],"title":"Octoeverywhere Poll Interval"},"octoeverywhere_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Octoeverywhere Confidence"},"octoeverywhere_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Octoeverywhere Action"},"octoeverywhere_enabled_printers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Octoeverywhere Enabled Printers"},"default_sidebar_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Sidebar Order"},"forecast_global_lead_time_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Forecast Global Lead Time Days"},"location_sensor_poll_interval":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":60.0},{"type":"null"}],"title":"Location Sensor Poll Interval"},"location_sensor_alert_defaults":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Location Sensor Alert Defaults"}},"type":"object","title":"AppSettingsUpdate","description":"Schema for updating settings (all fields optional)."},"ArchiveDuplicate":{"properties":{"id":{"type":"integer","title":"Id"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"match_type":{"type":"string","title":"Match Type"}},"type":"object","required":["id","print_name","created_at","match_type"],"title":"ArchiveDuplicate","description":"Reference to a duplicate archive."},"ArchiveMergeRequest":{"properties":{"survivor_ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Survivor Ids"}},"type":"object","required":["survivor_ids"],"title":"ArchiveMergeRequest"},"ArchivePreview":{"properties":{"id":{"type":"integer","title":"Id"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"status":{"type":"string","title":"Status"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color"}},"type":"object","required":["id","print_name","thumbnail_path","status"],"title":"ArchivePreview","description":"Minimal archive data for project preview."},"ArchivePurgePreviewResponse":{"properties":{"count":{"type":"integer","title":"Count"},"total_bytes":{"type":"integer","title":"Total Bytes"},"sample_filenames":{"items":{"type":"string"},"type":"array","title":"Sample Filenames"},"older_than_days":{"type":"integer","title":"Older Than Days"}},"type":"object","required":["count","total_bytes","sample_filenames","older_than_days"],"title":"ArchivePurgePreviewResponse"},"ArchivePurgeRequest":{"properties":{"older_than_days":{"type":"integer","maximum":3650.0,"minimum":1.0,"title":"Older Than Days"},"purge_stats":{"type":"boolean","title":"Purge Stats","default":false}},"type":"object","required":["older_than_days"],"title":"ArchivePurgeRequest"},"ArchivePurgeResponse":{"properties":{"deleted":{"type":"integer","title":"Deleted"},"purge_stats":{"type":"boolean","title":"Purge Stats","default":false}},"type":"object","required":["deleted"],"title":"ArchivePurgeResponse"},"ArchivePurgeSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"days":{"type":"integer","maximum":3650.0,"minimum":7.0,"title":"Days","default":365},"purge_stats":{"type":"boolean","title":"Purge Stats","default":false}},"type":"object","title":"ArchivePurgeSettings"},"ArchiveRequest":{"properties":{"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"ArchiveRequest","description":"Request to archive a pending upload."},"ArchiveResponse":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"filename":{"type":"string","title":"Filename"},"file_path":{"type":"string","title":"File Path"},"file_size":{"type":"integer","title":"File Size"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"timelapse_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timelapse Path","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"source_3mf_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source 3Mf Path"},"f3d_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"F3D Path"},"duplicates":{"anyOf":[{"items":{"$ref":"#/components/schemas/ArchiveDuplicate"},"type":"array"},{"type":"null"}],"title":"Duplicates"},"duplicate_count":{"type":"integer","title":"Duplicate Count","default":0},"duplicate_sequence":{"type":"integer","title":"Duplicate Sequence","default":0},"original_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Original Archive Id"},"object_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Object Count"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"print_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time Seconds"},"actual_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actual Time Seconds","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"time_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Time Accuracy","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"time_estimate_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time Estimate Seconds","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color"},"layer_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Layer Height"},"total_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Layers"},"nozzle_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nozzle Diameter"},"bed_temperature":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temperature"},"bed_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bed Type"},"nozzle_temperature":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temperature"},"sliced_for_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sliced For Model"},"status":{"type":"string","title":"Status","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"extra_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Data"},"makerworld_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Makerworld Url"},"designer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Designer"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"photos":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Photos","description":"Every print's finish photos and the ones uploaded by hand; a print's own are on its run.","deprecated":true},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"quantity":{"type":"integer","title":"Quantity","default":1},"user_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Verdict","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"user_verdict_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Verdict Source","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"user_verdict_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"User Verdict At","description":"Deprecated: the latest print's (latest_run_id). Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"confirm_requested":{"type":"boolean","title":"Confirm Requested","default":false},"run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Id"},"latest_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Run Id"},"timelapse_count":{"type":"integer","title":"Timelapse Count","default":0},"energy_kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Kwh","description":"Deprecated: the first print's. Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"energy_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Cost","description":"Deprecated: the first print's. Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"wear_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wear Cost","description":"Deprecated: the first print's. Read it from the archive's runs (GET /archives/{id}/runs).","deprecated":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"run_count":{"type":"integer","title":"Run Count","default":0},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"total_filament_actual_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Filament Actual Grams"},"successful_run_count":{"type":"integer","title":"Successful Run Count","default":0},"failed_run_count":{"type":"integer","title":"Failed Run Count","default":0},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"},"total_energy_kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Energy Kwh"},"total_energy_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Energy Cost"},"total_wear_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Wear Cost"}},"type":"object","required":["id","printer_id","filename","file_path","file_size","content_hash","thumbnail_path","timelapse_path","print_name","print_time_seconds","filament_used_grams","filament_type","filament_color","layer_height","nozzle_diameter","bed_temperature","nozzle_temperature","status","started_at","completed_at","extra_data","makerworld_url","designer","is_favorite","tags","notes","cost","photos","failure_reason","created_at"],"title":"ArchiveResponse"},"ArchiveSlim":{"properties":{"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"print_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time Seconds"},"actual_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actual Time Seconds"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"energy_kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Kwh"},"energy_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Cost"},"wear_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wear Cost"},"quantity":{"type":"integer","title":"Quantity","default":1},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["printer_id","print_name","print_time_seconds","filament_used_grams","filament_type","filament_color","status","started_at","completed_at","cost","created_at"],"title":"ArchiveSlim","description":"Lightweight archive response for stats/dashboard widgets."},"ArchiveStats":{"properties":{"total_prints":{"type":"integer","title":"Total Prints"},"successful_prints":{"type":"integer","title":"Successful Prints"},"failed_prints":{"type":"integer","title":"Failed Prints"},"cancelled_prints":{"type":"integer","title":"Cancelled Prints","default":0},"total_print_time_hours":{"type":"number","title":"Total Print Time Hours"},"total_filament_grams":{"type":"number","title":"Total Filament Grams"},"total_cost":{"type":"number","title":"Total Cost"},"prints_by_filament_type":{"additionalProperties":true,"type":"object","title":"Prints By Filament Type"},"prints_by_printer":{"additionalProperties":true,"type":"object","title":"Prints By Printer"},"printer_names":{"additionalProperties":{"type":"string"},"type":"object","title":"Printer Names","default":{}},"average_time_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Time Accuracy"},"time_accuracy_by_printer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Time Accuracy By Printer"},"total_energy_kwh":{"type":"number","title":"Total Energy Kwh","default":0.0},"total_energy_cost":{"type":"number","title":"Total Energy Cost","default":0.0},"total_wear_cost":{"type":"number","title":"Total Wear Cost","default":0.0},"energy_data_warming_up":{"type":"boolean","title":"Energy Data Warming Up","default":false}},"type":"object","required":["total_prints","successful_prints","failed_prints","total_print_time_hours","total_filament_grams","total_cost","prints_by_filament_type","prints_by_printer"],"title":"ArchiveStats"},"ArchiveUpdate":{"properties":{"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"cost":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Cost"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"quantity":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Quantity"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"status":{"anyOf":[{"type":"string","pattern":"^(completed|failed|aborted|cancelled)$"},{"type":"null"}],"title":"Status"},"user_verdict":{"anyOf":[{"type":"string","pattern":"^(good|reject)$"},{"type":"null"}],"title":"User Verdict"},"user_verdict_source":{"anyOf":[{"type":"string","pattern":"^(dialog|printer_card|api)$"},{"type":"null"}],"title":"User Verdict Source"},"filament_used_grams":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Filament Used Grams"},"run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Id"}},"type":"object","title":"ArchiveUpdate"},"AvailableFirmwareVersion":{"properties":{"version":{"type":"string","title":"Version"},"file_available":{"type":"boolean","title":"File Available"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"release_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Notes"},"release_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Time"}},"type":"object","required":["version","file_available"],"title":"AvailableFirmwareVersion","description":"A single firmware version announced by Bambu Lab."},"BOMItemCreate":{"properties":{"name":{"type":"string","title":"Name"},"quantity_needed":{"type":"integer","title":"Quantity Needed","default":1},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"sourcing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Url"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"stl_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stl Filename"},"remarks":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remarks"}},"type":"object","required":["name"],"title":"BOMItemCreate","description":"Schema for creating a BOM item."},"BOMItemExport":{"properties":{"name":{"type":"string","title":"Name"},"quantity_needed":{"type":"integer","title":"Quantity Needed"},"quantity_acquired":{"type":"integer","title":"Quantity Acquired"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"sourcing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Url"},"stl_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stl Filename"},"remarks":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remarks"}},"type":"object","required":["name","quantity_needed","quantity_acquired","unit_price","sourcing_url","stl_filename","remarks"],"title":"BOMItemExport","description":"Schema for exporting a BOM item."},"BOMItemResponse":{"properties":{"id":{"type":"integer","title":"Id"},"project_id":{"type":"integer","title":"Project Id"},"name":{"type":"string","title":"Name"},"quantity_needed":{"type":"integer","title":"Quantity Needed"},"quantity_acquired":{"type":"integer","title":"Quantity Acquired"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"sourcing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Url"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"archive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Name"},"stl_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stl Filename"},"remarks":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remarks"},"sort_order":{"type":"integer","title":"Sort Order"},"is_complete":{"type":"boolean","title":"Is Complete","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","project_id","name","quantity_needed","quantity_acquired","unit_price","sourcing_url","archive_id","stl_filename","remarks","sort_order","created_at","updated_at"],"title":"BOMItemResponse","description":"Schema for BOM item response."},"BOMItemUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"quantity_needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity Needed"},"quantity_acquired":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity Acquired"},"unit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Price"},"sourcing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Url"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"stl_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stl Filename"},"remarks":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remarks"}},"type":"object","title":"BOMItemUpdate","description":"Schema for updating a BOM item."},"BackupCodesResponse":{"properties":{"backup_codes":{"items":{"type":"string"},"type":"array","title":"Backup Codes"},"message":{"type":"string","title":"Message"}},"type":"object","required":["backup_codes","message"],"title":"BackupCodesResponse"},"BatchAddArchives":{"properties":{"archive_ids":{"items":{"type":"integer"},"type":"array","title":"Archive Ids"}},"type":"object","required":["archive_ids"],"title":"BatchAddArchives","description":"Schema for batch adding archives to a project."},"BatchAddQueueItems":{"properties":{"queue_item_ids":{"items":{"type":"integer"},"type":"array","title":"Queue Item Ids"}},"type":"object","required":["queue_item_ids"],"title":"BatchAddQueueItems","description":"Schema for batch adding queue items to a project."},"BatchThumbnailRequest":{"properties":{"file_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"File Ids"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"all_missing":{"type":"boolean","title":"All Missing","default":false}},"type":"object","title":"BatchThumbnailRequest","description":"Schema for batch STL thumbnail generation request."},"BatchThumbnailResponse":{"properties":{"processed":{"type":"integer","title":"Processed"},"succeeded":{"type":"integer","title":"Succeeded"},"failed":{"type":"integer","title":"Failed"},"results":{"items":{"$ref":"#/components/schemas/BatchThumbnailResult"},"type":"array","title":"Results"}},"type":"object","required":["processed","succeeded","failed","results"],"title":"BatchThumbnailResponse","description":"Schema for batch thumbnail generation response."},"BatchThumbnailResult":{"properties":{"file_id":{"type":"integer","title":"File Id"},"filename":{"type":"string","title":"Filename"},"success":{"type":"boolean","title":"Success"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["file_id","filename","success"],"title":"BatchThumbnailResult","description":"Result for a single file thumbnail generation."},"Body_extract_zip_file_api_v1_library_files_extract_zip_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_extract_zip_file_api_v1_library_files_extract_zip_post"},"Body_import_presets_api_v1_local_presets_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_presets_api_v1_local_presets_import_post"},"Body_import_project_file_api_v1_projects_import_file_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_project_file_api_v1_projects_import_file_post"},"Body_import_spools_csv_api_v1_inventory_spools_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_spools_csv_api_v1_inventory_spools_import_post"},"Body_process_timelapse_api_v1_archives__archive_id__timelapse_process_post":{"properties":{"trim_start":{"type":"number","title":"Trim Start","default":0},"trim_end":{"type":"number","title":"Trim End"},"speed":{"type":"number","title":"Speed","default":1.0},"audio_volume":{"type":"number","title":"Audio Volume","default":1.0},"save_mode":{"type":"string","title":"Save Mode","default":"new"},"output_filename":{"type":"string","title":"Output Filename"},"audio":{"type":"string","contentMediaType":"application/octet-stream","title":"Audio"}},"type":"object","title":"Body_process_timelapse_api_v1_archives__archive_id__timelapse_process_post"},"Body_restore_backup_api_v1_settings_restore_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_restore_backup_api_v1_settings_restore_post"},"Body_upload_archive_api_v1_archives_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_archive_api_v1_archives_upload_post"},"Body_upload_archives_bulk_api_v1_archives_upload_bulk_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_archives_bulk_api_v1_archives_upload_bulk_post"},"Body_upload_f3d_api_v1_archives__archive_id__f3d_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_f3d_api_v1_archives__archive_id__f3d_post"},"Body_upload_file_api_v1_library_files__post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_v1_library_files__post"},"Body_upload_file_api_v1_library_files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_v1_library_files_post"},"Body_upload_file_photo_api_v1_library_files__file_id__photos_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_photo_api_v1_library_files__file_id__photos_post"},"Body_upload_icon_api_v1_external_links__link_id__icon_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_icon_api_v1_external_links__link_id__icon_post"},"Body_upload_logo_api_v1_settings_overlay_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_logo_api_v1_settings_overlay_logo_post"},"Body_upload_photo_api_v1_archives__archive_id__photos_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_photo_api_v1_archives__archive_id__photos_post"},"Body_upload_preview_thumbnail_api_v1_library_files__file_id__preview_thumbnail_post":{"properties":{"thumbnail":{"type":"string","contentMediaType":"application/octet-stream","title":"Thumbnail"}},"type":"object","required":["thumbnail"],"title":"Body_upload_preview_thumbnail_api_v1_library_files__file_id__preview_thumbnail_post"},"Body_upload_project_cover_image_api_v1_projects__project_id__cover_image_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_project_cover_image_api_v1_projects__project_id__cover_image_post"},"Body_upload_source_3mf_api_v1_archives__archive_id__source_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_source_3mf_api_v1_archives__archive_id__source_post"},"Body_upload_source_3mf_by_name_api_v1_archives_upload_source_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_source_3mf_by_name_api_v1_archives_upload_source_post"},"Body_upload_timelapse_api_v1_archives__archive_id__timelapse_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_timelapse_api_v1_archives__archive_id__timelapse_upload_post"},"BugReportRequest":{"properties":{"description":{"type":"string","title":"Description"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"screenshot_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot Base64"},"include_support_info":{"type":"boolean","title":"Include Support Info","default":true},"debug_logs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Debug Logs"}},"type":"object","required":["description"],"title":"BugReportRequest"},"BugReportResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"issue_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Url"},"issue_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Issue Number"}},"type":"object","required":["success","message"],"title":"BugReportResponse"},"BulkDeleteIdsRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"}},"type":"object","required":["ids"],"title":"BulkDeleteIdsRequest"},"BulkDeleteRequest":{"properties":{"file_ids":{"items":{"type":"integer"},"type":"array","title":"File Ids","default":[]},"folder_ids":{"items":{"type":"integer"},"type":"array","title":"Folder Ids","default":[]}},"type":"object","title":"BulkDeleteRequest","description":"Schema for bulk delete operations."},"BulkDeleteResponse":{"properties":{"deleted_files":{"type":"integer","title":"Deleted Files"},"deleted_folders":{"type":"integer","title":"Deleted Folders"}},"type":"object","required":["deleted_files","deleted_folders"],"title":"BulkDeleteResponse","description":"Schema for bulk delete response."},"BulkIdsRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"BulkIdsRequest"},"BulkUpdateRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"},"update":{"$ref":"#/components/schemas/SpoolUpdate"}},"type":"object","required":["ids","update"],"title":"BulkUpdateRequest"},"CalibrationResponse":{"properties":{"tare_offset":{"type":"integer","title":"Tare Offset"},"calibration_factor":{"type":"number","title":"Calibration Factor"}},"type":"object","required":["tare_offset","calibration_factor"],"title":"CalibrationResponse"},"CatalogEntryCreate":{"properties":{"name":{"type":"string","title":"Name"},"weight":{"type":"integer","title":"Weight"}},"type":"object","required":["name","weight"],"title":"CatalogEntryCreate"},"CatalogEntryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"weight":{"type":"integer","title":"Weight"},"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["id","name","weight","is_default"],"title":"CatalogEntryResponse"},"CatalogEntryUpdate":{"properties":{"name":{"type":"string","title":"Name"},"weight":{"type":"integer","title":"Weight"}},"type":"object","required":["name","weight"],"title":"CatalogEntryUpdate"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","maxLength":256,"title":"Current Password"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"CheckEligibilityRequest":{"properties":{"source_library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Library File Id"},"source_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Archive Id"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"CheckEligibilityRequest","description":"Exactly one of ``source_library_file_id`` / ``source_archive_id`` must\nbe set."},"ClientThumbnailResponse":{"properties":{"updated":{"type":"boolean","title":"Updated"}},"type":"object","required":["updated"],"title":"ClientThumbnailResponse","description":"Schema for the client-rendered preview thumbnail upload response (#2976).\n\n``updated`` is false when the file already had a thumbnail — the upload is\nskipped so a stored thumbnail is never silently replaced."},"CloudAccountCounts":{"properties":{"bambu":{"type":"integer","title":"Bambu","description":"Connected Bambu Cloud accounts","default":0},"orca":{"type":"integer","title":"Orca","description":"Connected Orca Cloud accounts","default":0}},"type":"object","title":"CloudAccountCounts","description":"How many connected cloud accounts a backup would collect presets from.\n\nCounts only, never identities: with auth enabled these are other users'\naccounts, and whoever administers the backup has no business learning who\nsigned in to what. The number is enough to answer the only question the UI\nasks — is the Cloud Profiles category worth offering at all (#2717)."},"CloudAuthStatus":{"properties":{"is_authenticated":{"type":"boolean","title":"Is Authenticated"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"region":{"anyOf":[{"type":"string","enum":["global","china"]},{"type":"null"}],"title":"Region"},"sign_in_expired":{"type":"boolean","title":"Sign In Expired","default":false}},"type":"object","required":["is_authenticated"],"title":"CloudAuthStatus","description":"Current authentication status."},"CloudDevice":{"properties":{"dev_id":{"type":"string","title":"Dev Id"},"name":{"type":"string","title":"Name"},"dev_model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dev Model Name"},"dev_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dev Product Name"},"online":{"type":"boolean","title":"Online","default":false}},"type":"object","required":["dev_id","name"],"title":"CloudDevice","description":"A bound printer device."},"CloudLoginRequest":{"properties":{"email":{"type":"string","title":"Email","description":"Bambu Lab account email"},"password":{"type":"string","title":"Password","description":"Account password"},"region":{"type":"string","enum":["global","china"],"title":"Region","description":"Region: 'global' or 'china'","default":"global"}},"type":"object","required":["email","password"],"title":"CloudLoginRequest","description":"Request to initiate cloud login."},"CloudLoginResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"message":{"type":"string","title":"Message"},"verification_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Type"},"tfa_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tfa Key"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["success","message"],"title":"CloudLoginResponse","description":"Response from login attempt."},"CloudTokenRequest":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"Bambu Lab access token"},"region":{"type":"string","enum":["global","china"],"title":"Region","description":"Region: 'global' or 'china'","default":"global"}},"type":"object","required":["access_token"],"title":"CloudTokenRequest","description":"Request to set access token directly."},"CloudVerifyRequest":{"properties":{"email":{"type":"string","title":"Email","description":"Bambu Lab account email"},"code":{"type":"string","title":"Code","description":"6-digit verification code"},"tfa_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tfa Key","description":"TFA key for TOTP verification (from login response)"},"region":{"type":"string","enum":["global","china"],"title":"Region","description":"Region: 'global' or 'china'","default":"global"}},"type":"object","required":["email","code"],"title":"CloudVerifyRequest","description":"Request to verify login with 2FA code (email or TOTP)."},"ColorByMaterialResult":{"properties":{"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"}},"type":"object","title":"ColorByMaterialResult"},"ColorEntryCreate":{"properties":{"manufacturer":{"type":"string","title":"Manufacturer"},"color_name":{"type":"string","title":"Color Name"},"hex_color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Hex Color"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"}},"type":"object","required":["manufacturer","color_name","hex_color"],"title":"ColorEntryCreate"},"ColorEntryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"manufacturer":{"type":"string","title":"Manufacturer"},"color_name":{"type":"string","title":"Color Name"},"hex_color":{"type":"string","title":"Hex Color"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"is_default":{"type":"boolean","title":"Is Default"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"}},"type":"object","required":["id","manufacturer","color_name","hex_color","material","is_default"],"title":"ColorEntryResponse"},"ColorEntryUpdate":{"properties":{"manufacturer":{"type":"string","title":"Manufacturer"},"color_name":{"type":"string","title":"Color Name"},"hex_color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Hex Color"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"}},"type":"object","required":["manufacturer","color_name","hex_color"],"title":"ColorEntryUpdate"},"ColorLookupResult":{"properties":{"found":{"type":"boolean","title":"Found"},"hex_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hex Color"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"}},"type":"object","required":["found"],"title":"ColorLookupResult"},"ColorSubstitution":{"properties":{"slot_id":{"type":"integer","title":"Slot Id"},"type":{"type":"string","title":"Type"},"wanted":{"type":"string","title":"Wanted"},"got":{"type":"string","title":"Got"},"tray":{"type":"integer","title":"Tray"}},"type":"object","required":["slot_id","type","wanted","got","tray"],"title":"ColorSubstitution","description":"A slot sent with a spool of another colour than the file asked for (#3279)."},"CombineFilesRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CombineItem"},"type":"array","maxItems":100,"minItems":1,"title":"Items"},"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["items","filename"],"title":"CombineFilesRequest","description":"Combine STL library files into one multi-object 3MF on a single plate."},"CombineItem":{"properties":{"file_id":{"type":"integer","title":"File Id"},"copies":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Copies","default":1}},"type":"object","required":["file_id"],"title":"CombineItem","description":"One source model in a combine request."},"ConnectAuthorizeInfo":{"properties":{"app_name":{"type":"string","title":"App Name"},"username":{"type":"string","title":"Username"},"already_granted":{"type":"boolean","title":"Already Granted"}},"type":"object","required":["app_name","username","already_granted"],"title":"ConnectAuthorizeInfo"},"ConnectAuthorizeRequest":{"properties":{"client_id":{"type":"string","maxLength":64,"minLength":1,"title":"Client Id"},"redirect_uri":{"type":"string","maxLength":500,"minLength":1,"title":"Redirect Uri"},"code_challenge":{"type":"string","pattern":"^[A-Za-z0-9\\-_]{43}$","title":"Code Challenge"},"code_challenge_method":{"type":"string","const":"S256","title":"Code Challenge Method"}},"type":"object","required":["client_id","redirect_uri","code_challenge","code_challenge_method"],"title":"ConnectAuthorizeRequest"},"ConnectAuthorizeResponse":{"properties":{"code":{"type":"string","title":"Code"},"redirect_uri":{"type":"string","title":"Redirect Uri"}},"type":"object","required":["code","redirect_uri"],"title":"ConnectAuthorizeResponse"},"ConnectTokenRequest":{"properties":{"grant_type":{"type":"string","const":"authorization_code","title":"Grant Type"},"code":{"type":"string","maxLength":128,"minLength":1,"title":"Code"},"redirect_uri":{"type":"string","maxLength":500,"minLength":1,"title":"Redirect Uri"},"client_id":{"type":"string","maxLength":64,"minLength":1,"title":"Client Id"},"client_secret":{"type":"string","maxLength":128,"minLength":1,"title":"Client Secret"},"code_verifier":{"type":"string","pattern":"^[A-Za-z0-9\\-._~]{43,128}$","title":"Code Verifier"}},"type":"object","required":["grant_type","code","redirect_uri","client_id","client_secret","code_verifier"],"title":"ConnectTokenRequest"},"ConnectTokenResponse":{"properties":{"user":{"$ref":"#/components/schemas/ConnectedUser"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"}},"type":"object","required":["user","issued_at"],"title":"ConnectTokenResponse"},"ConnectedAppCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"redirect_uri":{"type":"string","maxLength":500,"minLength":1,"title":"Redirect Uri"}},"type":"object","required":["name","redirect_uri"],"title":"ConnectedAppCreate"},"ConnectedAppResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"client_id":{"type":"string","title":"Client Id"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"enabled":{"type":"boolean","title":"Enabled"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","client_id","redirect_uri","enabled","created_at"],"title":"ConnectedAppResponse"},"ConnectedAppSecretResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"client_id":{"type":"string","title":"Client Id"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"enabled":{"type":"boolean","title":"Enabled"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"client_secret":{"type":"string","title":"Client Secret"}},"type":"object","required":["id","name","client_id","redirect_uri","enabled","created_at","client_secret"],"title":"ConnectedAppSecretResponse","description":"Returned by create and rotate only: the one time the secret is shown."},"ConnectedAppUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"redirect_uri":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Redirect Uri"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"ConnectedAppUpdate"},"ConnectedUser":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"is_admin":{"type":"boolean","title":"Is Admin"},"groups":{"items":{"type":"string"},"type":"array","title":"Groups"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["id","username","is_admin","groups","permissions"],"title":"ConnectedUser"},"CostCenterBudgetUpdateRequest":{"properties":{"total_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Total Budget"},"monthly_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Monthly Budget"}},"type":"object","title":"CostCenterBudgetUpdateRequest"},"CostCenterCreateRequest":{"properties":{"name":{"type":"string","maxLength":150,"minLength":1,"title":"Name"},"total_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Total Budget"},"monthly_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Monthly Budget"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name"],"title":"CostCenterCreateRequest"},"CostCenterDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"is_private":{"type":"boolean","title":"Is Private"},"owner_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner User Id"},"is_active":{"type":"boolean","title":"Is Active"},"total_balance":{"type":"number","title":"Total Balance","default":0.0},"total_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Budget"},"monthly_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Budget"},"budget_mode":{"type":"string","title":"Budget Mode","default":"none"},"budget_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Limit"},"budget_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Used"},"budget_available":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Available"},"can_print":{"type":"boolean","title":"Can Print","default":true},"members":{"items":{"$ref":"#/components/schemas/CostCenterMemberResponse"},"type":"array","title":"Members","default":[]}},"type":"object","required":["id","name","is_private","is_active"],"title":"CostCenterDetailResponse"},"CostCenterMemberRequest":{"properties":{"user_id":{"type":"integer","title":"User Id"},"can_print":{"type":"boolean","title":"Can Print","default":true}},"type":"object","required":["user_id"],"title":"CostCenterMemberRequest"},"CostCenterMemberResponse":{"properties":{"id":{"type":"integer","title":"Id"},"cost_center_id":{"type":"integer","title":"Cost Center Id"},"user_id":{"type":"integer","title":"User Id"},"can_print":{"type":"boolean","title":"Can Print"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","cost_center_id","user_id","can_print","created_at"],"title":"CostCenterMemberResponse"},"CostCenterSummaryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"is_private":{"type":"boolean","title":"Is Private"},"owner_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner User Id"},"is_active":{"type":"boolean","title":"Is Active"},"total_balance":{"type":"number","title":"Total Balance","default":0.0},"total_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Budget"},"monthly_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Budget"},"budget_mode":{"type":"string","title":"Budget Mode","default":"none"},"budget_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Limit"},"budget_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Used"},"budget_available":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Available"},"can_print":{"type":"boolean","title":"Can Print","default":true}},"type":"object","required":["id","name","is_private","is_active"],"title":"CostCenterSummaryResponse"},"CostCenterUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":150,"minLength":1},{"type":"null"}],"title":"Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CostCenterUpdateRequest"},"CreateSpoolFromSlotRequest":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","title":"Tray Id"}},"type":"object","required":["printer_id","ams_id","tray_id"],"title":"CreateSpoolFromSlotRequest"},"DebugLoggingState":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"enabled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enabled At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["enabled"],"title":"DebugLoggingState"},"DebugLoggingToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"DebugLoggingToggle"},"DeviceRegisterRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"minLength":1,"title":"Device Id"},"hostname":{"type":"string","maxLength":100,"minLength":1,"title":"Hostname"},"ip_address":{"type":"string","maxLength":45,"minLength":1,"title":"Ip Address"},"firmware_version":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Firmware Version"},"has_nfc":{"type":"boolean","title":"Has Nfc","default":true},"has_scale":{"type":"boolean","title":"Has Scale","default":true},"tare_offset":{"type":"integer","title":"Tare Offset","default":0},"calibration_factor":{"type":"number","title":"Calibration Factor","default":1.0},"nfc_reader_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Nfc Reader Type"},"nfc_connection":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Nfc Connection"},"backend_url":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Backend Url"},"has_backlight":{"type":"boolean","title":"Has Backlight","default":false}},"type":"object","required":["device_id","hostname","ip_address"],"title":"DeviceRegisterRequest"},"DeviceResponse":{"properties":{"id":{"type":"integer","title":"Id"},"device_id":{"type":"string","title":"Device Id"},"hostname":{"type":"string","title":"Hostname"},"ip_address":{"type":"string","title":"Ip Address"},"firmware_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmware Version"},"has_nfc":{"type":"boolean","title":"Has Nfc"},"has_scale":{"type":"boolean","title":"Has Scale"},"tare_offset":{"type":"integer","title":"Tare Offset"},"calibration_factor":{"type":"number","title":"Calibration Factor"},"nfc_reader_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nfc Reader Type"},"nfc_connection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nfc Connection"},"backend_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend Url"},"display_brightness":{"type":"integer","title":"Display Brightness","default":100},"display_blank_timeout":{"type":"integer","title":"Display Blank Timeout","default":0},"has_backlight":{"type":"boolean","title":"Has Backlight","default":false},"last_calibrated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Calibrated At"},"last_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen"},"pending_command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Command"},"nfc_ok":{"type":"boolean","title":"Nfc Ok"},"scale_ok":{"type":"boolean","title":"Scale Ok"},"uptime_s":{"type":"integer","title":"Uptime S"},"update_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Status"},"update_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Message"},"system_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"System Stats"},"online":{"type":"boolean","title":"Online","default":false},"ssh_public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Public Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","device_id","hostname","ip_address","has_nfc","has_scale","tare_offset","calibration_factor","nfc_ok","scale_ok","uptime_s","created_at","updated_at"],"title":"DeviceResponse"},"DiagnosticCheck":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["id","status"],"title":"DiagnosticCheck","description":"One connection-diagnostic check result.\n\n``id`` is a stable key (port_mqtt, port_ftps, port_rtsps,\nmacos_local_network, network_mode, subnet, external_storage, mqtt_auth,\ndeveloper_mode, printer_publishing); the frontend renders the localized\ntitle and fix text from id + status. ``params`` carries interpolation\nvalues (e.g. network mode, IP addresses) for that text.\n\nNot every check is emitted on every run: ``macos_local_network`` appears\nonly on macOS, where it is the only platform it can say anything about."},"DiagnosticRequest":{"properties":{"ip_address":{"type":"string","title":"Ip Address"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"access_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Code"}},"type":"object","required":["ip_address"],"title":"DiagnosticRequest","description":"Pre-save (Add Printer) connection diagnostic request.\n\nserial_number + access_code are optional: when both are present the\ndiagnostic also probes MQTT credentials, otherwise only the\nnetwork-level checks run."},"DiagnosticResultRequest":{"properties":{"diagnostic":{"type":"string","maxLength":50,"title":"Diagnostic","description":"Diagnostic type: 'nfc', 'scale', or 'read_tag'"},"success":{"type":"boolean","title":"Success"},"output":{"type":"string","maxLength":10000,"title":"Output"},"exit_code":{"type":"integer","maximum":255.0,"minimum":-255.0,"title":"Exit Code"}},"type":"object","required":["diagnostic","success","output","exit_code"],"title":"DiagnosticResultRequest"},"DiscoveredPrinterResponse":{"properties":{"serial":{"type":"string","title":"Serial"},"name":{"type":"string","title":"Name"},"ip_address":{"type":"string","title":"Ip Address"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"discovered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovered At"}},"type":"object","required":["serial","name","ip_address"],"title":"DiscoveredPrinterResponse","description":"Discovered printer response."},"DiscoveredTasmotaDevice":{"properties":{"ip_address":{"type":"string","title":"Ip Address"},"name":{"type":"string","title":"Name"},"module":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Module"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"discovered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovered At"}},"type":"object","required":["ip_address","name"],"title":"DiscoveredTasmotaDevice","description":"Discovered Tasmota device."},"DiscoveryInfo":{"properties":{"is_docker":{"type":"boolean","title":"Is Docker"},"ssdp_running":{"type":"boolean","title":"Ssdp Running"},"scan_running":{"type":"boolean","title":"Scan Running"},"subnets":{"items":{"type":"string"},"type":"array","title":"Subnets","default":[]}},"type":"object","required":["is_docker","ssdp_running","scan_running"],"title":"DiscoveryInfo","description":"Discovery environment info."},"DiscoveryStatus":{"properties":{"running":{"type":"boolean","title":"Running"}},"type":"object","required":["running"],"title":"DiscoveryStatus","description":"Discovery status response."},"DisplaySettingsRequest":{"properties":{"brightness":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Brightness"},"blank_timeout":{"type":"integer","minimum":0.0,"title":"Blank Timeout"}},"type":"object","required":["brightness","blank_timeout"],"title":"DisplaySettingsRequest"},"ElectricityPriceUpdate":{"properties":{"energy_cost_per_kwh":{"type":"number","minimum":0.0,"title":"Energy Cost Per Kwh"}},"type":"object","required":["energy_cost_per_kwh"],"title":"ElectricityPriceUpdate","description":"Payload for ``POST /settings/electricity-price`` (#1356).\n\nMirrors the field name documented in ``wiki/features/energy.md`` so the\nHome Assistant ``rest_command`` example needs only a URL change, not a\npayload change. Plain non-negative float; tariffs can go as low as 0.0 in\nsome markets (e.g. free hours)."},"EligibilityIssueResponse":{"properties":{"kind":{"type":"string","enum":["printer_not_set","printer_not_found","printer_disabled","printer_offline","filament_type_mismatch","filament_color_mismatch","ams_slot_missing","filament_unverified","no_class_matches","class_not_set"],"title":"Kind"},"slot_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Index"},"expected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected"},"actual":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual"}},"type":"object","required":["kind"],"title":"EligibilityIssueResponse","description":"Single eligibility issue — see ``services/pipeline_eligibility.py`` for\nthe full list of ``kind`` values and what each means."},"EligibilityReportResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"target_kind":{"type":"string","enum":["specific_printer","printer_class"],"title":"Target Kind","default":"specific_printer"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"target_printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Printer Name"},"target_model_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model Class"},"issues":{"items":{"$ref":"#/components/schemas/EligibilityIssueResponse"},"type":"array","title":"Issues","default":[]},"printer_reports":{"items":{"$ref":"#/components/schemas/PerPrinterReport"},"type":"array","title":"Printer Reports","default":[]}},"type":"object","required":["ok"],"title":"EligibilityReportResponse","description":"Returned by both ``POST /check-eligibility`` and (on 409) ``POST /run``\nso the frontend can render the same modal in either flow.\n\n``ok`` semantics:\n  - ``target_kind='specific_printer'``: ``ok`` mirrors that single\n    printer's eligibility (no blocking issues).\n  - ``target_kind='printer_class'``: ``ok`` is True iff **at least one**\n    matching printer passes — the run can dispatch even if some\n    candidates in the class are offline / filament-mismatched, because\n    the scheduler will pick any eligible one. The per-printer list lives\n    on ``printer_reports`` so the operator sees the full picture.\n\n``issues`` carries class-level issues only (``no_class_matches``,\n``class_not_set``) — per-printer detail moves to ``printer_reports``."},"EmailOTPDisableRequest":{"properties":{"password":{"type":"string","maxLength":256,"title":"Password"}},"type":"object","required":["password"],"title":"EmailOTPDisableRequest","description":"Requires the account password to disable email OTP."},"EmailOTPEnableConfirmRequest":{"properties":{"setup_token":{"type":"string","maxLength":128,"title":"Setup Token"},"code":{"type":"string","maxLength":6,"minLength":6,"title":"Code"}},"type":"object","required":["setup_token","code"],"title":"EmailOTPEnableConfirmRequest","description":"Body for the second step of email OTP enable: verify the proof-of-possession code."},"EmailOTPSendRequest":{"properties":{"pre_auth_token":{"type":"string","maxLength":128,"title":"Pre Auth Token"}},"type":"object","required":["pre_auth_token"],"title":"EmailOTPSendRequest"},"EmptyTrashResponse":{"properties":{"deleted":{"type":"integer","title":"Deleted"}},"type":"object","required":["deleted"],"title":"EmptyTrashResponse"},"EncryptionRowCounts":{"properties":{"oidc_providers":{"type":"integer","title":"Oidc Providers"},"user_totp":{"type":"integer","title":"User Totp"}},"type":"object","required":["oidc_providers","user_totp"],"title":"EncryptionRowCounts"},"EncryptionStatusResponse":{"properties":{"key_configured":{"type":"boolean","title":"Key Configured"},"key_source":{"type":"string","enum":["env","file","generated","none"],"title":"Key Source"},"legacy_plaintext_rows":{"$ref":"#/components/schemas/EncryptionRowCounts"},"encrypted_rows":{"$ref":"#/components/schemas/EncryptionRowCounts"},"decryption_broken":{"type":"boolean","title":"Decryption Broken","default":false},"migration_error_count":{"type":"integer","title":"Migration Error Count","default":0}},"type":"object","required":["key_configured","key_source","legacy_plaintext_rows","encrypted_rows"],"title":"EncryptionStatusResponse"},"EventVariablesResponse":{"properties":{"event_type":{"type":"string","title":"Event Type"},"event_name":{"type":"string","title":"Event Name"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"},"supports_photo":{"type":"boolean","title":"Supports Photo","default":false}},"type":"object","required":["event_type","event_name","variables"],"title":"EventVariablesResponse","description":"Response for available variables per event type."},"ExternalCameraTestRequest":{"properties":{"url":{"type":"string","title":"Url"},"camera_type":{"type":"string","title":"Camera Type"}},"type":"object","required":["url","camera_type"],"title":"ExternalCameraTestRequest"},"ExternalFolderCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"external_path":{"type":"string","maxLength":500,"minLength":1,"title":"External Path"},"readonly":{"type":"boolean","title":"Readonly","default":true},"show_hidden":{"type":"boolean","title":"Show Hidden","default":false},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["name","external_path"],"title":"ExternalFolderCreate","description":"Schema for linking an external folder."},"ExternalLinkBadgeSet":{"properties":{"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url","description":"The app's address, as the link has it"},"count":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Count"}},"type":"object","required":["url","count"],"title":"ExternalLinkBadgeSet","description":"An app's count for the sidebar link pointing at it."},"ExternalLinkCreate":{"properties":{"name":{"type":"string","maxLength":50,"minLength":1,"title":"Name","description":"Display name for the link"},"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url","description":"External URL"},"icon":{"type":"string","maxLength":50,"title":"Icon","description":"Lucide icon name","default":"link"},"open_in_new_tab":{"type":"boolean","title":"Open In New Tab","default":false}},"type":"object","required":["name","url"],"title":"ExternalLinkCreate","description":"Schema for creating an external link."},"ExternalLinkReorder":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids","description":"List of link IDs in desired order"}},"type":"object","required":["ids"],"title":"ExternalLinkReorder","description":"Schema for reordering external links."},"ExternalLinkResponse":{"properties":{"name":{"type":"string","maxLength":50,"minLength":1,"title":"Name","description":"Display name for the link"},"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url","description":"External URL"},"icon":{"type":"string","maxLength":50,"title":"Icon","description":"Lucide icon name","default":"link"},"open_in_new_tab":{"type":"boolean","title":"Open In New Tab"},"id":{"type":"integer","title":"Id"},"custom_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Icon"},"sort_order":{"type":"integer","title":"Sort Order"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"badge_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Badge Count"}},"type":"object","required":["name","url","open_in_new_tab","id","sort_order","created_at","updated_at"],"title":"ExternalLinkResponse","description":"Response schema for external links."},"ExternalLinkUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Url"},"icon":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Icon"},"open_in_new_tab":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Open In New Tab"}},"type":"object","title":"ExternalLinkUpdate","description":"Schema for updating an external link (all fields optional)."},"ExtruderSlotResponse":{"properties":{"ams_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ams Id"},"slot_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Id"},"has_filament":{"type":"boolean","title":"Has Filament","default":false}},"type":"object","title":"ExtruderSlotResponse","description":"Which AMS slot one hotend is currently fed from.\n\nFrom ``device.extruder.info[i].snow``. Needed because ``tray_now`` is a\nsingle printer-wide value: on a dual-nozzle machine with both hotends\nloaded it names only one of them, so it cannot say which hotend holds a\ngiven slot."},"FilaSwitchResponse":{"properties":{"installed":{"type":"boolean","title":"Installed","default":false},"in_slots":{"items":{"type":"integer"},"type":"array","title":"In Slots","default":[]},"out_extruders":{"items":{"type":"integer"},"type":"array","title":"Out Extruders","default":[]},"stat":{"type":"integer","title":"Stat","default":0},"info":{"type":"integer","title":"Info","default":0},"ready":{"type":"boolean","title":"Ready","default":false}},"type":"object","title":"FilaSwitchResponse","description":"Filament Track Switch (FTS) state — accessory that mediates AMS-to-extruder routing.\n\nWhen installed, the AMS info field reports bits 8-11 = 0xE (uninitialized)\nbecause slots are dynamically routed via the FTS rather than tied to a\nspecific extruder. Frontend uses `installed` to suppress the per-extruder\nslot filter in the print modal. See #1162."},"FilamentCostCalculation":{"properties":{"filament_id":{"type":"integer","title":"Filament Id"},"filament_name":{"type":"string","title":"Filament Name"},"weight_grams":{"type":"number","title":"Weight Grams"},"cost":{"type":"number","title":"Cost"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["filament_id","filament_name","weight_grams","cost","currency"],"title":"FilamentCostCalculation"},"FilamentCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"type":{"type":"string","maxLength":50,"minLength":1,"title":"Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"color_hex":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Color Hex"},"cost_per_kg":{"type":"number","title":"Cost Per Kg","default":25.0},"spool_weight_g":{"type":"number","title":"Spool Weight G","default":1000.0},"currency":{"type":"string","title":"Currency","default":"USD"},"density":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Density"},"print_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Min"},"print_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Max"},"bed_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Min"},"bed_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Max"}},"type":"object","required":["name","type"],"title":"FilamentCreate"},"FilamentPolicyBrief":{"properties":{"group":{"type":"string","title":"Group"},"mode":{"type":"string","enum":["allow","block"],"title":"Mode"},"rules":{"items":{"$ref":"#/components/schemas/FilamentRuleSchema"},"type":"array","title":"Rules","default":[]}},"type":"object","required":["group","mode"],"title":"FilamentPolicyBrief","description":"One restricted group's filament rules, as the print dialog applies them (#3522)."},"FilamentProfileDefaultResponse":{"properties":{"brand":{"type":"string","maxLength":100,"title":"Brand","default":""},"material":{"type":"string","maxLength":50,"minLength":1,"title":"Material"},"subtype":{"type":"string","maxLength":50,"title":"Subtype","default":""},"color_name":{"type":"string","maxLength":100,"title":"Color Name","default":""},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"},"presets":{"items":{"$ref":"#/components/schemas/SpoolFilamentPresetBase"},"type":"array","title":"Presets"},"k_profiles":{"items":{"$ref":"#/components/schemas/SpoolKProfileBase"},"type":"array","title":"K Profiles"},"id":{"type":"integer","title":"Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["material","id","updated_at"],"title":"FilamentProfileDefaultResponse"},"FilamentProfileDefaultWrite":{"properties":{"brand":{"type":"string","maxLength":100,"title":"Brand","default":""},"material":{"type":"string","maxLength":50,"minLength":1,"title":"Material"},"subtype":{"type":"string","maxLength":50,"title":"Subtype","default":""},"color_name":{"type":"string","maxLength":100,"title":"Color Name","default":""},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"},"presets":{"items":{"$ref":"#/components/schemas/SpoolFilamentPresetBase"},"type":"array","title":"Presets"},"k_profiles":{"items":{"$ref":"#/components/schemas/SpoolKProfileBase"},"type":"array","title":"K Profiles"}},"type":"object","required":["material"],"title":"FilamentProfileDefaultWrite","description":"Everything a spool form's Printers tab holds, plus the spool's own preset."},"FilamentResponse":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"type":{"type":"string","maxLength":50,"minLength":1,"title":"Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"color_hex":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Color Hex"},"cost_per_kg":{"type":"number","title":"Cost Per Kg","default":25.0},"spool_weight_g":{"type":"number","title":"Spool Weight G","default":1000.0},"currency":{"type":"string","title":"Currency","default":"USD"},"density":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Density"},"print_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Min"},"print_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Max"},"bed_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Min"},"bed_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Max"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","type","id","created_at","updated_at"],"title":"FilamentResponse"},"FilamentRuleSchema":{"properties":{"match":{"type":"string","enum":["material","filament_id"],"title":"Match"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value"}},"type":"object","required":["match","value"],"title":"FilamentRuleSchema","description":"One filament rule of a group (#3522): a material type or a slicer filament id."},"FilamentSkuSettingsResponse":{"properties":{"id":{"type":"integer","title":"Id"},"material":{"type":"string","title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"lead_time_days":{"type":"integer","title":"Lead Time Days"},"safety_margin_value":{"type":"integer","title":"Safety Margin Value"},"safety_margin_unit":{"type":"string","title":"Safety Margin Unit"},"alerts_snoozed":{"type":"boolean","title":"Alerts Snoozed","default":false}},"type":"object","required":["id","material","subtype","brand","color_name","lead_time_days","safety_margin_value","safety_margin_unit"],"title":"FilamentSkuSettingsResponse"},"FilamentSkuSettingsUpsert":{"properties":{"material":{"type":"string","title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"lead_time_days":{"type":"integer","title":"Lead Time Days","default":0},"safety_margin_value":{"type":"integer","title":"Safety Margin Value","default":14},"safety_margin_unit":{"type":"string","title":"Safety Margin Unit","default":"days"},"alerts_snoozed":{"type":"boolean","title":"Alerts Snoozed","default":false}},"type":"object","required":["material"],"title":"FilamentSkuSettingsUpsert"},"FilamentUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Hex"},"cost_per_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Kg"},"spool_weight_g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spool Weight G"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"density":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Density"},"print_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Min"},"print_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Temp Max"},"bed_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Min"},"bed_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Temp Max"}},"type":"object","title":"FilamentUpdate"},"FileDuplicate":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"folder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","filename","folder_id","folder_name","created_at"],"title":"FileDuplicate","description":"Reference to a duplicate file."},"FileListResponse":{"properties":{"id":{"type":"integer","title":"Id"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"is_external":{"type":"boolean","title":"Is External","default":false},"filename":{"type":"string","title":"Filename"},"file_type":{"type":"string","title":"File Type"},"file_size":{"type":"integer","title":"File Size"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"print_count":{"type":"integer","title":"Print Count"},"duplicate_count":{"type":"integer","title":"Duplicate Count","default":0},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"fs_modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fs Modified At"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"print_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time Seconds"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"sliced_for_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sliced For Model"},"tags":{"items":{"$ref":"#/components/schemas/TagSummary"},"type":"array","title":"Tags","default":[]},"variant_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Variant Group Id"},"variant_count":{"type":"integer","title":"Variant Count","default":0},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"has_notes":{"type":"boolean","title":"Has Notes","default":false},"photo_count":{"type":"integer","title":"Photo Count","default":0}},"type":"object","required":["id","folder_id","filename","file_type","file_size","thumbnail_path","print_count","created_at"],"title":"FileListResponse","description":"Schema for file list item (lighter than full response)."},"FileMoveRequest":{"properties":{"file_ids":{"items":{"type":"integer"},"type":"array","title":"File Ids"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["file_ids"],"title":"FileMoveRequest","description":"Schema for moving files to a folder."},"FileResponse":{"properties":{"id":{"type":"integer","title":"Id"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"folder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Name"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"is_external":{"type":"boolean","title":"Is External","default":false},"filename":{"type":"string","title":"Filename"},"file_path":{"type":"string","title":"File Path"},"file_type":{"type":"string","title":"File Type"},"file_size":{"type":"integer","title":"File Size"},"file_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Hash"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"print_count":{"type":"integer","title":"Print Count"},"last_printed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Printed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"photos":{"items":{"type":"string"},"type":"array","title":"Photos","default":[]},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"duplicates":{"anyOf":[{"items":{"$ref":"#/components/schemas/FileDuplicate"},"type":"array"},{"type":"null"}],"title":"Duplicates"},"duplicate_count":{"type":"integer","title":"Duplicate Count","default":0},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"print_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time Seconds"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"sliced_for_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sliced For Model"}},"type":"object","required":["id","folder_id","project_id","filename","file_path","file_type","file_size","file_hash","thumbnail_path","metadata","print_count","last_printed_at","notes","created_at","updated_at"],"title":"FileResponse","description":"Schema for file response."},"FileUpdate":{"properties":{"filename":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"external_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"External Url"}},"type":"object","title":"FileUpdate","description":"Schema for updating a file."},"FileUploadResponse":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"file_type":{"type":"string","title":"File Type"},"file_size":{"type":"integer","title":"File Size"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"duplicate_of":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duplicate Of"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["id","filename","file_type","file_size","thumbnail_path"],"title":"FileUploadResponse","description":"Schema for file upload response."},"FirmwareUploadPrepareResponse":{"properties":{"can_proceed":{"type":"boolean","title":"Can Proceed"},"sd_card_present":{"type":"boolean","title":"Sd Card Present"},"sd_card_free_space":{"type":"integer","title":"Sd Card Free Space","description":"Free space in bytes, -1 if unknown","default":-1},"firmware_size":{"type":"integer","title":"Firmware Size","description":"Estimated firmware size in bytes","default":0},"space_sufficient":{"type":"boolean","title":"Space Sufficient"},"update_available":{"type":"boolean","title":"Update Available"},"current_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version"},"latest_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Version"},"target_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Version"},"firmware_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmware Filename"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["can_proceed","sd_card_present","space_sufficient","update_available"],"title":"FirmwareUploadPrepareResponse","description":"Response from firmware upload preparation check."},"FirmwareUploadStartResponse":{"properties":{"started":{"type":"boolean","title":"Started"},"message":{"type":"string","title":"Message"}},"type":"object","required":["started","message"],"title":"FirmwareUploadStartResponse","description":"Response when starting a firmware upload."},"FirmwareUploadStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"progress":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Progress","default":0},"message":{"type":"string","title":"Message","default":""},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"firmware_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmware Filename"},"firmware_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmware Version"}},"type":"object","required":["status"],"title":"FirmwareUploadStatusResponse","description":"Response containing firmware upload status."},"FolderCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"}},"type":"object","required":["name"],"title":"FolderCreate","description":"Schema for creating a new folder."},"FolderReadmeResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"content":{"type":"string","title":"Content"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["filename","content","truncated"],"title":"FolderReadmeResponse","description":"Markdown sidebar payload for a folder (#1268).\n\n``filename`` is the on-disk name (so the UI can show \"README.md\") and\n``content`` is the raw markdown — the FE renders it. ``truncated`` is\nTrue when the source file was clipped at the size cap."},"FolderResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"archive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Name"},"is_external":{"type":"boolean","title":"Is External","default":false},"external_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Path"},"external_readonly":{"type":"boolean","title":"External Readonly","default":false},"external_show_hidden":{"type":"boolean","title":"External Show Hidden","default":false},"file_count":{"type":"integer","title":"File Count","default":0},"latest_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Activity At"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"shared":{"type":"boolean","title":"Shared","default":false},"can_write":{"type":"boolean","title":"Can Write","default":true},"can_rename":{"type":"boolean","title":"Can Rename","default":true},"can_delete":{"type":"boolean","title":"Can Delete","default":true},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","parent_id","created_at","updated_at"],"title":"FolderResponse","description":"Schema for folder response."},"FolderTreeItem":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"archive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Name"},"is_external":{"type":"boolean","title":"Is External","default":false},"external_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Path"},"external_readonly":{"type":"boolean","title":"External Readonly","default":false},"file_count":{"type":"integer","title":"File Count","default":0},"latest_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Activity At"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"shared":{"type":"boolean","title":"Shared","default":false},"can_write":{"type":"boolean","title":"Can Write","default":true},"can_rename":{"type":"boolean","title":"Can Rename","default":true},"can_delete":{"type":"boolean","title":"Can Delete","default":true},"children":{"items":{"$ref":"#/components/schemas/FolderTreeItem"},"type":"array","title":"Children","default":[]}},"type":"object","required":["id","name","parent_id"],"title":"FolderTreeItem","description":"Schema for folder tree item (includes children)."},"FolderUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shared"}},"type":"object","title":"FolderUpdate","description":"Schema for updating a folder."},"ForgotPasswordConfirmRequest":{"properties":{"token":{"type":"string","maxLength":128,"title":"Token"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ForgotPasswordConfirmRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"ForgotPasswordResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ForgotPasswordResponse"},"GitHubBackupConfigCreate":{"properties":{"repository_url":{"type":"string","maxLength":500,"minLength":1,"title":"Repository Url","description":"Git repository URL"},"access_token":{"type":"string","minLength":1,"title":"Access Token","description":"Personal Access Token"},"branch":{"type":"string","maxLength":100,"title":"Branch","description":"Branch to push to","default":"main"},"provider":{"$ref":"#/components/schemas/backend__app__schemas__github_backup__ProviderType","description":"Git hosting provider","default":"github"},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","description":"Enable scheduled backups","default":false},"schedule_type":{"$ref":"#/components/schemas/ScheduleType","description":"Schedule frequency","default":"daily"},"backup_kprofiles":{"type":"boolean","title":"Backup Kprofiles","description":"Backup K-profiles","default":true},"backup_cloud_profiles":{"type":"boolean","title":"Backup Cloud Profiles","description":"Backup Bambu Cloud profiles","default":true},"backup_settings":{"type":"boolean","title":"Backup Settings","description":"Backup app settings","default":false},"backup_spools":{"type":"boolean","title":"Backup Spools","description":"Backup spool inventory","default":false},"backup_archives":{"type":"boolean","title":"Backup Archives","description":"Backup print archive history","default":false},"allow_insecure_http":{"type":"boolean","title":"Allow Insecure Http","description":"Allow HTTP (non-TLS) repository URLs","default":false},"enabled":{"type":"boolean","title":"Enabled","description":"Enable backup feature","default":true}},"type":"object","required":["repository_url","access_token"],"title":"GitHubBackupConfigCreate","description":"Schema for creating/updating GitHub backup config."},"GitHubBackupConfigResponse":{"properties":{"id":{"type":"integer","title":"Id"},"repository_url":{"type":"string","title":"Repository Url"},"has_token":{"type":"boolean","title":"Has Token","description":"Whether an access token is configured"},"branch":{"type":"string","title":"Branch"},"provider":{"type":"string","title":"Provider"},"allow_insecure_http":{"type":"boolean","title":"Allow Insecure Http"},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled"},"schedule_type":{"type":"string","title":"Schedule Type"},"backup_kprofiles":{"type":"boolean","title":"Backup Kprofiles"},"backup_cloud_profiles":{"type":"boolean","title":"Backup Cloud Profiles"},"backup_settings":{"type":"boolean","title":"Backup Settings"},"backup_spools":{"type":"boolean","title":"Backup Spools"},"backup_archives":{"type":"boolean","title":"Backup Archives"},"enabled":{"type":"boolean","title":"Enabled"},"last_backup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Backup At"},"last_backup_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Backup Status"},"last_backup_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Backup Message"},"last_backup_commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Backup Commit Sha"},"next_scheduled_run":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Scheduled Run"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","repository_url","has_token","branch","provider","allow_insecure_http","schedule_enabled","schedule_type","backup_kprofiles","backup_cloud_profiles","backup_settings","backup_spools","backup_archives","enabled","last_backup_at","last_backup_status","last_backup_message","last_backup_commit_sha","next_scheduled_run","created_at","updated_at"],"title":"GitHubBackupConfigResponse","description":"Schema for GitHub backup config API response."},"GitHubBackupConfigUpdate":{"properties":{"repository_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Repository Url"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"branch":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Branch"},"provider":{"anyOf":[{"$ref":"#/components/schemas/backend__app__schemas__github_backup__ProviderType"},{"type":"null"}]},"schedule_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Enabled"},"schedule_type":{"anyOf":[{"$ref":"#/components/schemas/ScheduleType"},{"type":"null"}]},"backup_kprofiles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Backup Kprofiles"},"backup_cloud_profiles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Backup Cloud Profiles"},"backup_settings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Backup Settings"},"backup_spools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Backup Spools"},"backup_archives":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Backup Archives"},"allow_insecure_http":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Insecure Http"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"GitHubBackupConfigUpdate","description":"Schema for updating GitHub backup config (all fields optional)."},"GitHubBackupLogResponse":{"properties":{"id":{"type":"integer","title":"Id"},"config_id":{"type":"integer","title":"Config Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"status":{"type":"string","title":"Status"},"trigger":{"type":"string","title":"Trigger"},"commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Sha"},"files_changed":{"type":"integer","title":"Files Changed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["id","config_id","started_at","completed_at","status","trigger","commit_sha","files_changed","error_message"],"title":"GitHubBackupLogResponse","description":"Schema for backup log API response."},"GitHubBackupStatus":{"properties":{"configured":{"type":"boolean","title":"Configured","description":"Whether backup is configured"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether backup is enabled"},"is_running":{"type":"boolean","title":"Is Running","description":"Whether a backup is currently running"},"restore_running":{"type":"boolean","title":"Restore Running","description":"Whether a restore is currently running","default":false},"progress":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress","description":"Current backup progress message"},"last_backup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Backup At"},"last_backup_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Backup Status"},"next_scheduled_run":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Scheduled Run"}},"type":"object","required":["configured","enabled","is_running","last_backup_at","last_backup_status","next_scheduled_run"],"title":"GitHubBackupStatus","description":"Schema for current backup status."},"GitHubBackupTriggerResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"log_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Id"},"commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Sha"},"files_changed":{"type":"integer","title":"Files Changed","default":0}},"type":"object","required":["success","message"],"title":"GitHubBackupTriggerResponse","description":"Schema for manual backup trigger response."},"GitHubCommitInfo":{"properties":{"sha":{"type":"string","title":"Sha"},"message":{"type":"string","title":"Message"},"author":{"type":"string","title":"Author"},"date":{"type":"string","title":"Date"}},"type":"object","required":["sha","message","author","date"],"title":"GitHubCommitInfo","description":"One commit in the backup repository."},"GitHubCommitListResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"branch":{"type":"string","title":"Branch"},"commits":{"items":{"$ref":"#/components/schemas/GitHubCommitInfo"},"type":"array","title":"Commits"}},"type":"object","required":["success","message","branch"],"title":"GitHubCommitListResponse","description":"Schema for the commit picker."},"GitHubRestoreCategoryResult":{"properties":{"restored":{"type":"integer","title":"Restored","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"failed":{"type":"integer","title":"Failed","default":0},"notes":{"items":{"$ref":"#/components/schemas/GitHubRestoreNote"},"type":"array","title":"Notes"}},"type":"object","title":"GitHubRestoreCategoryResult","description":"Per-category outcome of a restore."},"GitHubRestoreNote":{"properties":{"code":{"type":"string","title":"Code","description":"Key under backup.restoreFromGit.notes"},"params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Params","description":"Interpolation values for code"},"message":{"type":"string","title":"Message","description":"English rendering, used as the client's defaultValue"}},"type":"object","required":["code","message"],"title":"GitHubRestoreNote","description":"One tally note, as a translation code plus the values it interpolates.\n\nFollows the ``backup.pathCheck`` contract already in use one card down in the\nsame component: the server chooses the code and supplies typed params, and\nthe client renders ``t(`...${code}`, { ...params, defaultValue: message })``.\n``message`` is the English original, so a client that does not know a code\nyet still shows something sensible rather than the raw key."},"GitHubRestorePreview":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"ref":{"type":"string","title":"Ref","description":"The concrete commit SHA that was inspected"},"commit":{"anyOf":[{"$ref":"#/components/schemas/GitHubCommitInfo"},{"type":"null"}]},"metadata_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Version","description":"version field from backup_metadata.json"},"categories":{"items":{"$ref":"#/components/schemas/GitHubRestorePreviewCategory"},"type":"array","title":"Categories"}},"type":"object","required":["success","message","ref"],"title":"GitHubRestorePreview","description":"Schema for inspecting a commit before restoring from it."},"GitHubRestorePreviewCategory":{"properties":{"category":{"$ref":"#/components/schemas/RestoreCategory"},"available":{"type":"boolean","title":"Available","description":"Whether this category is present in the commit"},"item_count":{"type":"integer","title":"Item Count","description":"Rows/profiles found, 0 when unavailable","default":0},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Why unavailable, or extra context, in English"},"detail_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail Code","description":"Key under backup.restoreFromGit.details, for the client to translate"},"detail_params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Detail Params","description":"Interpolation values for detail_code"}},"type":"object","required":["category","available"],"title":"GitHubRestorePreviewCategory","description":"What a single category looks like inside one backup commit."},"GitHubRestoreRequest":{"properties":{"ref":{"type":"string","pattern":"^(?:HEAD|[0-9a-fA-F]{7,40})$","title":"Ref","description":"Commit SHA to restore from, or HEAD","default":"HEAD"},"categories":{"items":{"$ref":"#/components/schemas/RestoreCategory"},"type":"array","minItems":1,"title":"Categories","description":"Categories to restore"},"overwrite_existing":{"type":"boolean","title":"Overwrite Existing","description":"Update rows that already exist locally. When false, only missing rows are inserted.","default":false}},"type":"object","required":["categories"],"title":"GitHubRestoreRequest","description":"Schema for triggering a restore."},"GitHubRestoreResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"log_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Id"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","description":"The concrete commit SHA restored from"},"results":{"additionalProperties":{"$ref":"#/components/schemas/GitHubRestoreCategoryResult"},"type":"object","title":"Results"}},"type":"object","required":["success","message"],"title":"GitHubRestoreResponse","description":"Schema for the restore result."},"GitHubTestConnectionRequest":{"properties":{"repo_url":{"type":"string","maxLength":500,"minLength":1,"title":"Repo Url","description":"Repository URL"},"token":{"type":"string","minLength":1,"title":"Token","description":"Personal Access Token"},"provider":{"$ref":"#/components/schemas/backend__app__schemas__github_backup__ProviderType","description":"Git provider key","default":"github"}},"type":"object","required":["repo_url","token"],"title":"GitHubTestConnectionRequest","description":"Credentials to test before they are saved."},"GitHubTestConnectionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"repo_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Name"},"permissions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Permissions"},"is_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Private"}},"type":"object","required":["success","message"],"title":"GitHubTestConnectionResponse","description":"Schema for test connection response."},"GroupBrief":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"GroupBrief","description":"Brief group info for embedding in user responses."},"GroupCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]},"restrict_printers":{"type":"boolean","title":"Restrict Printers","default":false},"printer_ids":{"items":{"type":"integer"},"type":"array","title":"Printer Ids","default":[]},"locations":{"items":{"type":"string"},"type":"array","title":"Locations","default":[]},"restrict_filaments":{"type":"boolean","title":"Restrict Filaments","default":false},"filament_rule_mode":{"type":"string","enum":["allow","block"],"title":"Filament Rule Mode","default":"block"},"filament_rules":{"items":{"$ref":"#/components/schemas/FilamentRuleSchema"},"type":"array","title":"Filament Rules","default":[]}},"type":"object","required":["name"],"title":"GroupCreate","description":"Schema for creating a new group."},"GroupDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"is_system":{"type":"boolean","title":"Is System"},"restrict_printers":{"type":"boolean","title":"Restrict Printers","default":false},"printer_ids":{"items":{"type":"integer"},"type":"array","title":"Printer Ids","default":[]},"locations":{"items":{"type":"string"},"type":"array","title":"Locations","default":[]},"restrict_filaments":{"type":"boolean","title":"Restrict Filaments","default":false},"filament_rule_mode":{"type":"string","enum":["allow","block"],"title":"Filament Rule Mode","default":"block"},"filament_rules":{"items":{"$ref":"#/components/schemas/FilamentRuleSchema"},"type":"array","title":"Filament Rules","default":[]},"user_count":{"type":"integer","title":"User Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"users":{"items":{"$ref":"#/components/schemas/UserBrief"},"type":"array","title":"Users","default":[]}},"type":"object","required":["id","name","description","permissions","is_system","created_at","updated_at"],"title":"GroupDetailResponse","description":"Schema for detailed group response including users."},"GroupResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"is_system":{"type":"boolean","title":"Is System"},"restrict_printers":{"type":"boolean","title":"Restrict Printers","default":false},"printer_ids":{"items":{"type":"integer"},"type":"array","title":"Printer Ids","default":[]},"locations":{"items":{"type":"string"},"type":"array","title":"Locations","default":[]},"restrict_filaments":{"type":"boolean","title":"Restrict Filaments","default":false},"filament_rule_mode":{"type":"string","enum":["allow","block"],"title":"Filament Rule Mode","default":"block"},"filament_rules":{"items":{"$ref":"#/components/schemas/FilamentRuleSchema"},"type":"array","title":"Filament Rules","default":[]},"user_count":{"type":"integer","title":"User Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","permissions","is_system","created_at","updated_at"],"title":"GroupResponse","description":"Schema for group response."},"GroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"},"restrict_printers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restrict Printers"},"printer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Printer Ids"},"locations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Locations"},"restrict_filaments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restrict Filaments"},"filament_rule_mode":{"anyOf":[{"type":"string","enum":["allow","block"]},{"type":"null"}],"title":"Filament Rule Mode"},"filament_rules":{"anyOf":[{"items":{"$ref":"#/components/schemas/FilamentRuleSchema"},"type":"array"},{"type":"null"}],"title":"Filament Rules"}},"type":"object","title":"GroupUpdate","description":"Schema for updating a group."},"HADisplayEntity":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"friendly_name":{"type":"string","title":"Friendly Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"domain":{"type":"string","title":"Domain"},"device_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Class"},"unit_of_measurement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Of Measurement"}},"type":"object","required":["entity_id","friendly_name","domain"],"title":"HADisplayEntity","description":"A bindable entity, as offered by the picker."},"HAEntity":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"friendly_name":{"type":"string","title":"Friendly Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"domain":{"type":"string","title":"Domain"}},"type":"object","required":["entity_id","friendly_name","domain"],"title":"HAEntity","description":"A Home Assistant entity that can be used as a smart plug."},"HASensorEntity":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"friendly_name":{"type":"string","title":"Friendly Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"unit_of_measurement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Of Measurement"}},"type":"object","required":["entity_id","friendly_name"],"title":"HASensorEntity","description":"A Home Assistant sensor entity for energy monitoring."},"HATestConnectionRequest":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"},"token":{"type":"string","minLength":1,"title":"Token"}},"type":"object","required":["url","token"],"title":"HATestConnectionRequest","description":"Request to test Home Assistant connection."},"HATestConnectionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"HATestConnectionResponse","description":"Response from HA connection test."},"HMSErrorResponse":{"properties":{"code":{"type":"string","title":"Code"},"attr":{"type":"integer","title":"Attr","default":0},"module":{"type":"integer","title":"Module"},"severity":{"type":"integer","title":"Severity"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions","default":[]},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"full_code":{"type":"string","title":"Full Code","default":""},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["code","module","severity"],"title":"HMSErrorResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeartbeatRequest":{"properties":{"nfc_ok":{"type":"boolean","title":"Nfc Ok","default":false},"scale_ok":{"type":"boolean","title":"Scale Ok","default":false},"uptime_s":{"type":"integer","title":"Uptime S","default":0},"firmware_version":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Firmware Version"},"ip_address":{"anyOf":[{"type":"string","maxLength":45},{"type":"null"}],"title":"Ip Address"},"nfc_reader_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Nfc Reader Type"},"nfc_connection":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Nfc Connection"},"backend_url":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Backend Url"},"system_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"System Stats"}},"type":"object","title":"HeartbeatRequest"},"HeartbeatResponse":{"properties":{"pending_command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Command"},"pending_write_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending Write Payload"},"pending_system_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending System Payload"},"tare_offset":{"type":"integer","title":"Tare Offset"},"calibration_factor":{"type":"number","title":"Calibration Factor"},"display_brightness":{"type":"integer","title":"Display Brightness","default":100},"display_blank_timeout":{"type":"integer","title":"Display Blank Timeout","default":0},"ssh_public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Public Key"}},"type":"object","required":["tare_offset","calibration_factor"],"title":"HeartbeatResponse"},"HeaterHistoryPoint":{"properties":{"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"target":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target"}},"type":"object","required":["recorded_at","value","target"],"title":"HeaterHistoryPoint"},"HeaterSeries":{"properties":{"sensor_kind":{"type":"string","title":"Sensor Kind"},"data":{"items":{"$ref":"#/components/schemas/HeaterHistoryPoint"},"type":"array","title":"Data"},"min_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value"},"max_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Value"},"avg_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Value"}},"type":"object","required":["sensor_kind","data","min_value","max_value","avg_value"],"title":"HeaterSeries"},"HmsActionBody":{"properties":{"print_error":{"type":"string","maxLength":16,"minLength":8,"pattern":"^[0-9A-Fa-f]{8}([0-9A-Fa-f]{8})?$","title":"Print Error"},"action":{"type":"string","maxLength":64,"minLength":1,"title":"Action"},"job_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["print_error","action"],"title":"HmsActionBody"},"ImportPreview":{"properties":{"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"total":{"type":"integer","title":"Total"},"valid_count":{"type":"integer","title":"Valid Count"},"error_count":{"type":"integer","title":"Error Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"rows":{"items":{"$ref":"#/components/schemas/ImportRowResult"},"type":"array","title":"Rows"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]}},"type":"object","required":["columns","total","valid_count","error_count","skipped_count","rows"],"title":"ImportPreview","description":"Result of a dry-run (or the pre-write pass of a real import)."},"ImportResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"imported":{"type":"integer","title":"Imported"},"skipped":{"type":"integer","title":"Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors","default":[]}},"type":"object","required":["success","imported","skipped"],"title":"ImportResponse","description":"Result of an import operation."},"ImportResult":{"properties":{"created":{"type":"integer","title":"Created"},"skipped":{"type":"integer","title":"Skipped"},"errors":{"type":"integer","title":"Errors"},"error_rows":{"items":{"$ref":"#/components/schemas/ImportRowResult"},"type":"array","title":"Error Rows","default":[]}},"type":"object","required":["created","skipped","errors"],"title":"ImportResult","description":"Summary returned after a real (non-dry-run) import."},"ImportRowResult":{"properties":{"row_number":{"type":"integer","title":"Row Number"},"status":{"type":"string","title":"Status"},"keeps_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Keeps Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rgba"},"resolved_color":{"type":"boolean","title":"Resolved Color","default":false},"cross_material_color":{"type":"boolean","title":"Cross Material Color","default":false},"duplicate_of_existing":{"type":"boolean","title":"Duplicate Of Existing","default":false},"spool":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spool"},"supplier_ids":{"items":{"type":"integer"},"type":"array","title":"Supplier Ids","default":[]},"purchase_supplier_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Purchase Supplier Id"}},"type":"object","required":["row_number","status"],"title":"ImportRowResult","description":"Per-row outcome of a parse+validate pass.\n\n`spool` carries the validated, SpoolCreate-shaped dict for `valid` rows so\nthe route can persist without re-parsing. `resolved_color` flags rows whose\nrgba/extra_colors/effect_type were filled in from the Color Catalog rather\nthan supplied in the CSV — surfaced in the preview so the user knows a\ncolour was inferred."},"KProfile":{"properties":{"slot_id":{"type":"integer","title":"Slot Id"},"extruder_id":{"type":"integer","title":"Extruder Id","default":0},"nozzle_id":{"type":"string","title":"Nozzle Id"},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter"},"filament_id":{"type":"string","title":"Filament Id"},"name":{"type":"string","title":"Name"},"k_value":{"type":"string","title":"K Value"},"n_coef":{"type":"string","title":"N Coef","default":"0.000000"},"ams_id":{"type":"integer","title":"Ams Id","default":0},"tray_id":{"type":"integer","title":"Tray Id","default":-1},"setting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Id"}},"type":"object","required":["slot_id","nozzle_id","nozzle_diameter","filament_id","name","k_value"],"title":"KProfile","description":"A pressure advance (K) calibration profile stored on the printer."},"KProfileCreate":{"properties":{"slot_id":{"type":"integer","title":"Slot Id","default":0},"extruder_id":{"type":"integer","title":"Extruder Id","default":0},"nozzle_id":{"type":"string","title":"Nozzle Id"},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter"},"filament_id":{"type":"string","title":"Filament Id"},"name":{"type":"string","title":"Name"},"k_value":{"type":"string","title":"K Value"},"n_coef":{"type":"string","title":"N Coef","default":"0.000000"},"ams_id":{"type":"integer","title":"Ams Id","default":0},"tray_id":{"type":"integer","title":"Tray Id","default":-1},"setting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Id"}},"type":"object","required":["nozzle_id","nozzle_diameter","filament_id","name","k_value"],"title":"KProfileCreate","description":"Schema for creating/updating a K-profile."},"KProfileDelete":{"properties":{"slot_id":{"type":"integer","title":"Slot Id"},"extruder_id":{"type":"integer","title":"Extruder Id","default":0},"nozzle_id":{"type":"string","title":"Nozzle Id"},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter"},"filament_id":{"type":"string","title":"Filament Id"},"setting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Id"}},"type":"object","required":["slot_id","nozzle_id","nozzle_diameter","filament_id"],"title":"KProfileDelete","description":"Schema for deleting a K-profile."},"KProfileNote":{"properties":{"setting_id":{"type":"string","title":"Setting Id"},"note":{"type":"string","title":"Note"}},"type":"object","required":["setting_id","note"],"title":"KProfileNote","description":"Schema for K-profile notes (stored locally, not on printer)."},"KProfileNoteResponse":{"properties":{"notes":{"additionalProperties":{"type":"string"},"type":"object","title":"Notes"}},"type":"object","required":["notes"],"title":"KProfileNoteResponse","description":"Response containing notes for K-profiles."},"KProfilesResponse":{"properties":{"profiles":{"items":{"$ref":"#/components/schemas/KProfile"},"type":"array","title":"Profiles"},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter"}},"type":"object","required":["profiles","nozzle_diameter"],"title":"KProfilesResponse","description":"Response containing K-profiles from a printer."},"LDAPProvisionRequest":{"properties":{"username":{"type":"string","maxLength":150,"title":"Username"}},"type":"object","required":["username"],"title":"LDAPProvisionRequest","description":"Body for POST /auth/ldap/provision. Username is re-resolved via the\nservice-account bind, so the request only carries the directory username\nthe admin picked from the search results."},"LDAPSearchResultResponse":{"properties":{"username":{"type":"string","title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"dn":{"type":"string","title":"Dn"},"already_provisioned":{"type":"boolean","title":"Already Provisioned","default":false}},"type":"object","required":["username","dn"],"title":"LDAPSearchResultResponse","description":"One match from GET /auth/ldap/search — surfaced in the admin UI."},"LDAPTestRequest":{"properties":{"ldap_server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Server Url"},"ldap_bind_dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Bind Dn"},"ldap_bind_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Bind Password"},"ldap_search_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Search Base"},"ldap_user_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap User Filter"},"ldap_security":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ldap Security"}},"type":"object","title":"LDAPTestRequest","description":"The LDAP settings in the form, tested before they are saved.\n\nA field left out uses the saved value; an empty bind password keeps the\nsaved one."},"LabelPreviewRequest":{"properties":{"template":{"anyOf":[{"type":"string","enum":["ams_holder_74x33","ams_holder_75x55","box_40x30","box_62x29","avery_5160","avery_l7160"]},{"type":"string","const":"custom"}],"title":"Template"},"layout":{"anyOf":[{"$ref":"#/components/schemas/SheetLayoutSpec"},{"type":"null"}]},"monochrome":{"type":"boolean","title":"Monochrome","default":false},"fields":{"anyOf":[{"items":{"type":"string","enum":["brand","material","hex","name","location","material_number","temps","weight","note","added","qr","spool_id"]},"type":"array","maxItems":12},{"type":"null"}],"title":"Fields"},"spool_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Spool Id"}},"type":"object","required":["template","spool_id"],"title":"LabelPreviewRequest"},"LabelRequest":{"properties":{"template":{"anyOf":[{"type":"string","enum":["ams_holder_74x33","ams_holder_75x55","box_40x30","box_62x29","avery_5160","avery_l7160"]},{"type":"string","const":"custom"}],"title":"Template"},"layout":{"anyOf":[{"$ref":"#/components/schemas/SheetLayoutSpec"},{"type":"null"}]},"monochrome":{"type":"boolean","title":"Monochrome","default":false},"fields":{"anyOf":[{"items":{"type":"string","enum":["brand","material","hex","name","location","material_number","temps","weight","note","added","qr","spool_id"]},"type":"array","maxItems":12},{"type":"null"}],"title":"Fields"},"spool_ids":{"items":{"type":"integer","exclusiveMinimum":0.0},"type":"array","maxItems":500,"minItems":1,"title":"Spool Ids"},"starting_position":{"type":"integer","minimum":1.0,"title":"Starting Position","default":1},"format":{"type":"string","enum":["pdf","png"],"title":"Format","default":"pdf"},"dpi":{"type":"integer","enum":[203,300,600],"title":"Dpi","default":300}},"type":"object","required":["template","spool_ids"],"title":"LabelRequest"},"LabelTemplateIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"layout":{"$ref":"#/components/schemas/SheetLayoutSpec"}},"type":"object","required":["name","layout"],"title":"LabelTemplateIn","description":"Create or replace a saved template: a name and the whole layout."},"LabelTemplateResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"layout":{"$ref":"#/components/schemas/SheetLayoutResponse"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","layout","created_at","updated_at"],"title":"LabelTemplateResponse"},"LatestFirmwareInfo":{"properties":{"model_key":{"type":"string","title":"Model Key"},"version":{"type":"string","title":"Version"},"download_url":{"type":"string","title":"Download Url"},"release_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Notes"}},"type":"object","required":["model_key","version","download_url"],"title":"LatestFirmwareInfo","description":"Latest firmware version info for a model."},"LinkSpoolRequest":{"properties":{"spool_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spool Tag"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"ams_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ams Id"},"tray_id":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Tray Id"}},"type":"object","title":"LinkSpoolRequest","description":"Request to link a Spoolman spool to an AMS tag (tray_uuid or tag_uid)."},"LinkTagRequest":{"properties":{"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"tag_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Type"},"data_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Origin","default":"nfc_link"}},"type":"object","title":"LinkTagRequest"},"LinkedFolderExport":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"LinkedFolderExport","description":"Schema for exporting a linked library folder."},"LoadedSpoolPreset":{"properties":{"preset_id":{"type":"string","title":"Preset Id"},"preset_name":{"type":"string","title":"Preset Name"},"preset_source":{"type":"string","title":"Preset Source"},"tray_info_idx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Info Idx"}},"type":"object","required":["preset_id","preset_name","preset_source"],"title":"LoadedSpoolPreset","description":"The filament profile Bambuddy recorded for a slot (``slot_preset_mappings``).\n\n``tray_info_idx`` is the filament id the slot was configured with alongside\nit. The SliceModal compares it with the tray's live id the same way the\nslot card does, so a row that outlived a spool swap isn't trusted (#3216)."},"LoadedSpoolPrinter":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"ams":{"items":{"$ref":"#/components/schemas/LoadedSpoolUnit"},"type":"array","title":"Ams","default":[]},"external":{"items":{"$ref":"#/components/schemas/LoadedSpoolTray"},"type":"array","title":"External","default":[]},"external_holders":{"type":"integer","title":"External Holders","default":0}},"type":"object","required":["id","name"],"title":"LoadedSpoolPrinter"},"LoadedSpoolTray":{"properties":{"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","title":"Tray Id"},"tray_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Type"},"tray_sub_brands":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Sub Brands"},"tray_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Color"},"tray_info_idx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Info Idx"},"exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists"},"state":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"State"},"saved_preset":{"anyOf":[{"$ref":"#/components/schemas/LoadedSpoolPreset"},{"type":"null"}]}},"type":"object","required":["ams_id","tray_id"],"title":"LoadedSpoolTray","description":"One AMS slot or external holder, as the printer reports it right now."},"LoadedSpoolUnit":{"properties":{"id":{"type":"integer","title":"Id"},"is_ams_ht":{"type":"boolean","title":"Is Ams Ht"},"trays":{"items":{"$ref":"#/components/schemas/LoadedSpoolTray"},"type":"array","title":"Trays"}},"type":"object","required":["id","is_ams_ht","trays"],"title":"LoadedSpoolUnit"},"LoadedSpoolsResponse":{"properties":{"printers":{"items":{"$ref":"#/components/schemas/LoadedSpoolPrinter"},"type":"array","title":"Printers","default":[]}},"type":"object","title":"LoadedSpoolsResponse","description":"Connected printers and what is loaded in them, for the SliceModal (#3172)."},"LocalPresetCreate":{"properties":{"name":{"type":"string","title":"Name"},"preset_type":{"type":"string","title":"Preset Type"},"setting":{"additionalProperties":true,"type":"object","title":"Setting"}},"type":"object","required":["name","preset_type","setting"],"title":"LocalPresetCreate","description":"Schema for manually creating a local preset."},"LocalPresetDetail":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"preset_type":{"type":"string","title":"Preset Type"},"source":{"type":"string","title":"Source"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Vendor"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"pressure_advance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Advance"},"default_filament_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Filament Colour"},"filament_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Cost"},"filament_density":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Density"},"compatible_printers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compatible Printers"},"inherits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inherits"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"setting":{"additionalProperties":true,"type":"object","title":"Setting"}},"type":"object","required":["id","name","preset_type","source","created_at","updated_at","setting"],"title":"LocalPresetDetail","description":"Full preset detail including the resolved setting JSON."},"LocalPresetResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"preset_type":{"type":"string","title":"Preset Type"},"source":{"type":"string","title":"Source"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Vendor"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"pressure_advance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Advance"},"default_filament_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Filament Colour"},"filament_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Cost"},"filament_density":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Density"},"compatible_printers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compatible Printers"},"inherits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inherits"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","preset_type","source","created_at","updated_at"],"title":"LocalPresetResponse","description":"Local preset summary (without full setting blob)."},"LocalPresetUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"setting":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Setting"}},"type":"object","title":"LocalPresetUpdate","description":"Schema for updating a local preset."},"LocalPresetsResponse":{"properties":{"filament":{"items":{"$ref":"#/components/schemas/LocalPresetResponse"},"type":"array","title":"Filament","default":[]},"printer":{"items":{"$ref":"#/components/schemas/LocalPresetResponse"},"type":"array","title":"Printer","default":[]},"process":{"items":{"$ref":"#/components/schemas/LocalPresetResponse"},"type":"array","title":"Process","default":[]}},"type":"object","title":"LocalPresetsResponse","description":"Grouped local presets by type."},"LocationCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"identifier":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Identifier"}},"type":"object","required":["name"],"title":"LocationCreate"},"LocationHASensorCreate":{"properties":{"location_id":{"type":"integer","title":"Location Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"entity_id":{"type":"string","maxLength":255,"pattern":"^(binary_sensor|sensor)\\.[a-z0-9_]+$","title":"Entity Id"},"kind":{"type":"string","enum":["binary","numeric"],"title":"Kind","default":"binary"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"notify_on_alert":{"type":"boolean","title":"Notify On Alert","default":false},"show_on_card":{"type":"boolean","title":"Show On Card","default":true},"sort_order":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["location_id","name","entity_id"],"title":"LocationHASensorCreate"},"LocationHASensorReading":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"entity_id":{"type":"string","title":"Entity Id"},"kind":{"type":"string","title":"Kind"},"device_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"alerting":{"type":"boolean","title":"Alerting","default":false},"reachable":{"type":"boolean","title":"Reachable","default":true},"alert_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"last_changed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Changed"},"show_on_card":{"type":"boolean","title":"Show On Card","default":true}},"type":"object","required":["id","name","entity_id","kind"],"title":"LocationHASensorReading","description":"One sensor's live state, as the filament card and inventory table render it."},"LocationHASensorResponse":{"properties":{"location_id":{"type":"integer","title":"Location Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"entity_id":{"type":"string","title":"Entity Id"},"kind":{"type":"string","enum":["binary","numeric"],"title":"Kind","default":"binary"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"notify_on_alert":{"type":"boolean","title":"Notify On Alert","default":false},"show_on_card":{"type":"boolean","title":"Show On Card","default":true},"sort_order":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Sort Order","default":0},"id":{"type":"integer","title":"Id"},"last_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last State"},"last_changed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Changed"},"last_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["location_id","name","entity_id","id","created_at","updated_at"],"title":"LocationHASensorResponse"},"LocationHASensorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"entity_id":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^(binary_sensor|sensor)\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Entity Id"},"kind":{"anyOf":[{"type":"string","enum":["binary","numeric"]},{"type":"null"}],"title":"Kind"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"notify_on_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notify On Alert"},"show_on_card":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show On Card"},"sort_order":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"LocationHASensorUpdate","description":"Partial update. Validated against the merged row in the route, because\nthe per-kind rules above need fields this payload may not carry."},"LocationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"spool_count":{"type":"integer","title":"Spool Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"LocationResponse"},"LocationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"identifier":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Identifier"}},"type":"object","title":"LocationUpdate"},"LogEntry":{"properties":{"timestamp":{"type":"string","title":"Timestamp"},"level":{"type":"string","title":"Level"},"logger_name":{"type":"string","title":"Logger Name"},"message":{"type":"string","title":"Message"}},"type":"object","required":["timestamp","level","logger_name","message"],"title":"LogEntry","description":"A single parsed log entry."},"LogFinding":{"properties":{"signature_id":{"type":"string","title":"Signature Id"},"severity":{"type":"string","title":"Severity"},"category":{"type":"string","title":"Category"},"wiki_anchor":{"type":"string","title":"Wiki Anchor"},"count":{"type":"integer","title":"Count"},"first_seen":{"type":"string","title":"First Seen"},"last_seen":{"type":"string","title":"Last Seen"},"sample":{"type":"string","title":"Sample"}},"type":"object","required":["signature_id","severity","category","wiki_anchor","count","first_seen","last_seen","sample"],"title":"LogFinding","description":"An aggregated, sanitized match of one signature against the log."},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":150,"title":"Username"},"password":{"type":"string","maxLength":256,"title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"LoginResponse":{"properties":{"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"type":"null"}]},"requires_2fa":{"type":"boolean","title":"Requires 2Fa","default":false},"pre_auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Auth Token"},"two_fa_methods":{"items":{"type":"string"},"type":"array","title":"Two Fa Methods","default":[]}},"type":"object","title":"LoginResponse"},"LogsResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/LogEntry"},"type":"array","title":"Entries"},"total_in_file":{"type":"integer","title":"Total In File"},"filtered_count":{"type":"integer","title":"Filtered Count"}},"type":"object","required":["entries","total_in_file","filtered_count"],"title":"LogsResponse","description":"Response containing log entries."},"MaintenanceHistoryResponse":{"properties":{"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"integer","title":"Id"},"printer_maintenance_id":{"type":"integer","title":"Printer Maintenance Id"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"hours_at_maintenance":{"type":"number","title":"Hours At Maintenance"}},"type":"object","required":["id","printer_maintenance_id","performed_at","hours_at_maintenance"],"title":"MaintenanceHistoryResponse"},"MaintenanceLogEntryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"maintenance_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maintenance Type Id"},"maintenance_type_name":{"type":"string","title":"Maintenance Type Name"},"hours_at_maintenance":{"type":"number","title":"Hours At Maintenance"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"performed_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Performed By Id"},"performed_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performed By Username"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"}},"type":"object","required":["id","printer_id","printer_name","maintenance_type_id","maintenance_type_name","hours_at_maintenance","notes","performed_by_id","performed_by_username","performed_at"],"title":"MaintenanceLogEntryResponse","description":"One reset in a printer's maintenance log."},"MaintenanceLogPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MaintenanceLogEntryResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"MaintenanceLogPage"},"MaintenanceStatus":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"printer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Model"},"maintenance_type_id":{"type":"integer","title":"Maintenance Type Id"},"maintenance_type_name":{"type":"string","title":"Maintenance Type Name"},"maintenance_type_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Type Icon"},"maintenance_type_wiki_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Type Wiki Url"},"enabled":{"type":"boolean","title":"Enabled"},"interval_hours":{"type":"number","title":"Interval Hours"},"interval_type":{"type":"string","title":"Interval Type"},"current_hours":{"type":"number","title":"Current Hours"},"hours_since_maintenance":{"type":"number","title":"Hours Since Maintenance"},"hours_until_due":{"type":"number","title":"Hours Until Due"},"days_since_maintenance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Days Since Maintenance"},"days_until_due":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Days Until Due"},"is_due":{"type":"boolean","title":"Is Due"},"is_warning":{"type":"boolean","title":"Is Warning"},"last_performed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Performed At"}},"type":"object","required":["id","printer_id","printer_name","printer_model","maintenance_type_id","maintenance_type_name","maintenance_type_icon","maintenance_type_wiki_url","enabled","interval_hours","interval_type","current_hours","hours_since_maintenance","hours_until_due","days_since_maintenance","days_until_due","is_due","is_warning","last_performed_at"],"title":"MaintenanceStatus","description":"Maintenance status for a printer with calculated values."},"MaintenanceTypeCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_interval_hours":{"type":"number","minimum":1.0,"title":"Default Interval Hours","default":100.0},"interval_type":{"type":"string","pattern":"^(hours|days)$","title":"Interval Type","default":"hours"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"wiki_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiki Url"}},"type":"object","required":["name"],"title":"MaintenanceTypeCreate"},"MaintenanceTypeResponse":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_interval_hours":{"type":"number","minimum":1.0,"title":"Default Interval Hours","default":100.0},"interval_type":{"type":"string","pattern":"^(hours|days)$","title":"Interval Type","default":"hours"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"wiki_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiki Url"},"id":{"type":"integer","title":"Id"},"is_system":{"type":"boolean","title":"Is System"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","id","is_system","created_at"],"title":"MaintenanceTypeResponse"},"MaintenanceTypeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_interval_hours":{"anyOf":[{"type":"number","minimum":1.0},{"type":"null"}],"title":"Default Interval Hours"},"interval_type":{"anyOf":[{"type":"string","pattern":"^(hours|days)$"},{"type":"null"}],"title":"Interval Type"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"wiki_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiki Url"}},"type":"object","title":"MaintenanceTypeUpdate"},"MakerWorldImportRequest":{"properties":{"model_id":{"type":"integer","title":"Model Id","description":"The MakerWorld design ID (the number in /models/{id})."},"source_type":{"type":"string","title":"Source Type","description":"Which registered model provider owns the resource. Import identifies a model by numeric id rather than URL, so there is no URL for the provider registry to route on — the caller names the provider instead. Defaults to 'makerworld' so existing callers stay unchanged.","default":"makerworld"},"profile_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id","description":"The profileId of the selected instance (plate configuration). Each instance in `/design/{id}/instances` carries a `profileId` field — the frontend forwards the picked one here. If omitted, the backend falls back to the first available instance of the model."},"instance_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Instance Id","description":"Retained for backwards compatibility; no longer used by the download flow."},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id","description":"Target library folder; null = root"}},"type":"object","required":["model_id"],"title":"MakerWorldImportRequest","description":"Body for POST /makerworld/import."},"MakerWorldImportResponse":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"filename":{"type":"string","title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id","description":"Folder the file was saved to — the auto-created 'MakerWorld' folder by default, or whichever folder the caller specified. Surfaced so the frontend can deep-link to File Manager → that folder after import."},"profile_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id","description":"The MakerWorld profile (plate) id that was imported. Surfaced so the frontend can match the response back to the plate row in the UI and render inline 'view in library' / 'open in slicer' controls there."},"was_existing":{"type":"boolean","title":"Was Existing","description":"True if a prior import from the same source URL was reused (no re-download)"}},"type":"object","required":["library_file_id","filename","was_existing"],"title":"MakerWorldImportResponse","description":"Result of a MakerWorld import."},"MakerWorldRecentImport":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"filename":{"type":"string","title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path","description":"Relative path under /api/v1/library/files/{id}/thumbnail — the frontend wraps it with a stream token to render."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Canonical MakerWorld URL (``https://makerworld.com/models/{id}#profileId-{pid}``). The frontend uses it to build an 'Open on MakerWorld' link and to extract model/profile ids without a second API round-trip."},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["library_file_id","filename","folder_id","created_at"],"title":"MakerWorldRecentImport","description":"One row in the 'recent MakerWorld imports' list."},"MakerWorldResolveRequest":{"properties":{"url":{"type":"string","title":"Url","description":"Any MakerWorld model URL (scheme optional)"}},"type":"object","required":["url"],"title":"MakerWorldResolveRequest","description":"Body for POST /makerworld/resolve."},"MakerWorldResolvedModel":{"properties":{"model_id":{"type":"integer","title":"Model Id"},"profile_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id","description":"Specific profile from the URL's #profileId- fragment, if any"},"design":{"additionalProperties":true,"type":"object","title":"Design"},"instances":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Instances"},"already_imported_library_ids":{"items":{"type":"integer"},"type":"array","title":"Already Imported Library Ids","description":"LibraryFile IDs that were previously imported from this model URL"}},"type":"object","required":["model_id","design","instances"],"title":"MakerWorldResolvedModel","description":"Structured result of URL resolution.\n\n``design`` and ``instances`` are passed through verbatim from MakerWorld's\nAPI — we don't re-shape them because the frontend needs access to fields\nMakerWorld may add over time (badges, license variants, etc.). Keeping\nthem as opaque dicts avoids brittle coupling."},"MakerWorldStatus":{"properties":{"has_cloud_token":{"type":"boolean","title":"Has Cloud Token","description":"Whether the caller's account has a stored Bambu Cloud token"},"can_download":{"type":"boolean","title":"Can Download","description":"Shortcut: has_cloud_token AND it looks valid. Downloads require it."},"sign_in_expired":{"type":"boolean","title":"Sign In Expired","description":"A token is stored but Bambu has rejected it — the user must sign in to Bambu Cloud again.","default":false}},"type":"object","required":["has_cloud_token","can_download"],"title":"MakerWorldStatus","description":"Integration health + auth status surfaced to the frontend."},"ManualPrintRequest":{"properties":{"user_id":{"type":"integer","title":"User Id"},"cost_center_id":{"type":"integer","title":"Cost Center Id"},"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["user_id","cost_center_id","amount"],"title":"ManualPrintRequest"},"ManyfoldConfigResponse":{"properties":{"url":{"type":"string","title":"Url"},"client_id":{"type":"string","title":"Client Id"},"has_client_secret":{"type":"boolean","title":"Has Client Secret"},"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["url","client_id","has_client_secret","configured"],"title":"ManyfoldConfigResponse"},"ManyfoldConfigUpdate":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url"},"client_id":{"type":"string","maxLength":200,"minLength":1,"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["url","client_id"],"title":"ManyfoldConfigUpdate"},"ManyfoldFile":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"mime":{"type":"string","title":"Mime"},"importable":{"type":"boolean","title":"Importable"},"library_file":{"anyOf":[{"$ref":"#/components/schemas/ManyfoldLibraryRef"},{"type":"null"}]}},"type":"object","required":["id","name","mime","importable"],"title":"ManyfoldFile"},"ManyfoldImportRequest":{"properties":{"model_id":{"type":"string","maxLength":64,"minLength":1,"title":"Model Id"},"file_id":{"type":"string","maxLength":64,"minLength":1,"title":"File Id"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["model_id","file_id"],"title":"ManyfoldImportRequest"},"ManyfoldImportResponse":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"filename":{"type":"string","title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"was_existing":{"type":"boolean","title":"Was Existing"}},"type":"object","required":["library_file_id","filename","folder_id","was_existing"],"title":"ManyfoldImportResponse"},"ManyfoldLibraryRef":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["id","filename","folder_id"],"title":"ManyfoldLibraryRef","description":"The library file an earlier import of a Manyfold file created."},"ManyfoldModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"url":{"type":"string","title":"Url"},"has_preview":{"type":"boolean","title":"Has Preview"},"files":{"items":{"$ref":"#/components/schemas/ManyfoldFile"},"type":"array","title":"Files"}},"type":"object","required":["id","name","tags","url","has_preview","files"],"title":"ManyfoldModel"},"ManyfoldModelList":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"},"models":{"items":{"$ref":"#/components/schemas/ManyfoldModelSummary"},"type":"array","title":"Models"}},"type":"object","required":["total","page","has_next","has_previous","models"],"title":"ManyfoldModelList"},"ManyfoldModelSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ManyfoldModelSummary"},"ManyfoldStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"url":{"type":"string","title":"Url"}},"type":"object","required":["configured","url"],"title":"ManyfoldStatus"},"ManyfoldTestRequest":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url"},"client_id":{"type":"string","maxLength":200,"minLength":1,"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["url","client_id"],"title":"ManyfoldTestRequest"},"ManyfoldTestResponse":{"properties":{"model_count":{"type":"integer","title":"Model Count"}},"type":"object","required":["model_count"],"title":"ManyfoldTestResponse"},"MaterialNumberStats":{"properties":{"material_number":{"type":"string","title":"Material Number"},"spool_count":{"type":"integer","title":"Spool Count"},"remaining_g":{"type":"number","title":"Remaining G"},"consumed_g":{"type":"number","title":"Consumed G"},"cost":{"type":"number","title":"Cost"}},"type":"object","required":["material_number","spool_count","remaining_g","consumed_g","cost"],"title":"MaterialNumberStats","description":"Per-material-number inventory aggregate (#2870).\n\n``spool_count`` and ``remaining_g`` cover active (non-archived) spools;\n``consumed_g`` and ``cost`` sum the recorded usage history of every spool\ncarrying the number, archived included — consumption doesn't disappear\nwhen a spool is archived."},"NextPause":{"properties":{"layer":{"type":"integer","title":"Layer"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes"}},"type":"object","required":["layer"],"title":"NextPause","description":"The next pause the slicer put into the running print (#2984)."},"NormalizedFilament":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Hex"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"weight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weight"},"spool_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spool Weight"},"vendor":{"anyOf":[{"$ref":"#/components/schemas/NormalizedVendorRef"},{"type":"null"}]}},"type":"object","required":["id","name","material","color_hex","color_name","weight","spool_weight","vendor"],"title":"NormalizedFilament","description":"Normalised Spoolman filament dict returned by the /filaments catalog endpoint."},"NormalizedVendorRef":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"NormalizedVendorRef","description":"Vendor reference embedded in a NormalizedFilament."},"NotificationLogResponse":{"properties":{"id":{"type":"integer","title":"Id"},"provider_id":{"type":"integer","title":"Provider Id"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type"},"event_type":{"type":"string","title":"Event Type"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","provider_id","event_type","title","message","success","created_at"],"title":"NotificationLogResponse","description":"Schema for notification log API responses."},"NotificationLogStats":{"properties":{"total":{"type":"integer","title":"Total"},"success_count":{"type":"integer","title":"Success Count"},"failure_count":{"type":"integer","title":"Failure Count"},"by_event_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Event Type"},"by_provider":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Provider"}},"type":"object","required":["total","success_count","failure_count","by_event_type","by_provider"],"title":"NotificationLogStats","description":"Statistics for notification logs."},"NotificationProviderCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"User-defined name"},"provider_type":{"$ref":"#/components/schemas/backend__app__schemas__notification__ProviderType","description":"Type of notification provider"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether notifications are enabled","default":true},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Provider-specific configuration"},"attach_photo":{"type":"boolean","title":"Attach Photo","description":"Attach a camera snapshot to this provider's notifications when one is available","default":true},"photo_skip_events":{"items":{"type":"string","enum":["print_start","print_complete","print_failed","print_stopped","print_progress","first_layer_complete","printer_error","ai_failure_detection","plate_not_empty","print_confirm_request"]},"type":"array","title":"Photo Skip Events","description":"Events sent without the camera snapshot although attach_photo is on"},"on_print_start":{"type":"boolean","title":"On Print Start","description":"Notify on print start","default":false},"on_print_complete":{"type":"boolean","title":"On Print Complete","description":"Notify on print complete","default":true},"on_print_failed":{"type":"boolean","title":"On Print Failed","description":"Notify on print failed","default":true},"on_print_stopped":{"type":"boolean","title":"On Print Stopped","description":"Notify when print is stopped/cancelled","default":true},"on_print_progress":{"type":"boolean","title":"On Print Progress","description":"Notify at 25%, 50%, 75% progress","default":false},"on_print_missing_spool_assignment":{"type":"boolean","title":"On Print Missing Spool Assignment","description":"Notify when a print starts with required trays missing spool assignments","default":false},"on_billing_charge_failed":{"type":"boolean","title":"On Billing Charge Failed","description":"Notify when a print charge cannot be recorded","default":true},"on_printer_offline":{"type":"boolean","title":"On Printer Offline","description":"Notify when printer goes offline","default":false},"on_printer_error":{"type":"boolean","title":"On Printer Error","description":"Notify on printer errors (AMS, etc.)","default":false},"on_ai_failure_detection":{"type":"boolean","title":"On Ai Failure Detection","description":"Notify when AI failure detection identifies a possible print failure (spaghetti)","default":false},"on_filament_low":{"type":"boolean","title":"On Filament Low","description":"Notify when filament is running low","default":false},"on_maintenance_due":{"type":"boolean","title":"On Maintenance Due","description":"Notify when maintenance is due","default":false},"on_ams_humidity_high":{"type":"boolean","title":"On Ams Humidity High","description":"Notify when AMS humidity exceeds threshold","default":false},"on_ams_temperature_high":{"type":"boolean","title":"On Ams Temperature High","description":"Notify when AMS temperature exceeds threshold","default":false},"on_ams_drying_suspended":{"type":"boolean","title":"On Ams Drying Suspended","description":"Notify when automatic drying gives up on an AMS unit","default":true},"on_ams_ht_humidity_high":{"type":"boolean","title":"On Ams Ht Humidity High","description":"Notify when AMS-HT humidity exceeds threshold","default":false},"on_ams_ht_temperature_high":{"type":"boolean","title":"On Ams Ht Temperature High","description":"Notify when AMS-HT temperature exceeds threshold","default":false},"on_ha_sensor_alert":{"type":"boolean","title":"On Ha Sensor Alert","description":"Notify when a bound Home Assistant sensor enters its alert state","default":false},"on_location_ha_sensor_alert":{"type":"boolean","title":"On Location Ha Sensor Alert","description":"Notify when a Home Assistant sensor bound to a storage location enters its alert state","default":false},"on_plate_not_empty":{"type":"boolean","title":"On Plate Not Empty","description":"Notify when objects detected on plate before print","default":true},"on_plate_clear_required":{"type":"boolean","title":"On Plate Clear Required","description":"Notify when a finished print is waiting for plate-clear confirmation","default":false},"on_print_confirm_request":{"type":"boolean","title":"On Print Confirm Request","description":"Notify with one-tap verdict links when a print that opted in asks for its outcome","default":true},"telegram_verdict_mode":{"type":"string","enum":["buttons","reactions","both"],"title":"Telegram Verdict Mode","description":"Telegram only: answer the outcome prompt via inline buttons, a thumbs reaction, or both","default":"buttons"},"on_bed_cooled":{"type":"boolean","title":"On Bed Cooled","description":"Notify when bed cools after print","default":false},"on_first_layer_complete":{"type":"boolean","title":"On First Layer Complete","description":"Notify when first layer completes","default":false},"on_print_pause_upcoming":{"type":"boolean","title":"On Print Pause Upcoming","description":"Notify before a pause in the print","default":false},"on_app_message":{"type":"boolean","title":"On App Message","description":"Deliver messages other applications send","default":false},"on_stock_reorder_alert":{"type":"boolean","title":"On Stock Reorder Alert","description":"Notify when an inventory SKU hits its reorder point","default":false},"on_stock_break_alert":{"type":"boolean","title":"On Stock Break Alert","description":"Notify when stock will run out before replenishment arrives","default":false},"on_queue_job_added":{"type":"boolean","title":"On Queue Job Added","description":"Notify when job is added to queue","default":false},"on_queue_job_assigned":{"type":"boolean","title":"On Queue Job Assigned","description":"Notify when model-based job is assigned to printer","default":false},"on_queue_job_started":{"type":"boolean","title":"On Queue Job Started","description":"Notify when queue job starts printing","default":false},"on_queue_job_waiting":{"type":"boolean","title":"On Queue Job Waiting","description":"Notify when job is waiting for filament or printer","default":true},"on_queue_job_skipped":{"type":"boolean","title":"On Queue Job Skipped","description":"Notify when job is skipped","default":true},"on_queue_job_failed":{"type":"boolean","title":"On Queue Job Failed","description":"Notify when job fails to start","default":true},"on_queue_completed":{"type":"boolean","title":"On Queue Completed","description":"Notify when all queue jobs finish","default":false},"quiet_hours_enabled":{"type":"boolean","title":"Quiet Hours Enabled","description":"Enable quiet hours","default":false},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start","description":"Start time in HH:MM format"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End","description":"End time in HH:MM format"},"daily_digest_enabled":{"type":"boolean","title":"Daily Digest Enabled","description":"Batch notifications into daily digest","default":false},"daily_digest_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Daily Digest Time","description":"Time to send digest in HH:MM format"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id","description":"Specific printer ID or null for all"}},"type":"object","required":["name","provider_type","config"],"title":"NotificationProviderCreate","description":"Schema for creating a notification provider."},"NotificationProviderResponse":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"User-defined name"},"provider_type":{"$ref":"#/components/schemas/ProviderType-Output","description":"Type of notification provider"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether notifications are enabled","default":true},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Provider-specific configuration"},"attach_photo":{"type":"boolean","title":"Attach Photo","description":"Attach a camera snapshot to this provider's notifications when one is available","default":true},"photo_skip_events":{"items":{"type":"string","enum":["print_start","print_complete","print_failed","print_stopped","print_progress","first_layer_complete","printer_error","ai_failure_detection","plate_not_empty","print_confirm_request"]},"type":"array","title":"Photo Skip Events","description":"Events sent without the camera snapshot although attach_photo is on"},"on_print_start":{"type":"boolean","title":"On Print Start","description":"Notify on print start","default":false},"on_print_complete":{"type":"boolean","title":"On Print Complete","description":"Notify on print complete","default":true},"on_print_failed":{"type":"boolean","title":"On Print Failed","description":"Notify on print failed","default":true},"on_print_stopped":{"type":"boolean","title":"On Print Stopped","description":"Notify when print is stopped/cancelled","default":true},"on_print_progress":{"type":"boolean","title":"On Print Progress","description":"Notify at 25%, 50%, 75% progress","default":false},"on_print_missing_spool_assignment":{"type":"boolean","title":"On Print Missing Spool Assignment","description":"Notify when a print starts with required trays missing spool assignments","default":false},"on_billing_charge_failed":{"type":"boolean","title":"On Billing Charge Failed","description":"Notify when a print charge cannot be recorded","default":true},"on_printer_offline":{"type":"boolean","title":"On Printer Offline","description":"Notify when printer goes offline","default":false},"on_printer_error":{"type":"boolean","title":"On Printer Error","description":"Notify on printer errors (AMS, etc.)","default":false},"on_ai_failure_detection":{"type":"boolean","title":"On Ai Failure Detection","description":"Notify when AI failure detection identifies a possible print failure (spaghetti)","default":false},"on_filament_low":{"type":"boolean","title":"On Filament Low","description":"Notify when filament is running low","default":false},"on_maintenance_due":{"type":"boolean","title":"On Maintenance Due","description":"Notify when maintenance is due","default":false},"on_ams_humidity_high":{"type":"boolean","title":"On Ams Humidity High","description":"Notify when AMS humidity exceeds threshold","default":false},"on_ams_temperature_high":{"type":"boolean","title":"On Ams Temperature High","description":"Notify when AMS temperature exceeds threshold","default":false},"on_ams_drying_suspended":{"type":"boolean","title":"On Ams Drying Suspended","description":"Notify when automatic drying gives up on an AMS unit","default":true},"on_ams_ht_humidity_high":{"type":"boolean","title":"On Ams Ht Humidity High","description":"Notify when AMS-HT humidity exceeds threshold","default":false},"on_ams_ht_temperature_high":{"type":"boolean","title":"On Ams Ht Temperature High","description":"Notify when AMS-HT temperature exceeds threshold","default":false},"on_ha_sensor_alert":{"type":"boolean","title":"On Ha Sensor Alert","description":"Notify when a bound Home Assistant sensor enters its alert state","default":false},"on_location_ha_sensor_alert":{"type":"boolean","title":"On Location Ha Sensor Alert","description":"Notify when a Home Assistant sensor bound to a storage location enters its alert state","default":false},"on_plate_not_empty":{"type":"boolean","title":"On Plate Not Empty","description":"Notify when objects detected on plate before print","default":true},"on_plate_clear_required":{"type":"boolean","title":"On Plate Clear Required","description":"Notify when a finished print is waiting for plate-clear confirmation","default":false},"on_print_confirm_request":{"type":"boolean","title":"On Print Confirm Request","description":"Notify with one-tap verdict links when a print that opted in asks for its outcome","default":true},"telegram_verdict_mode":{"type":"string","enum":["buttons","reactions","both"],"title":"Telegram Verdict Mode","description":"Telegram only: answer the outcome prompt via inline buttons, a thumbs reaction, or both","default":"buttons"},"on_bed_cooled":{"type":"boolean","title":"On Bed Cooled","description":"Notify when bed cools after print","default":false},"on_first_layer_complete":{"type":"boolean","title":"On First Layer Complete","description":"Notify when first layer completes","default":false},"on_print_pause_upcoming":{"type":"boolean","title":"On Print Pause Upcoming","description":"Notify before a pause in the print","default":false},"on_app_message":{"type":"boolean","title":"On App Message","description":"Deliver messages other applications send","default":false},"on_stock_reorder_alert":{"type":"boolean","title":"On Stock Reorder Alert","description":"Notify when an inventory SKU hits its reorder point","default":false},"on_stock_break_alert":{"type":"boolean","title":"On Stock Break Alert","description":"Notify when stock will run out before replenishment arrives","default":false},"on_queue_job_added":{"type":"boolean","title":"On Queue Job Added","description":"Notify when job is added to queue","default":false},"on_queue_job_assigned":{"type":"boolean","title":"On Queue Job Assigned","description":"Notify when model-based job is assigned to printer","default":false},"on_queue_job_started":{"type":"boolean","title":"On Queue Job Started","description":"Notify when queue job starts printing","default":false},"on_queue_job_waiting":{"type":"boolean","title":"On Queue Job Waiting","description":"Notify when job is waiting for filament or printer","default":true},"on_queue_job_skipped":{"type":"boolean","title":"On Queue Job Skipped","description":"Notify when job is skipped","default":true},"on_queue_job_failed":{"type":"boolean","title":"On Queue Job Failed","description":"Notify when job fails to start","default":true},"on_queue_completed":{"type":"boolean","title":"On Queue Completed","description":"Notify when all queue jobs finish","default":false},"quiet_hours_enabled":{"type":"boolean","title":"Quiet Hours Enabled","description":"Enable quiet hours","default":false},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start","description":"Start time in HH:MM format"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End","description":"End time in HH:MM format"},"daily_digest_enabled":{"type":"boolean","title":"Daily Digest Enabled","description":"Batch notifications into daily digest","default":false},"daily_digest_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Daily Digest Time","description":"Time to send digest in HH:MM format"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id","description":"Specific printer ID or null for all"},"id":{"type":"integer","title":"Id"},"last_success":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Success"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Error At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","provider_type","config","id","created_at","updated_at"],"title":"NotificationProviderResponse","description":"Schema for notification provider API responses."},"NotificationProviderUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/backend__app__schemas__notification__ProviderType"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"attach_photo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attach Photo"},"photo_skip_events":{"anyOf":[{"items":{"type":"string","enum":["print_start","print_complete","print_failed","print_stopped","print_progress","first_layer_complete","printer_error","ai_failure_detection","plate_not_empty","print_confirm_request"]},"type":"array"},{"type":"null"}],"title":"Photo Skip Events"},"on_print_start":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Start"},"on_print_complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Complete"},"on_print_failed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Failed"},"on_print_stopped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Stopped"},"on_print_progress":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Progress"},"on_print_missing_spool_assignment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Missing Spool Assignment"},"on_billing_charge_failed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Billing Charge Failed"},"on_printer_offline":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Printer Offline"},"on_printer_error":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Printer Error"},"on_ai_failure_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ai Failure Detection"},"on_filament_low":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Filament Low"},"on_maintenance_due":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Maintenance Due"},"on_ams_humidity_high":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ams Humidity High"},"on_ams_temperature_high":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ams Temperature High"},"on_ams_drying_suspended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ams Drying Suspended"},"on_ams_ht_humidity_high":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ams Ht Humidity High"},"on_ams_ht_temperature_high":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ams Ht Temperature High"},"on_ha_sensor_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Ha Sensor Alert"},"on_location_ha_sensor_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Location Ha Sensor Alert"},"on_plate_not_empty":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Plate Not Empty"},"on_plate_clear_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Plate Clear Required"},"on_print_confirm_request":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Confirm Request"},"telegram_verdict_mode":{"anyOf":[{"type":"string","enum":["buttons","reactions","both"]},{"type":"null"}],"title":"Telegram Verdict Mode"},"on_bed_cooled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Bed Cooled"},"on_first_layer_complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On First Layer Complete"},"on_print_pause_upcoming":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Print Pause Upcoming"},"on_app_message":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On App Message"},"on_stock_reorder_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Stock Reorder Alert"},"on_stock_break_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Stock Break Alert"},"on_queue_job_added":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Added"},"on_queue_job_assigned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Assigned"},"on_queue_job_started":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Started"},"on_queue_job_waiting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Waiting"},"on_queue_job_skipped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Skipped"},"on_queue_job_failed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Job Failed"},"on_queue_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Queue Completed"},"quiet_hours_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quiet Hours Enabled"},"quiet_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours Start"},"quiet_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quiet Hours End"},"daily_digest_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Daily Digest Enabled"},"daily_digest_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Daily Digest Time"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"}},"type":"object","title":"NotificationProviderUpdate","description":"Schema for updating a notification provider (all fields optional)."},"NotificationTemplateResponse":{"properties":{"title_template":{"type":"string","maxLength":200,"minLength":1,"title":"Title Template"},"body_template":{"type":"string","maxLength":2000,"minLength":1,"title":"Body Template"},"id":{"type":"integer","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["title_template","body_template","id","event_type","name","is_default","created_at","updated_at"],"title":"NotificationTemplateResponse","description":"Schema for notification template API responses."},"NotificationTemplateUpdate":{"properties":{"title_template":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title Template"},"body_template":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Body Template"}},"type":"object","title":"NotificationTemplateUpdate","description":"Schema for updating a notification template."},"NotificationTestRequest":{"properties":{"provider_type":{"$ref":"#/components/schemas/backend__app__schemas__notification__ProviderType"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"attach_photo":{"type":"boolean","title":"Attach Photo","description":"Include a sample photo in the test, mirroring the provider's own toggle","default":true},"provider_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Provider Id","description":"The saved provider being edited: its stored secrets fill in the placeholders"}},"type":"object","required":["provider_type","config"],"title":"NotificationTestRequest","description":"Schema for testing notification configuration."},"NotificationTestResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"NotificationTestResponse","description":"Schema for test notification response."},"NozzleInfoResponse":{"properties":{"nozzle_type":{"type":"string","title":"Nozzle Type","default":""},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter","default":""}},"type":"object","title":"NozzleInfoResponse"},"NozzleRackSlot":{"properties":{"id":{"type":"integer","title":"Id","default":0},"nozzle_type":{"type":"string","title":"Nozzle Type","default":""},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter","default":""},"wear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wear"},"print_time_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time S"},"stat":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stat"},"max_temp":{"type":"integer","title":"Max Temp","default":0},"serial_number":{"type":"string","title":"Serial Number","default":""},"filament_color":{"type":"string","title":"Filament Color","default":""},"filament_id":{"type":"string","title":"Filament Id","default":""},"filament_type":{"type":"string","title":"Filament Type","default":""},"addr_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Addr Id"}},"type":"object","title":"NozzleRackSlot","description":"H2C nozzle rack slot (6-position tool-changer dock)."},"OIDCAuthorizeResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"}},"type":"object","required":["auth_url"],"title":"OIDCAuthorizeResponse"},"OIDCExchangeRequest":{"properties":{"oidc_token":{"type":"string","maxLength":128,"title":"Oidc Token"}},"type":"object","required":["oidc_token"],"title":"OIDCExchangeRequest"},"OIDCLinkResponse":{"properties":{"id":{"type":"integer","title":"Id"},"provider_id":{"type":"integer","title":"Provider Id"},"provider_name":{"type":"string","title":"Provider Name"},"provider_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Email"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","provider_id","provider_name","created_at"],"title":"OIDCLinkResponse"},"OIDCProviderCreate":{"properties":{"name":{"type":"string","maxLength":100,"title":"Name"},"issuer_url":{"type":"string","title":"Issuer Url"},"client_id":{"type":"string","maxLength":256,"title":"Client Id"},"client_secret":{"type":"string","maxLength":512,"title":"Client Secret"},"scopes":{"type":"string","maxLength":256,"title":"Scopes","default":"openid email profile"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"auto_create_users":{"type":"boolean","title":"Auto Create Users","default":false},"auto_link_existing_accounts":{"type":"boolean","title":"Auto Link Existing Accounts","default":false},"email_claim":{"type":"string","maxLength":64,"title":"Email Claim","default":"email"},"require_email_verified":{"type":"boolean","title":"Require Email Verified","default":true},"group_claim":{"type":"string","maxLength":64,"title":"Group Claim","default":"groups"},"group_mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Group Mapping"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"default_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Group Id"},"is_autologin":{"type":"boolean","title":"Is Autologin","default":false}},"type":"object","required":["name","issuer_url","client_id","client_secret"],"title":"OIDCProviderCreate"},"OIDCProviderPublicResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"has_icon":{"type":"boolean","title":"Has Icon"},"is_autologin":{"type":"boolean","title":"Is Autologin","default":false}},"type":"object","required":["id","name","has_icon"],"title":"OIDCProviderPublicResponse","description":"#3107 — what the unauthenticated login page is allowed to see.\n\nGET /oidc/providers is public so the login page can render the SSO\nbuttons, and it needs exactly four fields: id + name for the button,\nhas_icon for the avatar, is_autologin for the redirect-on-mount (#1589).\nThe full OIDCProviderResponse carries group_claim / group_mapping —\nwhich IdP group name maps to which Bambuddy group, including\nAdministrators — and leaking that to anonymous visitors would tell\nanyone who can reach the login page exactly which IdP group to aim for."},"OIDCProviderResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"issuer_url":{"type":"string","title":"Issuer Url"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"type":"string","title":"Scopes"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"auto_create_users":{"type":"boolean","title":"Auto Create Users"},"auto_link_existing_accounts":{"type":"boolean","title":"Auto Link Existing Accounts","default":false},"email_claim":{"type":"string","title":"Email Claim","default":"email"},"require_email_verified":{"type":"boolean","title":"Require Email Verified","default":true},"group_claim":{"type":"string","title":"Group Claim","default":"groups"},"group_mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Group Mapping","default":{}},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"default_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Group Id"},"is_autologin":{"type":"boolean","title":"Is Autologin","default":false},"is_env_managed":{"type":"boolean","title":"Is Env Managed","default":false},"has_icon":{"type":"boolean","title":"Has Icon"}},"type":"object","required":["id","name","issuer_url","client_id","scopes","is_enabled","auto_create_users","has_icon"],"title":"OIDCProviderResponse"},"OIDCProviderUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"issuer_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer Url"},"client_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Client Secret"},"scopes":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Scopes"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"},"auto_create_users":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Create Users"},"auto_link_existing_accounts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Link Existing Accounts"},"email_claim":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Email Claim"},"require_email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Email Verified"},"group_claim":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Group Claim"},"group_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Group Mapping"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"default_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Group Id"},"is_autologin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Autologin"}},"type":"object","title":"OIDCProviderUpdate"},"OrcaAuthStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["connected"],"title":"OrcaAuthStatusResponse","description":"Connection status for the Orca Cloud tab."},"OrcaDevicePollResponse":{"properties":{"status":{"type":"string","enum":["authorization_pending","slow_down","access_denied","expired_token","complete"],"title":"Status"},"connected":{"type":"boolean","title":"Connected","default":false},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["status"],"title":"OrcaDevicePollResponse","description":"Returned by ``POST /orca-cloud/device/poll`` — one poll attempt."},"OrcaDeviceStartResponse":{"properties":{"user_code":{"type":"string","title":"User Code","description":"Short code the user confirms on the approval page"},"verification_uri":{"type":"string","title":"Verification Uri","description":"Approval page URL"},"verification_uri_complete":{"type":"string","title":"Verification Uri Complete","description":"Approval page URL with the code pre-filled"},"interval":{"type":"integer","title":"Interval","description":"Seconds the frontend should wait between poll calls"},"expires_in":{"type":"integer","title":"Expires In","description":"Seconds until this pairing attempt expires"}},"type":"object","required":["user_code","verification_uri","verification_uri_complete","interval","expires_in"],"title":"OrcaDeviceStartResponse","description":"Returned by ``POST /orca-cloud/device/start``. The frontend shows\n``user_code`` and a clickable/QR ``verification_uri_complete``; the user\napproves in their Orca Cloud settings. The ``device_code`` itself is a\nsecret and stays server-side — it is deliberately NOT in this response."},"OrcaProfileDetail":{"properties":{"setting_id":{"type":"string","title":"Setting Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"base_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Id"},"update_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Time"},"setting":{"additionalProperties":true,"type":"object","title":"Setting"}},"type":"object","required":["setting_id","name","type","setting"],"title":"OrcaProfileDetail","description":"Single profile's full content, shaped to match the frontend's ``SlicerSettingDetail``\nso the frontend's detail modal can render it without translation."},"OrcaProfileListResponse":{"properties":{"filament":{"items":{"$ref":"#/components/schemas/OrcaProfileMeta"},"type":"array","title":"Filament","default":[]},"printer":{"items":{"$ref":"#/components/schemas/OrcaProfileMeta"},"type":"array","title":"Printer","default":[]},"process":{"items":{"$ref":"#/components/schemas/OrcaProfileMeta"},"type":"array","title":"Process","default":[]}},"type":"object","title":"OrcaProfileListResponse","description":"Groups Orca profiles by type, matching ``SlicerSettingsResponse``."},"OrcaProfileMeta":{"properties":{"setting_id":{"type":"string","title":"Setting Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"updated_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated Time"},"is_custom":{"type":"boolean","title":"Is Custom","default":true}},"type":"object","required":["setting_id","name","type"],"title":"OrcaProfileMeta","description":"A single profile, shaped to match the Bambu Cloud ``SlicerSetting``\nschema so the frontend can render Orca profiles with the existing\nBambu Cloud visual components (cards, filter bar, grouping). Per-source\ndifferences (Orca's IDs are UUIDs not Bambu's ``PFU...`` prefix; Orca\ntypes are ``machine`` / ``process`` / ``filament`` whereas Bambu uses\n``printer`` / ``process`` / ``filament``) are normalized at the route\nlayer before the response leaves the backend."},"PandaBreathCommand":{"properties":{"work_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Work On"},"mode":{"anyOf":[{"type":"string","enum":["auto mode","power on","filament drying"]},{"type":"null"}],"title":"Mode"},"target_temp":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":0.0},{"type":"null"}],"title":"Target Temp"}},"type":"object","title":"PandaBreathCommand","description":"One change for a printer's Panda Breath: exactly one field set."},"PandaBreathState":{"properties":{"device_id":{"type":"string","title":"Device Id"},"online":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Online"},"chamber_temp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Chamber Temp"},"target_temp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Temp"},"work_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Work On"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"filament_drying_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Drying Mode"},"drying_running":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Drying Running"},"drying_remaining_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Drying Remaining Min"}},"type":"object","required":["device_id"],"title":"PandaBreathState","description":"What a Panda Breath reports, as the printer card shows it (#1466)."},"PendingUploadResponse":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"display_name":{"type":"string","title":"Display Name"},"file_size":{"type":"integer","title":"File Size"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"status":{"type":"string","title":"Status"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At"}},"type":"object","required":["id","filename","display_name","file_size","source_ip","status","tags","notes","project_id","uploaded_at"],"title":"PendingUploadResponse","description":"Response model for pending upload."},"PerPrinterReport":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"ok":{"type":"boolean","title":"Ok"},"issues":{"items":{"$ref":"#/components/schemas/EligibilityIssueResponse"},"type":"array","title":"Issues","default":[]}},"type":"object","required":["printer_id","printer_name","ok"],"title":"PerPrinterReport","description":"One row of class-targeting eligibility — per matching printer.\n\nPR C extends the top-level report with this list so the confirmation modal\ncan show ``3 of 5 X1Cs eligible`` plus a per-printer breakdown of why each\ncandidate is or isn't usable."},"PerformMaintenanceRequest":{"properties":{"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PerformMaintenanceRequest","description":"Request to mark maintenance as performed."},"PermissionCategory":{"properties":{"name":{"type":"string","title":"Name"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionInfo"},"type":"array","title":"Permissions"}},"type":"object","required":["name","permissions"],"title":"PermissionCategory","description":"Schema for a category of permissions."},"PermissionInfo":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"PermissionInfo","description":"Schema for permission information."},"PermissionsListResponse":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/PermissionCategory"},"type":"array","title":"Categories"},"all_permissions":{"items":{"type":"string"},"type":"array","title":"All Permissions"}},"type":"object","required":["categories","all_permissions"],"title":"PermissionsListResponse","description":"Schema for listing all permissions by category."},"PipelineJobResponse":{"properties":{"id":{"type":"integer","title":"Id"},"pipeline_run_id":{"type":"integer","title":"Pipeline Run Id"},"copy_index":{"type":"integer","title":"Copy Index"},"assigned_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned Printer Id"},"assigned_printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Printer Name"},"queue_entry_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Entry Id"},"status":{"type":"string","enum":["pending","awaiting_printer","queued","printing","completed","failed","cancelled","unknown"],"title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"dispatched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dispatched At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","pipeline_run_id","copy_index","assigned_printer_id","queue_entry_id","status"],"title":"PipelineJobResponse"},"PipelineRunCreateRequest":{"properties":{"source_library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Library File Id"},"source_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Archive Id"},"copies":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Copies","default":1},"force":{"type":"boolean","title":"Force","description":"When False (default), the route returns 409 with the eligibility report if any blocking issue exists. When True, the run starts even when issues exist — recorded on PipelineRun.eligibility_overridden.","default":false}},"type":"object","title":"PipelineRunCreateRequest","description":"``copies`` defaults to 1 (PR B parity). The route handler enforces the\n``pipeline_max_copies`` setting on top of the schema's lower bound."},"PipelineRunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/PipelineRunResponse"},"type":"array","title":"Runs","default":[]},"total":{"type":"integer","title":"Total","default":0}},"type":"object","title":"PipelineRunListResponse"},"PipelineRunResponse":{"properties":{"id":{"type":"integer","title":"Id"},"pipeline_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pipeline Id"},"pipeline_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Name"},"source_library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Library File Id"},"source_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Archive Id"},"source_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Filename"},"parent_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Run Id"},"copies":{"type":"integer","title":"Copies"},"copies_completed":{"type":"integer","title":"Copies Completed","default":0},"copies_failed":{"type":"integer","title":"Copies Failed","default":0},"copies_cancelled":{"type":"integer","title":"Copies Cancelled","default":0},"copies_in_progress":{"type":"integer","title":"Copies In Progress","default":0},"status":{"type":"string","enum":["queued","slicing","dispatching","in_progress","completed","failed","partial_failure","cancelled"],"title":"Status"},"slice_job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slice Job Id"},"sliced_library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sliced Library File Id"},"eligibility_overridden":{"type":"boolean","title":"Eligibility Overridden"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"jobs":{"items":{"$ref":"#/components/schemas/PipelineJobResponse"},"type":"array","title":"Jobs","default":[]},"target_kind":{"anyOf":[{"type":"string","enum":["specific_printer","printer_class"]},{"type":"null"}],"title":"Target Kind"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"target_model_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model Class"},"fanout_strategy":{"anyOf":[{"type":"string","enum":["max_parallel","fill_one_first","round_robin"]},{"type":"null"}],"title":"Fanout Strategy"}},"type":"object","required":["id","pipeline_id","source_library_file_id","copies","status","slice_job_id","sliced_library_file_id","eligibility_overridden","created_by","created_at","started_at","completed_at"],"title":"PipelineRunResponse"},"PlateDetectionROI":{"properties":{"x":{"type":"number","maximum":1.0,"minimum":0.0,"title":"X"},"y":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Y"},"w":{"type":"number","maximum":1.0,"minimum":0.0,"title":"W"},"h":{"type":"number","maximum":1.0,"minimum":0.0,"title":"H"}},"type":"object","required":["x","y","w","h"],"title":"PlateDetectionROI","description":"Region of interest for plate detection (percentages 0.0-1.0)."},"PresetRef":{"properties":{"source":{"type":"string","enum":["orca_cloud","cloud","local","standard"],"title":"Source"},"id":{"type":"string","title":"Id","description":"Orca Cloud profile id, Bambu Cloud setting_id, local DB row id (stringified), or standard preset name."}},"type":"object","required":["source","id"],"title":"PresetRef","description":"A source-aware reference to a printer / process / filament preset.\n\nThe SliceModal pulls dropdown options from four tiers (orca_cloud /\ncloud / local / standard). At submit time the client sends one of these\nper slot so the backend knows where to fetch the preset content from at\nslice time. ``cloud`` is Bambu Cloud (kept as the bare name for backward\ncompatibility with existing requests); ``orca_cloud`` is Orca Cloud."},"PrintBatchCreate":{"properties":{"name":{"type":"string","title":"Name"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library File Id"},"item_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Item Ids"},"plates":{"anyOf":[{"items":{"$ref":"#/components/schemas/PrintBatchPlateTarget"},"type":"array"},{"type":"null"}],"title":"Plates"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"external_source":{"anyOf":[{"type":"string","maxLength":32,"minLength":1,"pattern":"^[a-z0-9_-]+$"},{"type":"null"}],"title":"External Source"},"external_ref":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"External Ref"}},"type":"object","required":["name"],"title":"PrintBatchCreate","description":"Create a batch, either empty (multi-plate pre-batch flow) or by\nassigning existing pending queue items into it (manual \"Group as batch\")."},"PrintBatchDispatchRequest":{"properties":{"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"only_plate":{"type":"boolean","title":"Only Plate","default":false},"limit":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Limit"}},"type":"object","title":"PrintBatchDispatchRequest","description":"Create queue items for the runs an order still owes."},"PrintBatchPlateProgress":{"properties":{"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"plate_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Name"},"quantity_target":{"type":"integer","title":"Quantity Target","default":0},"dispatched":{"type":"integer","title":"Dispatched","default":0},"remaining":{"type":"integer","title":"Remaining","default":0},"pending_count":{"type":"integer","title":"Pending Count","default":0},"printing_count":{"type":"integer","title":"Printing Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"cancelled_count":{"type":"integer","title":"Cancelled Count","default":0},"skipped_count":{"type":"integer","title":"Skipped Count","default":0},"actual_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actual Cost"},"estimated_remaining_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Remaining Cost"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"print_time_seconds":{"type":"integer","title":"Print Time Seconds","default":0},"can_dispatch":{"type":"boolean","title":"Can Dispatch","default":false}},"type":"object","title":"PrintBatchPlateProgress","description":"Per-plate progress within a batch."},"PrintBatchPlateTarget":{"properties":{"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"plate_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Name"},"quantity_target":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Quantity Target","default":1},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","title":"PrintBatchPlateTarget","description":"How many runs of one plate an order wants (#342).\n\n``plate_id`` is the plate index inside the source 3MF, or null for a\nsingle-plate file — matching ``PrintQueueItem.plate_id``. A target of 0 is\nlegal and means \"this plate is not required (yet)\"."},"PrintBatchResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library File Id"},"quantity":{"type":"integer","title":"Quantity"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"pending_count":{"type":"integer","title":"Pending Count","default":0},"printing_count":{"type":"integer","title":"Printing Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"cancelled_count":{"type":"integer","title":"Cancelled Count","default":0},"skipped_count":{"type":"integer","title":"Skipped Count","default":0},"has_targets":{"type":"boolean","title":"Has Targets","default":false},"target_count":{"type":"integer","title":"Target Count","default":0},"remaining_count":{"type":"integer","title":"Remaining Count","default":0},"dispatchable_count":{"type":"integer","title":"Dispatchable Count","default":0},"actual_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actual Cost"},"estimated_remaining_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Remaining Cost"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"print_time_seconds":{"type":"integer","title":"Print Time Seconds","default":0},"plates":{"items":{"$ref":"#/components/schemas/PrintBatchPlateProgress"},"type":"array","title":"Plates","default":[]}},"type":"object","required":["id","name","quantity","status","created_at"],"title":"PrintBatchResponse","description":"Response for a print batch with progress stats."},"PrintBatchUngroupResponse":{"properties":{"ungrouped_count":{"type":"integer","title":"Ungrouped Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["ungrouped_count","message"],"title":"PrintBatchUngroupResponse","description":"Response after ungrouping a batch."},"PrintBatchUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","enum":["active","cancelled"]},{"type":"null"}],"title":"Status"},"plates":{"anyOf":[{"items":{"$ref":"#/components/schemas/PrintBatchPlateTarget"},"type":"array"},{"type":"null"}],"title":"Plates"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PrintBatchUpdate","description":"Edit an order's header or its per-plate targets while it runs.\n\nEvery field is optional; ``plates`` replaces the full target set when\ngiven, so a plate omitted from the list has its target row removed."},"PrintLogEntrySchema":{"properties":{"id":{"type":"integer","title":"Id"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Name"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"energy_kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Kwh"},"energy_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Energy Cost"},"wear_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wear Cost"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"user_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Verdict"},"user_verdict_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Verdict Source"},"confirm_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Requested"},"duration_unmeasured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Duration Unmeasured"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"photos":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Photos"},"timelapse_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timelapse Path"},"estimate_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimate Seconds"},"estimate_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimate Grams"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","created_at"],"title":"PrintLogEntrySchema"},"PrintLogEntryUpdate":{"properties":{"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PrintLogEntryUpdate","description":"Per-row classification edits (#1687 part 4 — IndividualGhost1905).\n\nLets the user set ``failure_reason`` (and re-classify ``status``) directly\non a Print Log row, including on orphan entries that have no archive to\nedit through. The Failure Analysis widget already groups by\n``PrintLogEntry.failure_reason``, so this just plugs the editor gap."},"PrintLogResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PrintLogEntrySchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"deleted_archive_ids":{"items":{"type":"integer"},"type":"array","title":"Deleted Archive Ids","default":[]}},"type":"object","required":["items","total"],"title":"PrintLogResponse"},"PrintOptionsResponse":{"properties":{"spaghetti_detector":{"type":"boolean","title":"Spaghetti Detector","default":false},"print_halt":{"type":"boolean","title":"Print Halt","default":false},"halt_print_sensitivity":{"type":"string","title":"Halt Print Sensitivity","default":"medium"},"first_layer_inspector":{"type":"boolean","title":"First Layer Inspector","default":false},"printing_monitor":{"type":"boolean","title":"Printing Monitor","default":false},"buildplate_marker_detector":{"type":"boolean","title":"Buildplate Marker Detector","default":false},"allow_skip_parts":{"type":"boolean","title":"Allow Skip Parts","default":false},"nozzle_clumping_detector":{"type":"boolean","title":"Nozzle Clumping Detector","default":true},"nozzle_clumping_sensitivity":{"type":"string","title":"Nozzle Clumping Sensitivity","default":"medium"},"pileup_detector":{"type":"boolean","title":"Pileup Detector","default":true},"pileup_sensitivity":{"type":"string","title":"Pileup Sensitivity","default":"medium"},"airprint_detector":{"type":"boolean","title":"Airprint Detector","default":true},"airprint_sensitivity":{"type":"string","title":"Airprint Sensitivity","default":"medium"},"auto_recovery_step_loss":{"type":"boolean","title":"Auto Recovery Step Loss","default":true},"filament_tangle_detect":{"type":"boolean","title":"Filament Tangle Detect","default":false}},"type":"object","title":"PrintOptionsResponse","description":"AI detection and print options from xcam data."},"PrintQueueBulkUpdate":{"properties":{"item_ids":{"items":{"type":"integer"},"type":"array","title":"Item Ids"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"scheduled_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Time"},"require_previous_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Previous Success"},"auto_off_after":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Off After"},"manual_start":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Manual Start"},"bed_levelling":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Bed Levelling"},"flow_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Flow Cali"},"vibration_cali":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vibration Cali"},"layer_inspect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Layer Inspect"},"timelapse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Timelapse"},"use_ams":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Ams"},"nozzle_offset_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Nozzle Offset Cali"},"confirm_outcome":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Outcome"},"preheat_override":{"anyOf":[{"type":"string","enum":["inherit","on","off"]},{"type":"null"}],"title":"Preheat Override"},"preheat_chamber_target_override":{"anyOf":[{"type":"integer","maximum":65.0,"minimum":0.0},{"type":"null"}],"title":"Preheat Chamber Target Override"},"gcode_injection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gcode Injection"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"estimated_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost"}},"type":"object","required":["item_ids"],"title":"PrintQueueBulkUpdate","description":"Bulk update multiple queue items with the same values."},"PrintQueueBulkUpdateResponse":{"properties":{"updated_count":{"type":"integer","title":"Updated Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["updated_count","skipped_count","message"],"title":"PrintQueueBulkUpdateResponse","description":"Response for bulk update operation."},"PrintQueueHistoryClearResponse":{"properties":{"cleared":{"type":"integer","title":"Cleared"},"kept":{"type":"integer","title":"Kept"}},"type":"object","required":["cleared","kept"],"title":"PrintQueueHistoryClearResponse"},"PrintQueueHistoryResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PrintQueueItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"locations":{"items":{"type":"string"},"type":"array","title":"Locations"}},"type":"object","required":["items","total","locations"],"title":"PrintQueueHistoryResponse","description":"One page of the queue history, plus what the page needs around it.\n\n``items`` holds the page in display order, followed by any other history\nruns of the batches on that page, so a batch row can count all of its runs."},"PrintQueueItemCreate":{"properties":{"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"target_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model"},"target_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Location"},"required_filament_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required Filament Types"},"filament_overrides":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Filament Overrides"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library File Id"},"scheduled_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Time"},"require_previous_success":{"type":"boolean","title":"Require Previous Success","default":false},"auto_off_after":{"type":"boolean","title":"Auto Off After","default":false},"manual_start":{"type":"boolean","title":"Manual Start","default":false},"insert_at_top":{"type":"boolean","title":"Insert At Top","default":false},"insert_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Insert Position"},"skip_filament_check":{"type":"boolean","title":"Skip Filament Check","default":false},"ams_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ams Mapping"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"bed_levelling":{"type":"string","enum":["off","on","auto"],"title":"Bed Levelling","default":"auto"},"flow_cali":{"type":"string","enum":["off","on","auto"],"title":"Flow Cali","default":"auto"},"vibration_cali":{"type":"boolean","title":"Vibration Cali","default":true},"layer_inspect":{"type":"boolean","title":"Layer Inspect","default":false},"timelapse":{"type":"boolean","title":"Timelapse","default":false},"use_ams":{"type":"boolean","title":"Use Ams","default":true},"nozzle_offset_cali":{"type":"string","enum":["off","on","auto"],"title":"Nozzle Offset Cali","default":"auto"},"confirm_outcome":{"type":"boolean","title":"Confirm Outcome","default":false},"preheat_override":{"type":"string","enum":["inherit","on","off"],"title":"Preheat Override","default":"inherit"},"preheat_chamber_target_override":{"anyOf":[{"type":"integer","maximum":65.0,"minimum":0.0},{"type":"null"}],"title":"Preheat Chamber Target Override"},"gcode_injection":{"type":"boolean","title":"Gcode Injection","default":false},"quantity":{"type":"integer","title":"Quantity","default":1},"batch_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batch Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"estimated_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost"},"nozzle_rack_choice":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Nozzle Rack Choice"},"cleanup_library_after_dispatch":{"type":"boolean","title":"Cleanup Library After Dispatch","default":false},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/QueueVariantCreate"},"type":"array"},{"type":"null"}],"title":"Variants"}},"type":"object","title":"PrintQueueItemCreate"},"PrintQueueItemResponse":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"target_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model"},"target_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Location"},"required_filament_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required Filament Types"},"filament_overrides":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Filament Overrides"},"waiting_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiting Reason"},"archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Id"},"library_file_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library File Id"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"estimated_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost"},"position":{"type":"integer","title":"Position"},"scheduled_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Time"},"require_previous_success":{"type":"boolean","title":"Require Previous Success"},"auto_off_after":{"type":"boolean","title":"Auto Off After"},"manual_start":{"type":"boolean","title":"Manual Start"},"filament_short":{"type":"boolean","title":"Filament Short","default":false},"skip_filament_check":{"type":"boolean","title":"Skip Filament Check","default":false},"ams_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ams Mapping"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"bed_levelling":{"type":"string","enum":["off","on","auto"],"title":"Bed Levelling","default":"auto"},"flow_cali":{"type":"string","enum":["off","on","auto"],"title":"Flow Cali","default":"auto"},"vibration_cali":{"type":"boolean","title":"Vibration Cali","default":true},"layer_inspect":{"type":"boolean","title":"Layer Inspect","default":false},"timelapse":{"type":"boolean","title":"Timelapse","default":false},"use_ams":{"type":"boolean","title":"Use Ams","default":true},"nozzle_offset_cali":{"type":"string","enum":["off","on","auto"],"title":"Nozzle Offset Cali","default":"auto"},"confirm_outcome":{"type":"boolean","title":"Confirm Outcome","default":false},"preheat_override":{"type":"string","enum":["inherit","on","off"],"title":"Preheat Override","default":"inherit"},"preheat_chamber_target_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Preheat Chamber Target Override"},"status":{"type":"string","enum":["pending","printing","completed","failed","skipped","cancelled"],"title":"Status"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"archive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Name"},"archive_thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Thumbnail"},"archive_deleted":{"type":"boolean","title":"Archive Deleted","default":false},"library_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library File Name"},"library_file_thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library File Thumbnail"},"printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Name"},"print_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Time Seconds"},"filament_used_grams":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Filament Used Grams"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color"},"layer_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Layer Height"},"nozzle_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nozzle Diameter"},"sliced_for_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sliced For Model"},"bed_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bed Type"},"archive_has_slicer_ams_mapping":{"type":"boolean","title":"Archive Has Slicer Ams Mapping","default":false},"slicer_ams_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Slicer Ams Mapping"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"batch_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batch Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"variants":{"items":{"$ref":"#/components/schemas/QueueVariantSummary"},"type":"array","title":"Variants","default":[]},"been_jumped":{"type":"boolean","title":"Been Jumped","default":false},"gcode_injection":{"type":"boolean","title":"Gcode Injection","default":false},"cleanup_library_after_dispatch":{"type":"boolean","title":"Cleanup Library After Dispatch","default":false},"nozzle_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Nozzle Mapping"},"nozzle_rack_choice":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Nozzle Rack Choice"},"color_substitutions":{"anyOf":[{"items":{"$ref":"#/components/schemas/ColorSubstitution"},"type":"array"},{"type":"null"}],"title":"Color Substitutions"}},"type":"object","required":["id","printer_id","archive_id","library_file_id","position","scheduled_time","require_previous_success","auto_off_after","manual_start","status","started_at","completed_at","error_message","created_at"],"title":"PrintQueueItemResponse"},"PrintQueueItemUpdate":{"properties":{"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"target_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model"},"target_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Location"},"filament_overrides":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Filament Overrides"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"scheduled_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Time"},"require_previous_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Previous Success"},"auto_off_after":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Off After"},"manual_start":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Manual Start"},"skip_filament_check":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Filament Check"},"ams_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ams Mapping"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"bed_levelling":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Bed Levelling"},"flow_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Flow Cali"},"vibration_cali":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vibration Cali"},"layer_inspect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Layer Inspect"},"timelapse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Timelapse"},"use_ams":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Ams"},"nozzle_offset_cali":{"anyOf":[{"type":"string","enum":["off","on","auto"]},{"type":"null"}],"title":"Nozzle Offset Cali"},"confirm_outcome":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Outcome"},"preheat_override":{"anyOf":[{"type":"string","enum":["inherit","on","off"]},{"type":"null"}],"title":"Preheat Override"},"preheat_chamber_target_override":{"anyOf":[{"type":"integer","maximum":65.0,"minimum":0.0},{"type":"null"}],"title":"Preheat Chamber Target Override"},"gcode_injection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gcode Injection"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"estimated_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost"},"nozzle_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Nozzle Mapping"},"nozzle_rack_choice":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Nozzle Rack Choice"}},"type":"object","title":"PrintQueueItemUpdate"},"PrintQueueReorder":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PrintQueueReorderItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PrintQueueReorder"},"PrintQueueReorderItem":{"properties":{"id":{"type":"integer","title":"Id"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","position"],"title":"PrintQueueReorderItem"},"PrinterCardPlugs":{"properties":{"plug":{"anyOf":[{"$ref":"#/components/schemas/SmartPlugResponse"},{"type":"null"}]},"scripts":{"items":{"$ref":"#/components/schemas/SmartPlugResponse"},"type":"array","title":"Scripts"}},"type":"object","required":["plug","scripts"],"title":"PrinterCardPlugs","description":"A printer card's power plug and action buttons, in one answer."},"PrinterCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"serial_number":{"type":"string","maxLength":50,"minLength":1,"title":"Serial Number"},"ip_address":{"type":"string","maxLength":253,"pattern":"^(\\d{1,3}(\\.\\d{1,3}){3}|[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?)*)$","title":"Ip Address"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"auto_archive":{"type":"boolean","title":"Auto Archive","default":true},"external_camera_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Url"},"external_camera_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Type"},"external_camera_enabled":{"type":"boolean","title":"External Camera Enabled","default":false},"external_camera_snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Snapshot Url"},"camera_rotation":{"type":"integer","title":"Camera Rotation","default":0},"camera_light_auto":{"type":"boolean","title":"Camera Light Auto","default":false},"access_code":{"type":"string","maxLength":20,"minLength":1,"title":"Access Code"},"wled_config":{"anyOf":[{"$ref":"#/components/schemas/WLEDConfig"},{"type":"null"}]}},"type":"object","required":["name","serial_number","ip_address","access_code"],"title":"PrinterCreate"},"PrinterDiagnosticResult":{"properties":{"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"ip_address":{"type":"string","title":"Ip Address"},"overall":{"type":"string","title":"Overall"},"checks":{"items":{"$ref":"#/components/schemas/DiagnosticCheck"},"type":"array","title":"Checks"}},"type":"object","required":["ip_address","overall","checks"],"title":"PrinterDiagnosticResult","description":"Result of a printer connection diagnostic run."},"PrinterFilesDownloadRequest":{"properties":{"paths":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Paths"},"sizes":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":1000,"title":"Sizes"}},"type":"object","required":["paths"],"title":"PrinterFilesDownloadRequest","description":"Printer paths selected for a bulk download."},"PrinterFilesJobRequest":{"properties":{"paths":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Paths"},"sizes":{"additionalProperties":{"type":"integer"},"type":"object","maxProperties":1000,"title":"Sizes"},"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename","default":"printer-files.zip"},"as_zip":{"type":"boolean","title":"As Zip","default":true}},"type":"object","required":["paths"],"title":"PrinterFilesJobRequest","description":"Browser preparation request, including native download presentation."},"PrinterHASensorCreate":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"entity_id":{"type":"string","maxLength":255,"pattern":"^(binary_sensor|sensor)\\.[a-z0-9_]+$","title":"Entity Id"},"kind":{"type":"string","enum":["binary","numeric"],"title":"Kind","default":"binary"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"block_print":{"type":"boolean","title":"Block Print","default":false},"notify_on_alert":{"type":"boolean","title":"Notify On Alert","default":false},"show_on_printer_card":{"type":"boolean","title":"Show On Printer Card","default":true},"sort_order":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["printer_id","name","entity_id"],"title":"PrinterHASensorCreate"},"PrinterHASensorReading":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"entity_id":{"type":"string","title":"Entity Id"},"kind":{"type":"string","title":"Kind"},"device_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"alerting":{"type":"boolean","title":"Alerting","default":false},"block_print":{"type":"boolean","title":"Block Print","default":false},"reachable":{"type":"boolean","title":"Reachable","default":true},"last_changed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Changed"}},"type":"object","required":["id","name","entity_id","kind"],"title":"PrinterHASensorReading","description":"One sensor's live state, as the printer card renders it."},"PrinterHASensorResponse":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"entity_id":{"type":"string","title":"Entity Id"},"kind":{"type":"string","enum":["binary","numeric"],"title":"Kind","default":"binary"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"block_print":{"type":"boolean","title":"Block Print","default":false},"notify_on_alert":{"type":"boolean","title":"Notify On Alert","default":false},"show_on_printer_card":{"type":"boolean","title":"Show On Printer Card","default":true},"sort_order":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Sort Order","default":0},"id":{"type":"integer","title":"Id"},"last_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last State"},"last_changed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Changed"},"last_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["printer_id","name","entity_id","id","created_at","updated_at"],"title":"PrinterHASensorResponse"},"PrinterHASensorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"entity_id":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^(binary_sensor|sensor)\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Entity Id"},"kind":{"anyOf":[{"type":"string","enum":["binary","numeric"]},{"type":"null"}],"title":"Kind"},"device_class":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Device Class"},"unit":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Unit"},"alert_state":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Alert State"},"alert_above":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Above"},"alert_below":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Below"},"block_print":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Block Print"},"notify_on_alert":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notify On Alert"},"show_on_printer_card":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show On Printer Card"},"sort_order":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"PrinterHASensorUpdate","description":"Partial update. Validated against the merged row in the route, because\nthe per-kind rules above need fields this payload may not carry."},"PrinterLocationAssign":{"properties":{"printer_ids":{"items":{"type":"integer"},"type":"array","maxItems":1000,"minItems":1,"title":"Printer Ids"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["printer_ids"],"title":"PrinterLocationAssign","description":"Move printers into ``location``, or out of any location with null."},"PrinterLocationAssignResult":{"properties":{"moved":{"type":"integer","title":"Moved"}},"type":"object","required":["moved"],"title":"PrinterLocationAssignResult"},"PrinterLocationCreate":{"properties":{"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,50}$"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"PrinterLocationCreate"},"PrinterLocationDelete":{"properties":{"names":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Names"}},"type":"object","required":["names"],"title":"PrinterLocationDelete"},"PrinterLocationDeleteResult":{"properties":{"deleted":{"type":"integer","title":"Deleted"},"printers_ungrouped":{"type":"integer","title":"Printers Ungrouped"}},"type":"object","required":["deleted","printers_ungrouped"],"title":"PrinterLocationDeleteResult"},"PrinterLocationResponse":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"printer_count":{"type":"integer","title":"Printer Count","default":0}},"type":"object","required":["name"],"title":"PrinterLocationResponse"},"PrinterLocationUpdate":{"properties":{"name":{"type":"string","title":"Name"},"new_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name"},"icon":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,50}$"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"PrinterLocationUpdate","description":"Rename and/or restyle the location called ``name``.\n\n``icon`` and ``color`` are only changed when sent; sending null or \"\" clears\nthem."},"PrinterMaintenanceOverview":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"printer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Model"},"total_print_hours":{"type":"number","title":"Total Print Hours"},"maintenance_items":{"items":{"$ref":"#/components/schemas/MaintenanceStatus"},"type":"array","title":"Maintenance Items"},"due_count":{"type":"integer","title":"Due Count"},"warning_count":{"type":"integer","title":"Warning Count"}},"type":"object","required":["printer_id","printer_name","printer_model","total_print_hours","maintenance_items","due_count","warning_count"],"title":"PrinterMaintenanceOverview","description":"Overview of all maintenance items for a printer."},"PrinterMaintenanceResponse":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"type":"integer","title":"Printer Id"},"maintenance_type_id":{"type":"integer","title":"Maintenance Type Id"},"maintenance_type":{"$ref":"#/components/schemas/MaintenanceTypeResponse"},"custom_interval_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Custom Interval Hours"},"enabled":{"type":"boolean","title":"Enabled"},"last_performed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Performed At"},"last_performed_hours":{"type":"number","title":"Last Performed Hours"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","printer_id","maintenance_type_id","maintenance_type","custom_interval_hours","enabled","last_performed_at","last_performed_hours","created_at","updated_at"],"title":"PrinterMaintenanceResponse"},"PrinterMaintenanceUpdate":{"properties":{"custom_interval_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Custom Interval Hours"},"custom_interval_type":{"anyOf":[{"type":"string","pattern":"^(hours|days)$"},{"type":"null"}],"title":"Custom Interval Type"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"PrinterMaintenanceUpdate"},"PrinterResponse":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"serial_number":{"type":"string","maxLength":50,"minLength":1,"title":"Serial Number"},"ip_address":{"type":"string","maxLength":253,"pattern":"^(\\d{1,3}(\\.\\d{1,3}){3}|[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?)*)$","title":"Ip Address"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"auto_archive":{"type":"boolean","title":"Auto Archive","default":true},"external_camera_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Url"},"external_camera_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Type"},"external_camera_enabled":{"type":"boolean","title":"External Camera Enabled","default":false},"external_camera_snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Snapshot Url"},"camera_rotation":{"type":"integer","title":"Camera Rotation","default":0},"camera_light_auto":{"type":"boolean","title":"Camera Light Auto","default":false},"wled_config":{"anyOf":[{"$ref":"#/components/schemas/WLEDStoredConfig"},{"type":"null"}]},"id":{"type":"integer","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"nozzle_count":{"type":"integer","title":"Nozzle Count","default":1},"supports_nozzle_flow_type":{"type":"boolean","title":"Supports Nozzle Flow Type","default":true},"print_hours_offset":{"type":"number","title":"Print Hours Offset","default":0.0},"wear_cost_per_hour":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wear Cost Per Hour"},"dispatch_priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dispatch Priority"},"require_plate_clear":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Plate Clear"},"plate_detection_enabled":{"type":"boolean","title":"Plate Detection Enabled","default":false},"plate_detection_roi":{"anyOf":[{"$ref":"#/components/schemas/PlateDetectionROI"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","serial_number","ip_address","id","is_active","created_at","updated_at"],"title":"PrinterResponse"},"PrinterSensorHistoryResponse":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"series":{"items":{"$ref":"#/components/schemas/HeaterSeries"},"type":"array","title":"Series"}},"type":"object","required":["printer_id","series"],"title":"PrinterSensorHistoryResponse"},"PrinterStatus":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"connected":{"type":"boolean","title":"Connected"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"current_print":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Print"},"subtask_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtask Name"},"gcode_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcode File"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress"},"remaining_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Time"},"layer_num":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Layer Num"},"total_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Layers"},"temperatures":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Temperatures"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"hms_errors":{"items":{"$ref":"#/components/schemas/HMSErrorResponse"},"type":"array","title":"Hms Errors","default":[]},"ams":{"items":{"$ref":"#/components/schemas/AMSUnit"},"type":"array","title":"Ams","default":[]},"ams_exists":{"type":"boolean","title":"Ams Exists","default":false},"vt_tray":{"items":{"$ref":"#/components/schemas/AMSTray"},"type":"array","title":"Vt Tray","default":[]},"sdcard":{"type":"boolean","title":"Sdcard","default":false},"store_to_sdcard":{"type":"boolean","title":"Store To Sdcard","default":false},"timelapse":{"type":"boolean","title":"Timelapse","default":false},"ipcam":{"type":"boolean","title":"Ipcam","default":false},"wifi_signal":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wifi Signal"},"wired_network":{"type":"boolean","title":"Wired Network","default":false},"door_open":{"type":"boolean","title":"Door Open","default":false},"nozzles":{"items":{"$ref":"#/components/schemas/NozzleInfoResponse"},"type":"array","title":"Nozzles","default":[]},"nozzle_rack":{"items":{"$ref":"#/components/schemas/NozzleRackSlot"},"type":"array","title":"Nozzle Rack","default":[]},"print_options":{"anyOf":[{"$ref":"#/components/schemas/PrintOptionsResponse"},{"type":"null"}]},"stg_cur":{"type":"integer","title":"Stg Cur","default":-1},"stg_cur_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stg Cur Name"},"stg":{"items":{"type":"integer"},"type":"array","title":"Stg","default":[]},"airduct_mode":{"type":"integer","title":"Airduct Mode","default":0},"speed_level":{"type":"integer","title":"Speed Level","default":2},"chamber_light":{"type":"boolean","title":"Chamber Light","default":false},"active_extruder":{"type":"integer","title":"Active Extruder","default":0},"ams_mapping":{"items":{"type":"integer"},"type":"array","title":"Ams Mapping","default":[]},"ams_extruder_map":{"additionalProperties":{"type":"integer"},"type":"object","title":"Ams Extruder Map","default":{}},"fila_switch":{"anyOf":[{"$ref":"#/components/schemas/FilaSwitchResponse"},{"type":"null"}]},"ams_switch_inlet":{"additionalProperties":{"type":"string"},"type":"object","title":"Ams Switch Inlet","default":{}},"extruder_slots":{"additionalProperties":{"$ref":"#/components/schemas/ExtruderSlotResponse"},"type":"object","title":"Extruder Slots","default":{}},"tray_now":{"type":"integer","title":"Tray Now","default":255},"tray_change_log":{"items":{"items":{"type":"integer"},"type":"array"},"type":"array","title":"Tray Change Log","default":[]},"expected_tray":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Tray"},"previous_tray":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Previous Tray"},"ams_status_main":{"type":"integer","title":"Ams Status Main","default":0},"ams_status_sub":{"type":"integer","title":"Ams Status Sub","default":0},"mc_print_sub_stage":{"type":"integer","title":"Mc Print Sub Stage","default":0},"last_ams_update":{"type":"number","title":"Last Ams Update","default":0.0},"printable_objects_count":{"type":"integer","title":"Printable Objects Count","default":0},"next_pause":{"anyOf":[{"$ref":"#/components/schemas/NextPause"},{"type":"null"}]},"cooling_fan_speed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cooling Fan Speed"},"big_fan1_speed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Big Fan1 Speed"},"big_fan2_speed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Big Fan2 Speed"},"heatbreak_fan_speed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Heatbreak Fan Speed"},"left_aux_fan_speed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Left Aux Fan Speed"},"exhaust_fan_present":{"type":"boolean","title":"Exhaust Fan Present","default":false},"firmware_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmware Version"},"developer_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Developer Mode"},"ams_filament_backup":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ams Filament Backup"},"awaiting_plate_clear":{"type":"boolean","title":"Awaiting Plate Clear","default":false},"supports_drying":{"type":"boolean","title":"Supports Drying","default":false},"supports_drying_while_printing":{"type":"boolean","title":"Supports Drying While Printing","default":false},"drying_screen_only":{"type":"boolean","title":"Drying Screen Only","default":false},"supports_chamber_heater":{"type":"boolean","title":"Supports Chamber Heater","default":false},"current_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Archive Id"},"current_plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Plate Id"},"panda_breath":{"anyOf":[{"$ref":"#/components/schemas/PandaBreathState"},{"type":"null"}]}},"type":"object","required":["id","name","connected"],"title":"PrinterStatus"},"PrinterStatusResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"serial_number":{"type":"string","title":"Serial Number"},"connected":{"type":"boolean","title":"Connected"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"current_print":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Print"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress"},"remaining_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Time"},"remaining_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Seconds"},"layer_num":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Layer Num"},"total_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Layers"},"subtask_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtask Id"},"hms_errors":{"items":{"$ref":"#/components/schemas/HMSErrorResponse"},"type":"array","title":"Hms Errors","default":[]}},"type":"object","required":["id","name","serial_number","connected","state","current_print","progress","remaining_time"],"title":"PrinterStatusResponse"},"PrinterUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"ip_address":{"anyOf":[{"type":"string","maxLength":253,"pattern":"^(\\d{1,3}(\\.\\d{1,3}){3}|[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?)*)$"},{"type":"null"}],"title":"Ip Address"},"access_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Code"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"auto_archive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Archive"},"print_hours_offset":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Print Hours Offset"},"wear_cost_per_hour":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Wear Cost Per Hour"},"dispatch_priority":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Dispatch Priority"},"require_plate_clear":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Plate Clear"},"external_camera_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Url"},"external_camera_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Type"},"external_camera_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"External Camera Enabled"},"external_camera_snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Camera Snapshot Url"},"camera_rotation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Camera Rotation"},"camera_light_auto":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Camera Light Auto"},"plate_detection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plate Detection Enabled"},"plate_detection_roi":{"anyOf":[{"$ref":"#/components/schemas/PlateDetectionROI"},{"type":"null"}]},"wled_config":{"anyOf":[{"$ref":"#/components/schemas/WLEDConfig"},{"type":"null"}]}},"type":"object","title":"PrinterUpdate"},"ProfileDefaultApplyResult":{"properties":{"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["updated"],"title":"ProfileDefaultApplyResult","description":"How many spools ``Apply to existing spools`` filled something in on."},"ProjectChildPreview":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"status":{"type":"string","title":"Status"},"progress_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress Percent"},"descendant_count":{"type":"integer","title":"Descendant Count","default":0},"total_archives":{"type":"integer","title":"Total Archives","default":0},"completed_prints":{"type":"integer","title":"Completed Prints","default":0},"total_print_time_hours":{"type":"number","title":"Total Print Time Hours","default":0.0},"total_filament_grams":{"type":"number","title":"Total Filament Grams","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0}},"type":"object","required":["id","name","color","status"],"title":"ProjectChildPreview","description":"A sub-project as listed on its parent's page.\n\nThe figures cover the child's *own* subtree, not just its own prints, so\nthe listed rows add up to the parent's roll-up minus the parent's own\nprints (#1264)."},"ProjectCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"target_parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Parts Count"},"target_sets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Sets"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"priority":{"type":"string","title":"Priority","default":"normal"},"budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["name"],"title":"ProjectCreate","description":"Schema for creating a new project."},"ProjectFileProgress":{"properties":{"file_id":{"type":"integer","title":"File Id"},"completed_count":{"type":"integer","title":"Completed Count"}},"type":"object","required":["file_id","completed_count"],"title":"ProjectFileProgress","description":"Completed-run count for one library file inside a project (#1897)."},"ProjectImport":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"status":{"type":"string","title":"Status","default":"active"},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"target_parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Parts Count"},"target_sets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Sets"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"priority":{"type":"string","title":"Priority","default":"normal"},"budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget"},"bom_items":{"items":{"$ref":"#/components/schemas/BOMItemExport"},"type":"array","title":"Bom Items","default":[]},"linked_folders":{"items":{"$ref":"#/components/schemas/LinkedFolderExport"},"type":"array","title":"Linked Folders","default":[]}},"type":"object","required":["name"],"title":"ProjectImport","description":"Schema for importing a project."},"ProjectListResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"status":{"type":"string","title":"Status"},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"target_parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Parts Count"},"target_sets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Sets"},"budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"priority":{"type":"string","title":"Priority","default":"normal"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"archive_count":{"type":"integer","title":"Archive Count","default":0},"total_items":{"type":"integer","title":"Total Items","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"queue_count":{"type":"integer","title":"Queue Count","default":0},"progress_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress Percent"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"child_count":{"type":"integer","title":"Child Count","default":0},"archives":{"items":{"$ref":"#/components/schemas/ArchivePreview"},"type":"array","title":"Archives","default":[]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"cover_image_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Filename"}},"type":"object","required":["id","name","description","color","status","target_count","created_at"],"title":"ProjectListResponse","description":"Schema for project list item (lighter weight)."},"ProjectResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"status":{"type":"string","title":"Status"},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"target_parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Parts Count"},"target_sets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Sets"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"attachments":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Attachments"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"priority":{"type":"string","title":"Priority","default":"normal"},"budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget"},"is_template":{"type":"boolean","title":"Is Template","default":false},"template_source_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Source Id"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"parent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Name"},"children":{"items":{"$ref":"#/components/schemas/ProjectChildPreview"},"type":"array","title":"Children","default":[]},"descendant_count":{"type":"integer","title":"Descendant Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stats":{"anyOf":[{"$ref":"#/components/schemas/ProjectStats"},{"type":"null"}]},"rollup_stats":{"anyOf":[{"$ref":"#/components/schemas/ProjectStats"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"cover_image_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Filename"}},"type":"object","required":["id","name","description","color","status","target_count","created_at","updated_at"],"title":"ProjectResponse","description":"Schema for project response."},"ProjectStats":{"properties":{"total_archives":{"type":"integer","title":"Total Archives","default":0},"total_items":{"type":"integer","title":"Total Items","default":0},"completed_prints":{"type":"integer","title":"Completed Prints","default":0},"failed_prints":{"type":"integer","title":"Failed Prints","default":0},"queued_prints":{"type":"integer","title":"Queued Prints","default":0},"in_progress_prints":{"type":"integer","title":"In Progress Prints","default":0},"total_print_time_hours":{"type":"number","title":"Total Print Time Hours","default":0.0},"total_filament_grams":{"type":"number","title":"Total Filament Grams","default":0.0},"progress_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress Percent"},"parts_progress_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parts Progress Percent"},"estimated_cost":{"type":"number","title":"Estimated Cost","default":0.0},"total_energy_kwh":{"type":"number","title":"Total Energy Kwh","default":0.0},"total_energy_cost":{"type":"number","title":"Total Energy Cost","default":0.0},"total_wear_cost":{"type":"number","title":"Total Wear Cost","default":0.0},"remaining_prints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Prints"},"remaining_parts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Parts"},"bom_total_items":{"type":"integer","title":"Bom Total Items","default":0},"bom_completed_items":{"type":"integer","title":"Bom Completed Items","default":0},"bom_cost":{"type":"number","title":"Bom Cost","default":0.0}},"type":"object","title":"ProjectStats","description":"Statistics for a project."},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"target_parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Parts Count"},"target_sets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Sets"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"ProjectUpdate","description":"Schema for updating a project."},"ProviderType-Output":{"type":"string","enum":["callmebot","ntfy","pushover","telegram","email","discord","webhook","homeassistant","bark","gotify","notify"],"title":"ProviderType","description":"Supported notification provider types."},"PurgePreviewResponse":{"properties":{"count":{"type":"integer","title":"Count"},"total_bytes":{"type":"integer","title":"Total Bytes"},"sample_filenames":{"items":{"type":"string"},"type":"array","title":"Sample Filenames"},"older_than_days":{"type":"integer","title":"Older Than Days"},"include_never_printed":{"type":"boolean","title":"Include Never Printed"}},"type":"object","required":["count","total_bytes","sample_filenames","older_than_days","include_never_printed"],"title":"PurgePreviewResponse"},"PurgeRequest":{"properties":{"older_than_days":{"type":"integer","maximum":3650.0,"minimum":1.0,"title":"Older Than Days"},"include_never_printed":{"type":"boolean","title":"Include Never Printed","default":true}},"type":"object","required":["older_than_days"],"title":"PurgeRequest"},"PurgeResponse":{"properties":{"moved_to_trash":{"type":"integer","title":"Moved To Trash"}},"type":"object","required":["moved_to_trash"],"title":"PurgeResponse"},"QueueAddRequest":{"properties":{"archive_id":{"type":"integer","title":"Archive Id"},"printer_id":{"type":"integer","title":"Printer Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"scheduled_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Time"},"require_previous_success":{"type":"boolean","title":"Require Previous Success","default":false},"auto_off_after":{"type":"boolean","title":"Auto Off After","default":false}},"type":"object","required":["archive_id","printer_id"],"title":"QueueAddRequest"},"QueueAddResponse":{"properties":{"id":{"type":"integer","title":"Id"},"archive_id":{"type":"integer","title":"Archive Id"},"printer_id":{"type":"integer","title":"Printer Id"},"position":{"type":"integer","title":"Position"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","archive_id","printer_id","position","status","message"],"title":"QueueAddResponse"},"QueueStatusResponse":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"pending":{"type":"integer","title":"Pending"},"printing":{"type":"integer","title":"Printing"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"}},"type":"object","required":["printer_id","printer_name","pending","printing","items"],"title":"QueueStatusResponse"},"QueueVariantCreate":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"target_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model"},"plate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plate Id"},"ams_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ams Mapping"},"nozzle_mapping":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Nozzle Mapping"},"nozzle_rack_choice":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Nozzle Rack Choice"},"filament_overrides":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Filament Overrides"}},"type":"object","required":["library_file_id"],"title":"QueueVariantCreate","description":"One candidate file for a cross-model queue item (#671).\n\nPer-file rather than per-item because the settings genuinely differ between\ncandidates: an H2C slice is dual-nozzle and will not share slot count, AMS\nmapping or nozzle mapping with the H2S slice of the same model.\n\n``target_model`` is normally omitted and read from the file's own\n``sliced_for_model``; supply it only for a legacy 3MF that declares none."},"QueueVariantSummary":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"filename":{"type":"string","title":"Filename"},"target_model":{"type":"string","title":"Target Model"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["library_file_id","filename","target_model","position"],"title":"QueueVariantSummary","description":"One candidate on a cross-model queue item, for display (#671)."},"RESTTestConnectionRequest":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"},"method":{"type":"string","title":"Method","default":"GET"},"headers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headers"},"plug_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plug Id"}},"type":"object","required":["url"],"title":"RESTTestConnectionRequest","description":"Request to test a REST smart plug connection."},"RESTTestConnectionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"RESTTestConnectionResponse","description":"Response from REST connection test."},"ResetPasswordRequest":{"properties":{"user_id":{"type":"integer","title":"User Id"}},"type":"object","required":["user_id"],"title":"ResetPasswordRequest"},"ResetPasswordResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ResetPasswordResponse"},"ResolvedProfileDefault":{"properties":{"slicer_filament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament Name"},"presets":{"items":{"$ref":"#/components/schemas/SpoolFilamentPresetBase"},"type":"array","title":"Presets"},"k_profiles":{"items":{"$ref":"#/components/schemas/SpoolKProfileBase"},"type":"array","title":"K Profiles"},"default_ids":{"items":{"type":"integer"},"type":"array","title":"Default Ids"}},"type":"object","title":"ResolvedProfileDefault","description":"What a new spool of a product gets: the all-colours default with the\ncolour's own one laid over it."},"RestoreCategory":{"type":"string","enum":["kprofiles","settings","spools","archives"],"title":"RestoreCategory","description":"Backup categories that can be restored.\n\nCloud profiles are deliberately absent: restoring a preset means writing to\na Bambu or Orca Cloud account, which is a different operation from every\nother category here — those land in the local database, or on a printer the\ninstance already owns. Tracked separately from #2656."},"SMTPSettings":{"properties":{"smtp_host":{"type":"string","title":"Smtp Host"},"smtp_port":{"type":"integer","title":"Smtp Port"},"smtp_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Username"},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"smtp_security":{"type":"string","title":"Smtp Security","default":"starttls"},"smtp_auth_enabled":{"type":"boolean","title":"Smtp Auth Enabled","default":true},"smtp_from_email":{"type":"string","title":"Smtp From Email"},"smtp_from_name":{"type":"string","title":"Smtp From Name","default":"BamBuddy"},"smtp_use_tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Use Tls"}},"type":"object","required":["smtp_host","smtp_port","smtp_from_email"],"title":"SMTPSettings"},"ScaleReadingRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"title":"Device Id"},"weight_grams":{"type":"number","title":"Weight Grams"},"stable":{"type":"boolean","title":"Stable","default":false},"raw_adc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Raw Adc"}},"type":"object","required":["device_id","weight_grams"],"title":"ScaleReadingRequest"},"ScanResult":{"properties":{"findings":{"items":{"$ref":"#/components/schemas/LogFinding"},"type":"array","title":"Findings"},"scanned_entries":{"type":"integer","title":"Scanned Entries"},"log_available":{"type":"boolean","title":"Log Available"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary"}},"type":"object","required":["findings","scanned_entries","log_available","summary"],"title":"ScanResult","description":"Result of a log-health scan."},"ScheduleType":{"type":"string","enum":["hourly","daily","weekly"],"title":"ScheduleType","description":"Backup schedule types."},"ScheduledDryingCreate":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id","default":0},"temp":{"type":"integer","maximum":85.0,"minimum":45.0,"title":"Temp"},"duration_hours":{"type":"integer","maximum":24.0,"minimum":1.0,"title":"Duration Hours"},"filament":{"type":"string","maxLength":50,"title":"Filament","default":""},"rotate_tray":{"type":"boolean","title":"Rotate Tray","default":false},"start_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start After"}},"type":"object","required":["printer_id","temp","duration_hours"],"title":"ScheduledDryingCreate"},"ScheduledDryingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"printer_id":{"type":"integer","title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id"},"temp":{"type":"integer","title":"Temp"},"duration_hours":{"type":"integer","title":"Duration Hours"},"filament":{"type":"string","title":"Filament"},"rotate_tray":{"type":"boolean","title":"Rotate Tray"},"start_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start After"},"status":{"type":"string","title":"Status"},"waiting_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiting Reason"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","printer_id","ams_id","temp","duration_hours","filament","rotate_tray","start_after","status","waiting_reason","error_message","created_at","started_at","completed_at"],"title":"ScheduledDryingResponse"},"SetCalibrationFactorRequest":{"properties":{"known_weight_grams":{"type":"number","exclusiveMinimum":0.0,"title":"Known Weight Grams"},"raw_adc":{"type":"integer","title":"Raw Adc"},"tare_raw_adc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tare Raw Adc"}},"type":"object","required":["known_weight_grams","raw_adc"],"title":"SetCalibrationFactorRequest"},"SetTareRequest":{"properties":{"tare_offset":{"type":"integer","title":"Tare Offset"}},"type":"object","required":["tare_offset"],"title":"SetTareRequest"},"SetupRequest":{"properties":{"auth_enabled":{"type":"boolean","title":"Auth Enabled"},"admin_username":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Admin Username"},"admin_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Admin Password"}},"type":"object","required":["auth_enabled"],"title":"SetupRequest"},"SetupResponse":{"properties":{"auth_enabled":{"type":"boolean","title":"Auth Enabled"},"admin_created":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Admin Created"}},"type":"object","required":["auth_enabled"],"title":"SetupResponse"},"SheetLayoutResponse":{"properties":{"page":{"type":"string","title":"Page"},"label_w_mm":{"type":"number","title":"Label W Mm"},"label_h_mm":{"type":"number","title":"Label H Mm"},"cols":{"type":"integer","title":"Cols"},"rows":{"type":"integer","title":"Rows"},"top_mm":{"type":"number","title":"Top Mm"},"left_mm":{"type":"number","title":"Left Mm"},"col_gap_mm":{"type":"number","title":"Col Gap Mm"},"row_gap_mm":{"type":"number","title":"Row Gap Mm"}},"type":"object","required":["page","label_w_mm","label_h_mm","cols","rows","top_mm","left_mm","col_gap_mm","row_gap_mm"],"title":"SheetLayoutResponse","description":"A stored layout, returned as saved. Not re-validated, so a template saved\nunder looser limits still lists rather than failing the whole response."},"SheetLayoutSpec":{"properties":{"page":{"type":"string","enum":["a4","letter"],"title":"Page"},"label_w_mm":{"type":"number","maximum":300.0,"minimum":40.0,"title":"Label W Mm"},"label_h_mm":{"type":"number","maximum":300.0,"minimum":20.0,"title":"Label H Mm"},"cols":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Cols"},"rows":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Rows"},"top_mm":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Top Mm"},"left_mm":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Left Mm"},"col_gap_mm":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Col Gap Mm","default":0.0},"row_gap_mm":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Row Gap Mm","default":0.0}},"type":"object","required":["page","label_w_mm","label_h_mm","cols","rows","top_mm","left_mm"],"title":"SheetLayoutSpec","description":"A sheet layout as a request carries it. Lengths are in millimetres."},"ShoppingListItemCreate":{"properties":{"material":{"type":"string","title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"quantity_spools":{"type":"integer","title":"Quantity Spools","default":1},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["material"],"title":"ShoppingListItemCreate"},"ShoppingListItemResponse":{"properties":{"id":{"type":"integer","title":"Id"},"material":{"type":"string","title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"quantity_spools":{"type":"integer","title":"Quantity Spools"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status"},"purchased_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchased At"},"added_at":{"type":"string","title":"Added At"}},"type":"object","required":["id","material","subtype","brand","color_name","quantity_spools","note","status","purchased_at","added_at"],"title":"ShoppingListItemResponse"},"ShoppingListItemStatusUpdate":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"ShoppingListItemStatusUpdate"},"SkippedSpool":{"properties":{"location":{"type":"string","title":"Location"},"reason":{"type":"string","const":"No RFID tag and no slot assignment","title":"Reason"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["location","reason"],"title":"SkippedSpool","description":"Information about a skipped spool during sync."},"SliceRequest":{"properties":{"printer_preset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Preset Id","description":"DEPRECATED: prefer printer_preset. LocalPreset id with preset_type='printer'."},"process_preset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Process Preset Id","description":"DEPRECATED: prefer process_preset. LocalPreset id with preset_type='process'."},"filament_preset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Filament Preset Id","description":"DEPRECATED: prefer filament_preset. LocalPreset id with preset_type='filament'."},"printer_preset":{"anyOf":[{"$ref":"#/components/schemas/PresetRef"},{"type":"null"}]},"process_preset":{"anyOf":[{"$ref":"#/components/schemas/PresetRef"},{"type":"null"}]},"filament_preset":{"anyOf":[{"$ref":"#/components/schemas/PresetRef"},{"type":"null"}]},"filament_presets":{"items":{"$ref":"#/components/schemas/PresetRef"},"type":"array","title":"Filament Presets"},"filament_colours":{"items":{"type":"string"},"type":"array","title":"Filament Colours","description":"Per-slot filament colour as ``#RRGGBB`` / ``#RRGGBBAA``, in the same plate-slot order as ``filament_presets``. Written onto each resolved filament profile as ``filament_colour`` so the sliced file records the colour actually being printed instead of the slicer's built-in default (#2977). A shorter list than ``filament_presets`` leaves the remaining slots to the fallback chain; an empty string in any position does the same for that one slot. An omitted list (older clients) falls back to the preset's own ``default_filament_colour``, then to the colour the source file's plate was designed with."},"plate":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Plate","description":"Plate number to slice. ``None`` defaults to plate 1 on the sidecar (matches the pre-multi-plate behaviour). ``0`` is the sidecar's 'all plates' sentinel — produces a single multi-plate 3MF whose ``Metadata/plate_N.gcode`` entries cover every plate in the source. ``>= 1`` slices that one plate."},"export_3mf":{"type":"boolean","title":"Export 3Mf","description":"If true, request a 3MF response with embedded G-code instead of raw G-code.","default":false},"design_overrides":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Design Overrides","description":"3MF only. Process setting keys from the source file's ``different_settings_to_system`` to carry onto the picked process preset (#2622) — the designer's own wall count, infill, first-layer height and so on, which ``--load-settings`` would otherwise discard. Only keys the source actually lists as changed are applied; anything else is ignored. An empty list is not the same answer as ``None``: it says the caller was shown the file's settings and chose none of them, which also holds back the support carry-over (#1881) for the support keys the file offered, while ``None`` — a caller that predates the per-key choice — leaves that carry-over unconditional."},"process_overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Process Overrides","description":"The user's own process-setting edits from the slice modal's settings panel, as a sparse ``{option_key: value}`` map (layer height, wall count, supports, speeds — OrcaSlicer's process parameter set). Written into the process JSON *after* the source's support settings and the designer's carried tweaks, so an explicit choice here wins over both. Values are normalised to the string forms a process preset stores; keys that aren't valid config keys are dropped rather than failing the slice. ``None``/empty leaves the picked preset untouched."},"use_embedded_settings":{"type":"boolean","title":"Use Embedded Settings","description":"3MF only. Slice using the file's embedded ``Metadata/project_settings.config`` (the designer's own tweaks — wall count, infill, etc.) instead of the picked printer/process/filament triplet. This is the 'slice as designed' path: no ``--load-settings`` override, so a MakerWorld author's settings survive. Ignored for STL / plain-model 3MF (no embedded profile to honour). The preset refs are still required by the validator but go unused on this path. Only makes sense when the picked printer matches the design's target model — the UI gates the toggle on that; there is no cross-printer re-targeting here (that is exactly what the profile path is for).","default":false},"bed_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Bed Type","description":"Override the process preset's curr_bed_type for this slice. One of the BambuStudio / OrcaSlicer values: 'Cool Plate', 'Engineering Plate', 'High Temp Plate' (Smooth PEI), 'Textured PEI Plate', 'Supertack Plate', 'Textured Cool Plate' (OrcaSlicer only). Any other name is refused (#3359). None ⇒ inherit from the process preset unchanged (#1337)."},"auto_orient":{"type":"boolean","title":"Auto Orient","description":"Let the slicer pick each object's orientation before slicing (BambuStudio / OrcaSlicer ``--orient 1``, the GUI's 'Auto orient'). Off by default: it rotates geometry, so a model the designer laid flat on purpose would silently change. Applies on the embedded-settings path too — it is a CLI action, not a profile value (#2548).","default":false},"auto_arrange":{"type":"boolean","title":"Auto Arrange","description":"Let the slicer lay the objects out on the plate before slicing (``--arrange 1``, the GUI's 'Auto arrange'). Off by default: it repositions objects, discarding a deliberate layout. Forced on regardless for cross-nozzle-class re-slices, where the source's coordinates land in the target's dead zone (#1493). Applies on the embedded-settings path too (#2548).","default":false}},"type":"object","title":"SliceRequest","description":"Body for `POST /library/files/{file_id}/slice`.\n\nTwo preset shapes are accepted per slot for backwards-compatibility:\n\n- **Legacy** — bare integer ``*_preset_id`` fields point into the\n  ``local_presets`` table. Existing clients (and stale browser tabs after\n  a Bambuddy upgrade) keep working unchanged.\n- **Source-aware** — ``*_preset`` carries an explicit\n  ``{source, id}``. Required for cloud / standard tiers; also accepted\n  (and equivalent) for local presets when the client is on the new modal.\n\nExactly one of each pair must be set; the validator normalises legacy\ninteger ids into a ``PresetRef(source='local', id=str(id))`` so the\ndownstream resolver only deals with one shape."},"SlicerPipelineCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"printer_preset":{"$ref":"#/components/schemas/PresetRef"},"process_preset":{"$ref":"#/components/schemas/PresetRef"},"filament_presets":{"items":{"$ref":"#/components/schemas/PresetRef"},"type":"array","minItems":1,"title":"Filament Presets","description":"One PresetRef per AMS slot. Order matches the source plate's filament-slot order."},"bed_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Bed Type"}},"type":"object","required":["name","printer_preset","process_preset","filament_presets"],"title":"SlicerPipelineCreate","description":"Payload for POST /slicer-pipelines."},"SlicerPipelineListResponse":{"properties":{"pipelines":{"items":{"$ref":"#/components/schemas/SlicerPipelineResponse"},"type":"array","title":"Pipelines","default":[]}},"type":"object","title":"SlicerPipelineListResponse","description":"Wraps the list so the response stays additive when run/job counts get\nsurfaced in PR B+ (e.g. a ``meta`` field for last-run timestamps)."},"SlicerPipelineResponse":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"printer_preset":{"$ref":"#/components/schemas/PresetRef"},"process_preset":{"$ref":"#/components/schemas/PresetRef"},"filament_presets":{"items":{"$ref":"#/components/schemas/PresetRef"},"type":"array","minItems":1,"title":"Filament Presets","description":"One PresetRef per AMS slot. Order matches the source plate's filament-slot order."},"bed_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Bed Type"},"id":{"type":"integer","title":"Id"},"created_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"target_kind":{"type":"string","enum":["specific_printer","printer_class"],"title":"Target Kind","default":"printer_class"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"target_model_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model Class"},"fanout_strategy":{"type":"string","enum":["max_parallel","fill_one_first","round_robin"],"title":"Fanout Strategy","default":"max_parallel"}},"type":"object","required":["name","printer_preset","process_preset","filament_presets","id","created_by","created_at","updated_at"],"title":"SlicerPipelineResponse","description":"A single pipeline as returned by the API."},"SlicerPipelineUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"printer_preset":{"anyOf":[{"$ref":"#/components/schemas/PresetRef"},{"type":"null"}]},"process_preset":{"anyOf":[{"$ref":"#/components/schemas/PresetRef"},{"type":"null"}]},"filament_presets":{"anyOf":[{"items":{"$ref":"#/components/schemas/PresetRef"},"type":"array","minItems":1},{"type":"null"}],"title":"Filament Presets"},"bed_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Bed Type"},"target_kind":{"anyOf":[{"type":"string","enum":["specific_printer","printer_class"]},{"type":"null"}],"title":"Target Kind"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"target_model_class":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Target Model Class"},"fanout_strategy":{"anyOf":[{"type":"string","enum":["max_parallel","fill_one_first","round_robin"]},{"type":"null"}],"title":"Fanout Strategy"}},"type":"object","title":"SlicerPipelineUpdate","description":"Payload for PUT /slicer-pipelines/{id}. All fields optional; only those\npresent are written. Preset and filament list are replaced wholesale when\nset (we don't support partial filament-slot edits)."},"SlicerSetting":{"properties":{"setting_id":{"type":"string","title":"Setting Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"updated_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated Time"},"is_custom":{"type":"boolean","title":"Is Custom","default":false},"filament_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Id"}},"type":"object","required":["setting_id","name","type"],"title":"SlicerSetting","description":"A slicer setting/preset."},"SlicerSettingCreate":{"properties":{"type":{"type":"string","title":"Type","description":"Preset type: 'filament', 'print', or 'printer'"},"name":{"type":"string","title":"Name","description":"Display name for the preset"},"base_id":{"type":"string","title":"Base Id","description":"Base preset ID to inherit from"},"version":{"type":"string","title":"Version","description":"Version string for the preset","default":"2.0.0.0"},"setting":{"additionalProperties":true,"type":"object","title":"Setting","description":"Setting key-value pairs (delta from base)"}},"type":"object","required":["type","name","base_id"],"title":"SlicerSettingCreate","description":"Request to create a new slicer preset."},"SlicerSettingDeleteResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"SlicerSettingDeleteResponse","description":"Response from deleting a preset."},"SlicerSettingUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"New display name"},"setting":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Setting","description":"Setting key-value pairs to update"}},"type":"object","title":"SlicerSettingUpdate","description":"Request to update an existing slicer preset."},"SlicerSettingsResponse":{"properties":{"filament":{"items":{"$ref":"#/components/schemas/SlicerSetting"},"type":"array","title":"Filament","default":[]},"printer":{"items":{"$ref":"#/components/schemas/SlicerSetting"},"type":"array","title":"Printer","default":[]},"process":{"items":{"$ref":"#/components/schemas/SlicerSetting"},"type":"array","title":"Process","default":[]}},"type":"object","title":"SlicerSettingsResponse","description":"Response containing slicer settings."},"SmartPlugControl":{"properties":{"action":{"type":"string","enum":["on","off","toggle"],"title":"Action"}},"type":"object","required":["action"],"title":"SmartPlugControl"},"SmartPlugCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"plug_type":{"type":"string","enum":["tasmota","homeassistant","mqtt","rest"],"title":"Plug Type","default":"tasmota"},"ip_address":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"},{"type":"null"}],"title":"Ip Address"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"ha_entity_id":{"anyOf":[{"type":"string","pattern":"^(switch|light|input_boolean|script)\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Entity Id"},"ha_power_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Power Entity"},"ha_energy_today_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Today Entity"},"ha_energy_total_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Total Entity"},"mqtt_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Topic"},"mqtt_power_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Power Topic"},"mqtt_power_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Power Path"},"mqtt_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Power Multiplier","default":1.0},"mqtt_energy_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Energy Topic"},"mqtt_energy_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Path"},"mqtt_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Multiplier","default":1.0},"mqtt_energy_total_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Total Path"},"mqtt_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Total Multiplier","default":1.0},"mqtt_state_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt State Topic"},"mqtt_state_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt State Path"},"mqtt_state_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Mqtt State On Value"},"mqtt_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Multiplier","default":1.0},"rest_on_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest On Url"},"rest_on_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest On Body"},"rest_off_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Off Url"},"rest_off_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Off Body"},"rest_method":{"anyOf":[{"type":"string","enum":["GET","POST","PUT","PATCH"]},{"type":"null"}],"title":"Rest Method"},"rest_headers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Headers"},"rest_status_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Status Url"},"rest_status_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Status Path"},"rest_status_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Rest Status On Value"},"rest_power_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Power Url"},"rest_power_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Power Path"},"rest_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Power Multiplier","default":1.0},"rest_energy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Energy Url"},"rest_energy_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Path"},"rest_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Multiplier","default":1.0},"rest_energy_total_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Total Path"},"rest_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Total Multiplier","default":1.0},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"controls_printer_power":{"type":"boolean","title":"Controls Printer Power","default":true},"enabled":{"type":"boolean","title":"Enabled","default":true},"auto_on":{"type":"boolean","title":"Auto On","default":true},"auto_off":{"type":"boolean","title":"Auto Off","default":true},"auto_off_persistent":{"type":"boolean","title":"Auto Off Persistent","default":false},"off_delay_mode":{"type":"string","enum":["time","temperature"],"title":"Off Delay Mode","default":"time"},"off_delay_minutes":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Off Delay Minutes","default":5},"off_temp_threshold":{"type":"integer","maximum":150.0,"minimum":30.0,"title":"Off Temp Threshold","default":70},"off_temp_source":{"type":"string","enum":["nozzle","bed"],"title":"Off Temp Source","default":"nozzle"},"off_bed_temp_threshold":{"type":"integer","maximum":100.0,"minimum":20.0,"title":"Off Bed Temp Threshold","default":35},"auto_off_after_drying":{"type":"boolean","title":"Auto Off After Drying","default":false},"off_delay_after_drying_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Off Delay After Drying Minutes","default":10},"power_alert_enabled":{"type":"boolean","title":"Power Alert Enabled","default":false},"power_alert_high":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert High"},"power_alert_low":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert Low"},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"schedule_on_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule On Time"},"schedule_off_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule Off Time"},"show_in_switchbar":{"type":"boolean","title":"Show In Switchbar","default":false},"show_on_printer_card":{"type":"boolean","title":"Show On Printer Card","default":true}},"type":"object","required":["name"],"title":"SmartPlugCreate"},"SmartPlugEnergy":{"properties":{"power":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Power"},"voltage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Voltage"},"current":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current"},"today":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Today"},"yesterday":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Yesterday"},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total"},"factor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Factor"},"apparent_power":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apparent Power"},"reactive_power":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reactive Power"}},"type":"object","title":"SmartPlugEnergy","description":"Energy monitoring data from a smart plug."},"SmartPlugResponse":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"plug_type":{"type":"string","enum":["tasmota","homeassistant","mqtt","rest"],"title":"Plug Type","default":"tasmota"},"ip_address":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"},{"type":"null"}],"title":"Ip Address"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"ha_entity_id":{"anyOf":[{"type":"string","pattern":"^(switch|light|input_boolean|script)\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Entity Id"},"ha_power_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Power Entity"},"ha_energy_today_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Today Entity"},"ha_energy_total_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Total Entity"},"mqtt_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Topic"},"mqtt_power_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Power Topic"},"mqtt_power_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Power Path"},"mqtt_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Power Multiplier","default":1.0},"mqtt_energy_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Energy Topic"},"mqtt_energy_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Path"},"mqtt_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Multiplier","default":1.0},"mqtt_energy_total_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Total Path"},"mqtt_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Total Multiplier","default":1.0},"mqtt_state_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt State Topic"},"mqtt_state_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt State Path"},"mqtt_state_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Mqtt State On Value"},"mqtt_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Multiplier","default":1.0},"rest_on_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest On Url"},"rest_on_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest On Body"},"rest_off_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Off Url"},"rest_off_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Off Body"},"rest_method":{"anyOf":[{"type":"string","enum":["GET","POST","PUT","PATCH"]},{"type":"null"}],"title":"Rest Method"},"rest_headers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Headers"},"rest_status_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Status Url"},"rest_status_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Status Path"},"rest_status_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Rest Status On Value"},"rest_power_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Power Url"},"rest_power_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Power Path"},"rest_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Power Multiplier","default":1.0},"rest_energy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Energy Url"},"rest_energy_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Path"},"rest_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Multiplier","default":1.0},"rest_energy_total_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Total Path"},"rest_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Total Multiplier","default":1.0},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"controls_printer_power":{"type":"boolean","title":"Controls Printer Power","default":true},"enabled":{"type":"boolean","title":"Enabled","default":true},"auto_on":{"type":"boolean","title":"Auto On","default":true},"auto_off":{"type":"boolean","title":"Auto Off","default":true},"auto_off_persistent":{"type":"boolean","title":"Auto Off Persistent","default":false},"off_delay_mode":{"type":"string","enum":["time","temperature"],"title":"Off Delay Mode","default":"time"},"off_delay_minutes":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Off Delay Minutes","default":5},"off_temp_threshold":{"type":"integer","maximum":150.0,"minimum":30.0,"title":"Off Temp Threshold","default":70},"off_temp_source":{"type":"string","enum":["nozzle","bed"],"title":"Off Temp Source","default":"nozzle"},"off_bed_temp_threshold":{"type":"integer","maximum":100.0,"minimum":20.0,"title":"Off Bed Temp Threshold","default":35},"auto_off_after_drying":{"type":"boolean","title":"Auto Off After Drying","default":false},"off_delay_after_drying_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Off Delay After Drying Minutes","default":10},"power_alert_enabled":{"type":"boolean","title":"Power Alert Enabled","default":false},"power_alert_high":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert High"},"power_alert_low":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert Low"},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"schedule_on_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule On Time"},"schedule_off_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule Off Time"},"show_in_switchbar":{"type":"boolean","title":"Show In Switchbar","default":false},"show_on_printer_card":{"type":"boolean","title":"Show On Printer Card","default":true},"id":{"type":"integer","title":"Id"},"last_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last State"},"last_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked"},"auto_off_executed":{"type":"boolean","title":"Auto Off Executed","default":false},"power_alert_last_triggered":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Power Alert Last Triggered"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"SmartPlugResponse"},"SmartPlugResponseWithSecret":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"plug_type":{"type":"string","enum":["tasmota","homeassistant","mqtt","rest"],"title":"Plug Type","default":"tasmota"},"ip_address":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"},{"type":"null"}],"title":"Ip Address"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"ha_entity_id":{"anyOf":[{"type":"string","pattern":"^(switch|light|input_boolean|script)\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Entity Id"},"ha_power_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Power Entity"},"ha_energy_today_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Today Entity"},"ha_energy_total_entity":{"anyOf":[{"type":"string","pattern":"^sensor\\.[a-z0-9_]+$"},{"type":"null"}],"title":"Ha Energy Total Entity"},"mqtt_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Topic"},"mqtt_power_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Power Topic"},"mqtt_power_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Power Path"},"mqtt_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Power Multiplier","default":1.0},"mqtt_energy_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt Energy Topic"},"mqtt_energy_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Path"},"mqtt_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Multiplier","default":1.0},"mqtt_energy_total_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt Energy Total Path"},"mqtt_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Energy Total Multiplier","default":1.0},"mqtt_state_topic":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Mqtt State Topic"},"mqtt_state_path":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Mqtt State Path"},"mqtt_state_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Mqtt State On Value"},"mqtt_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Mqtt Multiplier","default":1.0},"rest_on_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest On Url"},"rest_on_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest On Body"},"rest_off_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Off Url"},"rest_off_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Off Body"},"rest_method":{"anyOf":[{"type":"string","enum":["GET","POST","PUT","PATCH"]},{"type":"null"}],"title":"Rest Method"},"rest_headers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Headers"},"rest_status_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Status Url"},"rest_status_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Status Path"},"rest_status_on_value":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Rest Status On Value"},"rest_power_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Power Url"},"rest_power_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Power Path"},"rest_power_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Power Multiplier","default":1.0},"rest_energy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rest Energy Url"},"rest_energy_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Path"},"rest_energy_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Multiplier","default":1.0},"rest_energy_total_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rest Energy Total Path"},"rest_energy_total_multiplier":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Rest Energy Total Multiplier","default":1.0},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"controls_printer_power":{"type":"boolean","title":"Controls Printer Power","default":true},"enabled":{"type":"boolean","title":"Enabled","default":true},"auto_on":{"type":"boolean","title":"Auto On","default":true},"auto_off":{"type":"boolean","title":"Auto Off","default":true},"auto_off_persistent":{"type":"boolean","title":"Auto Off Persistent","default":false},"off_delay_mode":{"type":"string","enum":["time","temperature"],"title":"Off Delay Mode","default":"time"},"off_delay_minutes":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Off Delay Minutes","default":5},"off_temp_threshold":{"type":"integer","maximum":150.0,"minimum":30.0,"title":"Off Temp Threshold","default":70},"off_temp_source":{"type":"string","enum":["nozzle","bed"],"title":"Off Temp Source","default":"nozzle"},"off_bed_temp_threshold":{"type":"integer","maximum":100.0,"minimum":20.0,"title":"Off Bed Temp Threshold","default":35},"auto_off_after_drying":{"type":"boolean","title":"Auto Off After Drying","default":false},"off_delay_after_drying_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Off Delay After Drying Minutes","default":10},"power_alert_enabled":{"type":"boolean","title":"Power Alert Enabled","default":false},"power_alert_high":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert High"},"power_alert_low":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert Low"},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"schedule_on_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule On Time"},"schedule_off_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule Off Time"},"show_in_switchbar":{"type":"boolean","title":"Show In Switchbar","default":false},"show_on_printer_card":{"type":"boolean","title":"Show On Printer Card","default":true},"id":{"type":"integer","title":"Id"},"last_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last State"},"last_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked"},"auto_off_executed":{"type":"boolean","title":"Auto Off Executed","default":false},"power_alert_last_triggered":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Power Alert Last Triggered"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"SmartPlugResponseWithSecret","description":"SmartPlugResponse with the REST URLs and bodies. Returned only to callers\nwho may edit plugs (or with authentication off)."},"SmartPlugStatus":{"properties":{"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"reachable":{"type":"boolean","title":"Reachable","default":true},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"energy":{"anyOf":[{"$ref":"#/components/schemas/SmartPlugEnergy"},{"type":"null"}]}},"type":"object","title":"SmartPlugStatus"},"SmartPlugTestConnection":{"properties":{"ip_address":{"type":"string","pattern":"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$","title":"Ip Address"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"plug_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plug Id"}},"type":"object","required":["ip_address"],"title":"SmartPlugTestConnection"},"SmartPlugUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"plug_type":{"anyOf":[{"type":"string","enum":["tasmota","homeassistant","mqtt","rest"]},{"type":"null"}],"title":"Plug Type"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"ha_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Entity Id"},"ha_power_entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Power Entity"},"ha_energy_today_entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Energy Today Entity"},"ha_energy_total_entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ha Energy Total Entity"},"mqtt_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Topic"},"mqtt_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Mqtt Multiplier"},"mqtt_power_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Power Topic"},"mqtt_power_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Power Path"},"mqtt_power_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Mqtt Power Multiplier"},"mqtt_energy_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Energy Topic"},"mqtt_energy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Energy Path"},"mqtt_energy_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Mqtt Energy Multiplier"},"mqtt_energy_total_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt Energy Total Path"},"mqtt_energy_total_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Mqtt Energy Total Multiplier"},"mqtt_state_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt State Topic"},"mqtt_state_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt State Path"},"mqtt_state_on_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mqtt State On Value"},"rest_on_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest On Url"},"rest_on_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest On Body"},"rest_off_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Off Url"},"rest_off_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Off Body"},"rest_method":{"anyOf":[{"type":"string","enum":["GET","POST","PUT","PATCH"]},{"type":"null"}],"title":"Rest Method"},"rest_headers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Headers"},"rest_status_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Status Url"},"rest_status_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Status Path"},"rest_status_on_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Status On Value"},"rest_power_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Power Url"},"rest_power_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Power Path"},"rest_power_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Rest Power Multiplier"},"rest_energy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Energy Url"},"rest_energy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Energy Path"},"rest_energy_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Rest Energy Multiplier"},"rest_energy_total_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rest Energy Total Path"},"rest_energy_total_multiplier":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Rest Energy Total Multiplier"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"controls_printer_power":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Controls Printer Power"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"auto_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto On"},"auto_off":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Off"},"auto_off_persistent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Off Persistent"},"off_delay_mode":{"anyOf":[{"type":"string","enum":["time","temperature"]},{"type":"null"}],"title":"Off Delay Mode"},"off_delay_minutes":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":0.0},{"type":"null"}],"title":"Off Delay Minutes"},"off_temp_threshold":{"anyOf":[{"type":"integer","maximum":150.0,"minimum":30.0},{"type":"null"}],"title":"Off Temp Threshold"},"off_temp_source":{"anyOf":[{"type":"string","enum":["nozzle","bed"]},{"type":"null"}],"title":"Off Temp Source"},"off_bed_temp_threshold":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":20.0},{"type":"null"}],"title":"Off Bed Temp Threshold"},"auto_off_after_drying":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Off After Drying"},"off_delay_after_drying_minutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Off Delay After Drying Minutes"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"power_alert_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Power Alert Enabled"},"power_alert_high":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert High"},"power_alert_low":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Power Alert Low"},"schedule_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Enabled"},"schedule_on_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule On Time"},"schedule_off_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}],"title":"Schedule Off Time"},"show_in_switchbar":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show In Switchbar"},"show_on_printer_card":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show On Printer Card"}},"type":"object","title":"SmartPlugUpdate"},"SponsorPromptCheckResponse":{"properties":{"show":{"type":"boolean","title":"Show"},"milestone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["show"],"title":"SponsorPromptCheckResponse","description":"Result of GET /sponsor-prompt/check."},"SponsorPromptDismissRequest":{"properties":{"milestone":{"type":"string","title":"Milestone"}},"type":"object","required":["milestone"],"title":"SponsorPromptDismissRequest","description":"Body of POST /sponsor-prompt/dismiss."},"SpoolAssignmentCreate":{"properties":{"spool_id":{"type":"integer","title":"Spool Id"},"printer_id":{"type":"integer","title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","title":"Tray Id"},"move":{"type":"boolean","title":"Move","default":false}},"type":"object","required":["spool_id","printer_id","ams_id","tray_id"],"title":"SpoolAssignmentCreate"},"SpoolAssignmentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"spool_id":{"type":"integer","title":"Spool Id"},"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Name"},"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","title":"Tray Id"},"fingerprint_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint Color"},"fingerprint_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"spool":{"anyOf":[{"$ref":"#/components/schemas/SpoolResponse"},{"type":"null"}]},"configured":{"type":"boolean","title":"Configured","default":false},"pending_config":{"type":"boolean","title":"Pending Config","default":false},"ams_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ams Label"},"printer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Model"}},"type":"object","required":["id","spool_id","printer_id","ams_id","tray_id","created_at"],"title":"SpoolAssignmentResponse"},"SpoolBulkCreate":{"properties":{"spool":{"$ref":"#/components/schemas/SpoolCreate"},"quantity":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Quantity","default":1}},"type":"object","required":["spool"],"title":"SpoolBulkCreate"},"SpoolCreate":{"properties":{"material":{"type":"string","maxLength":50,"minLength":1,"title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string","pattern":"^[0-9A-Fa-f]{8}$"},{"type":"null"}],"title":"Rgba"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"label_weight":{"type":"integer","title":"Label Weight","default":1000},"core_weight":{"type":"integer","title":"Core Weight","default":250},"core_weight_catalog_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Core Weight Catalog Id"},"weight_used":{"type":"number","minimum":0.0,"title":"Weight Used","default":0},"weight_used_baseline":{"type":"number","title":"Weight Used Baseline","default":0},"slicer_filament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament Name"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"data_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Origin"},"tag_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Type"},"cost_per_kg":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Cost Per Kg"},"weight_locked":{"type":"boolean","title":"Weight Locked","default":false},"last_scale_weight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Scale Weight"},"last_weighed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Weighed At"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"low_stock_threshold_pct":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Low Stock Threshold Pct"},"material_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Material Number"},"storage_location":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Storage Location"},"location_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["material"],"title":"SpoolCreate"},"SpoolFilamentPresetBase":{"properties":{"printer_model":{"type":"string","maxLength":50,"minLength":1,"title":"Printer Model"},"nozzle_diameter":{"type":"string","maxLength":10,"title":"Nozzle Diameter","default":""},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"}},"type":"object","required":["printer_model"],"title":"SpoolFilamentPresetBase","description":"One per-printer-model slicer preset override for a spool.\n\n``nozzle_diameter`` defaults to \"\" meaning \"any nozzle of this model\". The\nspool form always sends a concrete size; the empty form is for API clients\nthat want one value to cover a model. Lengths match the columns, which are wider than\n``Spool.slicer_filament`` so a preset id that fits the Spoolman write\nschema cannot truncate on the way in."},"SpoolFilamentPresetResponse":{"properties":{"printer_model":{"type":"string","maxLength":50,"minLength":1,"title":"Printer Model"},"nozzle_diameter":{"type":"string","maxLength":10,"title":"Nozzle Diameter","default":""},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"},"id":{"type":"integer","title":"Id"},"spool_id":{"type":"integer","title":"Spool Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["printer_model","id","spool_id","created_at"],"title":"SpoolFilamentPresetResponse"},"SpoolKProfileBase":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"extruder":{"type":"integer","title":"Extruder","default":0},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter","default":"0.4"},"nozzle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nozzle Type"},"k_value":{"type":"number","title":"K Value"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"cali_idx":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cali Idx"},"setting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Id"}},"type":"object","required":["printer_id","k_value"],"title":"SpoolKProfileBase"},"SpoolKProfileResponse":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"extruder":{"type":"integer","title":"Extruder","default":0},"nozzle_diameter":{"type":"string","title":"Nozzle Diameter","default":"0.4"},"nozzle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nozzle Type"},"k_value":{"type":"number","title":"K Value"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"cali_idx":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cali Idx"},"setting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Id"},"id":{"type":"integer","title":"Id"},"spool_id":{"type":"integer","title":"Spool Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["printer_id","k_value","id","spool_id","created_at"],"title":"SpoolKProfileResponse"},"SpoolResponse":{"properties":{"material":{"type":"string","maxLength":50,"minLength":1,"title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rgba"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"label_weight":{"type":"integer","title":"Label Weight","default":1000},"core_weight":{"type":"integer","title":"Core Weight","default":250},"core_weight_catalog_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Core Weight Catalog Id"},"weight_used":{"type":"number","title":"Weight Used","default":0},"weight_used_baseline":{"type":"number","title":"Weight Used Baseline","default":0},"slicer_filament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament Name"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"data_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Origin"},"tag_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Type"},"cost_per_kg":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Cost Per Kg"},"weight_locked":{"type":"boolean","title":"Weight Locked","default":false},"last_scale_weight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Scale Weight"},"last_weighed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Weighed At"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"low_stock_threshold_pct":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Low Stock Threshold Pct"},"material_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Material Number"},"storage_location":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Storage Location"},"location_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Location Id"},"id":{"type":"integer","title":"Id"},"added_full":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Added Full"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used"},"last_dried_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Dried At"},"last_dried_temp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Dried Temp"},"last_dried_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Dried Hours"},"encode_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Encode Time"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"k_profiles":{"items":{"$ref":"#/components/schemas/SpoolKProfileResponse"},"type":"array","title":"K Profiles","default":[]},"suppliers":{"items":{"$ref":"#/components/schemas/SpoolSupplierResponse"},"type":"array","title":"Suppliers","default":[]}},"type":"object","required":["material","id","created_at","updated_at"],"title":"SpoolResponse"},"SpoolSlotAssignmentRequest":{"properties":{"spoolman_spool_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Spoolman Spool Id"},"printer_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Printer Id"},"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Tray Id"},"move":{"type":"boolean","title":"Move","default":false}},"type":"object","required":["spoolman_spool_id","printer_id","ams_id","tray_id"],"title":"SpoolSlotAssignmentRequest"},"SpoolSupplierLinkInput":{"properties":{"supplier_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Supplier Id"},"supplier_article_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Supplier Article Number"},"quoted_price_per_kg":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Quoted Price Per Kg"},"is_purchase_source":{"type":"boolean","title":"Is Purchase Source","default":false}},"type":"object","required":["supplier_id"],"title":"SpoolSupplierLinkInput","description":"One spool-to-supplier assignment as written by the spool dialog."},"SpoolSupplierResponse":{"properties":{"id":{"type":"integer","title":"Id"},"supplier_id":{"type":"integer","title":"Supplier Id"},"supplier_name":{"type":"string","title":"Supplier Name"},"supplier_article_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Article Number"},"quoted_price_per_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quoted Price Per Kg"},"is_purchase_source":{"type":"boolean","title":"Is Purchase Source","default":false}},"type":"object","required":["id","supplier_id","supplier_name"],"title":"SpoolSupplierResponse"},"SpoolTagLinkRequest":{"properties":{"tag_uid":{"anyOf":[{"type":"string","maxLength":30,"minLength":8,"pattern":"^[0-9A-Fa-f]+$"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string","maxLength":32,"minLength":32,"pattern":"^[0-9A-Fa-f]+$"},{"type":"null"}],"title":"Tray Uuid"}},"type":"object","title":"SpoolTagLinkRequest"},"SpoolUpdate":{"properties":{"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"color_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string","pattern":"^[0-9A-Fa-f]{8}$"},{"type":"null"}],"title":"Rgba"},"extra_colors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Colors"},"effect_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effect Type"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"label_weight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Weight"},"core_weight":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Core Weight"},"core_weight_catalog_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Core Weight Catalog Id"},"weight_used":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Weight Used"},"slicer_filament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slicer Filament Name"},"nozzle_temp_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Min"},"nozzle_temp_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nozzle Temp Max"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"tag_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tray Uuid"},"data_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Origin"},"tag_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Type"},"cost_per_kg":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Cost Per Kg"},"weight_locked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Weight Locked"},"last_dried_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Dried At"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"low_stock_threshold_pct":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":1.0},{"type":"null"}],"title":"Low Stock Threshold Pct"},"material_number":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Material Number"},"storage_location":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Storage Location"},"location_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Location Id"}},"type":"object","title":"SpoolUpdate"},"SpoolUsageHistoryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"spool_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spool Id"},"spoolman_spool_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spoolman Spool Id"},"printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Printer Id"},"print_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Name"},"weight_used":{"type":"number","title":"Weight Used"},"percent_used":{"type":"integer","title":"Percent Used"},"status":{"type":"string","title":"Status"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","weight_used","percent_used","status","created_at"],"title":"SpoolUsageHistoryResponse"},"SpoolWeightUpdate":{"properties":{"weight_grams":{"type":"number","maximum":100000.0,"minimum":0.0,"title":"Weight Grams"}},"type":"object","required":["weight_grams"],"title":"SpoolWeightUpdate"},"SpoolmanBulkIdsRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"SpoolmanBulkIdsRequest"},"SpoolmanBulkUpdateRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"},"update":{"$ref":"#/components/schemas/SpoolmanInventoryUpdate"}},"type":"object","required":["ids","update"],"title":"SpoolmanBulkUpdateRequest"},"SpoolmanFilamentPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"spool_weight":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Spool Weight"},"keep_existing_spools":{"type":"boolean","title":"Keep Existing Spools","default":false}},"type":"object","title":"SpoolmanFilamentPatch"},"SpoolmanInventoryBulkCreate":{"properties":{"spool":{"$ref":"#/components/schemas/SpoolmanInventoryCreate"},"quantity":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Quantity","default":1}},"type":"object","required":["spool"],"title":"SpoolmanInventoryBulkCreate"},"SpoolmanInventoryCreate":{"properties":{"spoolman_filament_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Spoolman Filament Id"},"material":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Material"},"subtype":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Rgba","description":"6-digit hex (RRGGBB) or 8-digit (RRGGBBAA)"},"label_weight":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Label Weight","default":1000},"core_weight":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Core Weight","default":250},"weight_used":{"type":"number","maximum":100000.0,"minimum":0.0,"title":"Weight Used","default":0.0},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"cost_per_kg":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Per Kg"},"storage_location":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Storage Location"},"location_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Location Id"},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"}},"type":"object","title":"SpoolmanInventoryCreate"},"SpoolmanInventoryUpdate":{"properties":{"material":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Material"},"subtype":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Subtype"},"brand":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Brand"},"color_name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Color Name"},"rgba":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Rgba","description":"6-digit hex (RRGGBB) or 8-digit (RRGGBBAA)"},"label_weight":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Label Weight"},"core_weight":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Core Weight"},"weight_used":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Weight Used"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"cost_per_kg":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Per Kg"},"tag_uid":{"anyOf":[{"type":"string","maxLength":30,"minLength":8,"pattern":"^[0-9A-Fa-f]+$"},{"type":"null"}],"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string","maxLength":32,"minLength":32,"pattern":"^[0-9A-Fa-f]+$"},{"type":"null"}],"title":"Tray Uuid"},"storage_location":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Storage Location"},"location_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Location Id"},"slicer_filament":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slicer Filament"},"slicer_filament_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slicer Filament Name"},"last_dried_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Dried At"}},"type":"object","title":"SpoolmanInventoryUpdate"},"SpoolmanSlotAssignmentEnriched":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Name"},"ams_id":{"type":"integer","title":"Ams Id"},"tray_id":{"type":"integer","title":"Tray Id"},"spoolman_spool_id":{"type":"integer","title":"Spoolman Spool Id"},"ams_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ams Label"},"printer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Printer Model"}},"type":"object","required":["printer_id","printer_name","ams_id","tray_id","spoolman_spool_id","ams_label"],"title":"SpoolmanSlotAssignmentEnriched","description":"Slot assignment row enriched with printer name and AMS label.\n\n``printer_name`` is null only in the cascade-deleted edge case where the\nPrinter relation has been removed. ``ams_label`` is null when no\n``ams_labels`` row matches the slot's MQTT serial (or the synthetic\n``f\"p{printer_id}a{ams_id}\"`` fallback key)."},"SpoolmanStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"connected":{"type":"boolean","title":"Connected"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"native_tags":{"type":"boolean","title":"Native Tags","default":false}},"type":"object","required":["enabled","connected","url"],"title":"SpoolmanStatus","description":"Spoolman connection status."},"StartLoggingResponse":{"properties":{"started":{"type":"boolean","title":"Started"},"was_debug":{"type":"boolean","title":"Was Debug"}},"type":"object","required":["started","was_debug"],"title":"StartLoggingResponse"},"StopLoggingResponse":{"properties":{"logs":{"type":"string","title":"Logs"}},"type":"object","required":["logs"],"title":"StopLoggingResponse"},"SubnetScanRequest":{"properties":{"subnet":{"type":"string","title":"Subnet"},"timeout":{"type":"number","title":"Timeout","default":1.0}},"type":"object","required":["subnet"],"title":"SubnetScanRequest","description":"Request to scan a subnet."},"SubnetScanStatus":{"properties":{"running":{"type":"boolean","title":"Running"},"scanned":{"type":"integer","title":"Scanned"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["running","scanned","total"],"title":"SubnetScanStatus","description":"Subnet scan status response."},"SupplierCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"customer_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Customer Number"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["name"],"title":"SupplierCreate"},"SupplierResponse":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"customer_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Customer Number"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"id":{"type":"integer","title":"Id"},"spool_count":{"type":"integer","title":"Spool Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"SupplierResponse"},"SupplierStats":{"properties":{"supplier_id":{"type":"integer","title":"Supplier Id"},"supplier_name":{"type":"string","title":"Supplier Name"},"spool_count":{"type":"integer","title":"Spool Count"},"remaining_g":{"type":"number","title":"Remaining G"},"consumed_g":{"type":"number","title":"Consumed G"},"cost":{"type":"number","title":"Cost"}},"type":"object","required":["supplier_id","supplier_name","spool_count","remaining_g","consumed_g","cost"],"title":"SupplierStats","description":"Per-supplier inventory aggregate (#2988), purchase-source spools only.\n\n``spool_count`` and ``remaining_g`` cover active spools bought at this\nsupplier; ``consumed_g`` and ``cost`` sum the recorded usage history of\nevery purchase-source spool, archived included."},"SupplierUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"customer_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Customer Number"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"SupplierUpdate"},"SyncResult":{"properties":{"success":{"type":"boolean","title":"Success"},"synced_count":{"type":"integer","title":"Synced Count"},"skipped_count":{"type":"integer","title":"Skipped Count","default":0},"skipped":{"items":{"$ref":"#/components/schemas/SkippedSpool"},"type":"array","title":"Skipped","default":[]},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["success","synced_count","errors"],"title":"SyncResult","description":"Result of a Spoolman sync operation."},"SystemCommandRequest":{"properties":{"command":{"type":"string","maxLength":50,"title":"Command","description":"System command: reboot, shutdown, restart_daemon, restart_browser"}},"type":"object","required":["command"],"title":"SystemCommandRequest"},"SystemCommandResultRequest":{"properties":{"command":{"type":"string","maxLength":50,"title":"Command"},"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Message"}},"type":"object","required":["command","success"],"title":"SystemCommandResultRequest"},"SystemConfigRequest":{"properties":{"backend_url":{"type":"string","maxLength":255,"minLength":1,"title":"Backend Url"},"api_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["backend_url"],"title":"SystemConfigRequest"},"TOTPDisableRequest":{"properties":{"code":{"type":"string","maxLength":128,"title":"Code"}},"type":"object","required":["code"],"title":"TOTPDisableRequest","description":"Requires a valid TOTP code OR a backup code to disable TOTP."},"TOTPEnableRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"TOTPEnableRequest"},"TOTPEnableResponse":{"properties":{"message":{"type":"string","title":"Message"},"backup_codes":{"items":{"type":"string"},"type":"array","title":"Backup Codes"}},"type":"object","required":["message","backup_codes"],"title":"TOTPEnableResponse"},"TOTPSetupRequest":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Code"}},"type":"object","title":"TOTPSetupRequest","description":"Optional body for POST /auth/2fa/totp/setup.\n\nOnly required when re-initialising setup while an active TOTP record exists.\nProvide the current TOTP code (from the existing authenticator app) to\nconfirm intent — mirrors the verification requirement in disable_totp."},"TOTPSetupResponse":{"properties":{"secret":{"type":"string","title":"Secret"},"qr_code_b64":{"type":"string","title":"Qr Code B64"},"issuer":{"type":"string","title":"Issuer"}},"type":"object","required":["secret","qr_code_b64","issuer"],"title":"TOTPSetupResponse","description":"Returned when a user initiates TOTP setup.  The frontend should display\nthe QR code image (base64 PNG) and ask the user to scan it, then call\n/auth/2fa/totp/enable with a valid code to confirm."},"TagBulkAssignRequest":{"properties":{"file_ids":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"File Ids"},"tag_ids":{"items":{"type":"integer"},"type":"array","title":"Tag Ids"},"action":{"type":"string","pattern":"^(add|remove|replace)$","title":"Action","default":"add"}},"type":"object","required":["file_ids"],"title":"TagBulkAssignRequest","description":"Bulk tag assignment payload.\n\n``action='add'``      → append tags to every listed file (idempotent on dup).\n``action='remove'``   → strip the listed tags from every listed file.\n``action='replace'``  → REPLACE the tag set on every listed file with the\n                        exact set in ``tag_ids`` (omitting tag_ids clears\n                        them all)."},"TagBulkAssignResponse":{"properties":{"files_updated":{"type":"integer","title":"Files Updated"},"associations_added":{"type":"integer","title":"Associations Added"},"associations_removed":{"type":"integer","title":"Associations Removed"}},"type":"object","required":["files_updated","associations_added","associations_removed"],"title":"TagBulkAssignResponse","description":"Result of a bulk-assign call."},"TagCreate":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"TagCreate","description":"Create a new tag (catalog row)."},"TagRemovedRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"title":"Device Id"},"tag_uid":{"type":"string","maxLength":32,"title":"Tag Uid"}},"type":"object","required":["device_id","tag_uid"],"title":"TagRemovedRequest"},"TagResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"file_count":{"type":"integer","title":"File Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","file_count","created_at","updated_at"],"title":"TagResponse","description":"Tag with the count of files currently using it."},"TagScannedRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"title":"Device Id"},"tag_uid":{"type":"string","maxLength":32,"title":"Tag Uid"},"tray_uuid":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[0-9A-Fa-f]*$"},{"type":"null"}],"title":"Tray Uuid"},"sak":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sak"},"tag_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Tag Type"},"raw_blocks":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Raw Blocks"}},"type":"object","required":["device_id","tag_uid"],"title":"TagScannedRequest"},"TagSummary":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TagSummary","description":"Compact tag projection — embedded in file listings (#1268)."},"TagUpdate":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"TagUpdate","description":"Rename a tag. ``name`` is required — there's nothing else to update."},"TailscaleStatusResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"fqdn":{"type":"string","title":"Fqdn"},"hostname":{"type":"string","title":"Hostname"},"tailnet_name":{"type":"string","title":"Tailnet Name"},"tailscale_ips":{"items":{"type":"string"},"type":"array","title":"Tailscale Ips"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["available","fqdn","hostname","tailnet_name","tailscale_ips","error"],"title":"TailscaleStatusResponse"},"TasmotaScanRequest":{"properties":{"from_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Ip"},"to_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Ip"},"timeout":{"type":"number","title":"Timeout","default":1.0}},"type":"object","title":"TasmotaScanRequest","description":"Request to scan for Tasmota devices."},"TasmotaScanStatus":{"properties":{"running":{"type":"boolean","title":"Running"},"scanned":{"type":"integer","title":"Scanned"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["running","scanned","total"],"title":"TasmotaScanStatus","description":"Tasmota scan status response."},"TemplatePreviewRequest":{"properties":{"event_type":{"type":"string","title":"Event Type"},"title_template":{"type":"string","title":"Title Template"},"body_template":{"type":"string","title":"Body Template"}},"type":"object","required":["event_type","title_template","body_template"],"title":"TemplatePreviewRequest","description":"Request to preview a template with sample data."},"TemplatePreviewResponse":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"}},"type":"object","required":["title","body"],"title":"TemplatePreviewResponse","description":"Response with rendered template preview."},"TestSMTPRequest":{"properties":{"test_recipient":{"type":"string","title":"Test Recipient"},"smtp":{"anyOf":[{"$ref":"#/components/schemas/SMTPSettings"},{"type":"null"}]}},"type":"object","required":["test_recipient"],"title":"TestSMTPRequest"},"TestSMTPResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"TestSMTPResponse"},"TimelineEvent":{"properties":{"event_type":{"type":"string","title":"Event Type"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["event_type","timestamp","title"],"title":"TimelineEvent","description":"Schema for a timeline event."},"TransactionEditRequest":{"properties":{"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"TransactionEditRequest"},"TrashFile":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"file_size":{"type":"integer","title":"File Size"},"thumbnail_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Path"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"folder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Name"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"},"auto_purge_at":{"type":"string","format":"date-time","title":"Auto Purge At"}},"type":"object","required":["id","filename","file_size","deleted_at","auto_purge_at"],"title":"TrashFile"},"TrashListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrashFile"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"retention_days":{"type":"integer","title":"Retention Days"}},"type":"object","required":["items","total","retention_days"],"title":"TrashListResponse"},"TrashSettings":{"properties":{"retention_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Retention Days"},"auto_purge_enabled":{"type":"boolean","title":"Auto Purge Enabled","default":false},"auto_purge_days":{"type":"integer","maximum":3650.0,"minimum":7.0,"title":"Auto Purge Days","default":90},"auto_purge_include_never_printed":{"type":"boolean","title":"Auto Purge Include Never Printed","default":true}},"type":"object","required":["retention_days"],"title":"TrashSettings"},"TwoFAStatusResponse":{"properties":{"totp_enabled":{"type":"boolean","title":"Totp Enabled"},"email_otp_enabled":{"type":"boolean","title":"Email Otp Enabled"},"backup_codes_remaining":{"type":"integer","title":"Backup Codes Remaining"}},"type":"object","required":["totp_enabled","email_otp_enabled","backup_codes_remaining"],"title":"TwoFAStatusResponse"},"TwoFAVerifyRequest":{"properties":{"pre_auth_token":{"type":"string","maxLength":128,"title":"Pre Auth Token"},"code":{"type":"string","maxLength":8,"minLength":6,"title":"Code"},"method":{"type":"string","enum":["totp","email","backup"],"title":"Method","default":"totp"}},"type":"object","required":["pre_auth_token","code"],"title":"TwoFAVerifyRequest"},"TwoFAVerifyResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["access_token","user"],"title":"TwoFAVerifyResponse"},"UnifiedPreset":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"source":{"type":"string","enum":["orca_cloud","cloud","local","standard"],"title":"Source"},"filament_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Type"},"filament_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Colour"},"compatible_printers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Compatible Printers"},"inherits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inherits"}},"type":"object","required":["id","name","source"],"title":"UnifiedPreset","description":"A single printer/process/filament preset with its source.\n\nThe ``id`` shape varies by source:\n  - cloud  → Bambu Cloud setting_id (e.g. ``\"PFUS9ac902733670a9\"``)\n  - local  → stringified DB row id from ``local_presets``\n  - standard → preset name as written in the bundled JSON (the slicer\n               resolves bundled profiles by name during inheritance walk)\n\nThe frontend treats ``id`` as opaque; the slice dispatch path uses\n``(source, id)`` to fetch / pass the preset content to the sidecar.\n\n``filament_type`` and ``filament_colour`` are populated for the filament\nslot only — they let the SliceModal pre-pick a preset per plate slot in\nthe multi-color flow by matching against the source 3MF's per-slot type\nand color. Populated when the underlying preset JSON exposes them; left\nas ``None`` on bundled profiles where colour is a runtime spool attribute.\n\n``compatible_printers`` is the slicer's own list of printer-preset names a\nprocess / filament preset declares itself valid for. Populated for the\nlocal tier (stored at import time); left ``None`` for cloud (no per-preset\ndetail is fetched — rate limits) and standard (the sidecar's bundled\nlisting doesn't expose it). The SliceModal uses it to filter the\nprocess / filament dropdowns by the selected printer (#1325); when it is\n``None`` the modal falls back to matching the preset name against the\n``@BBL <code>`` printer-model registry.\n\n``inherits`` is the preset a printer preset was saved from, for the local\nand OrcaSlicer Cloud tiers. A printer preset saved under a name of its own\n(\"Bambu Lab H2D 0.4 nozzle - Skew\") is listed in no process's\n``compatible_printers`` and its name says nothing reliable about the\nmodel, so the SliceModal matches against this parent as well (#3250).\nOrcaSlicer Cloud filament presets carry it too: one saved with only the\nkeys the user changed takes its material from this parent (#3403).\n\n``stock`` marks a Bambu Cloud preset as one of Bambu's own (the cloud's\n\"public\" list) rather than the user's. Internal only: the listing drops\nthe Standard presets of the same names (#3386)."},"UnifiedPresetsBySlot":{"properties":{"printer":{"items":{"$ref":"#/components/schemas/UnifiedPreset"},"type":"array","title":"Printer","default":[]},"process":{"items":{"$ref":"#/components/schemas/UnifiedPreset"},"type":"array","title":"Process","default":[]},"filament":{"items":{"$ref":"#/components/schemas/UnifiedPreset"},"type":"array","title":"Filament","default":[]}},"type":"object","title":"UnifiedPresetsBySlot","description":"Three slots in the order Bambu Studio / OrcaSlicer use."},"UnifiedPresetsResponse":{"properties":{"orca_cloud":{"$ref":"#/components/schemas/UnifiedPresetsBySlot","default":{"printer":[],"process":[],"filament":[]}},"cloud":{"$ref":"#/components/schemas/UnifiedPresetsBySlot","default":{"printer":[],"process":[],"filament":[]}},"local":{"$ref":"#/components/schemas/UnifiedPresetsBySlot","default":{"printer":[],"process":[],"filament":[]}},"standard":{"$ref":"#/components/schemas/UnifiedPresetsBySlot","default":{"printer":[],"process":[],"filament":[]}},"cloud_status":{"type":"string","enum":["ok","not_authenticated","expired","unreachable"],"title":"Cloud Status","default":"ok"},"orca_cloud_status":{"type":"string","enum":["ok","not_authenticated","expired","unreachable"],"title":"Orca Cloud Status","default":"ok"},"stock_aliases":{"additionalProperties":{"$ref":"#/components/schemas/PresetRef"},"type":"object","title":"Stock Aliases","default":{}}},"type":"object","title":"UnifiedPresetsResponse","description":"Every tier carries its full preset list — no cross-tier dedup, except\nthat Bambu Cloud's stock presets are listed once, under Bambu Cloud (#3386).\n\nPriority order: ``local > orca_cloud > cloud > standard``. The order\ndrives auto-pick (first non-empty tier wins, name-lookup walks tiers\nin this order, filament scoring tiebreaks by per-tier bonus) and\ndetermines the visual rendering order of the SliceModal's optgroups,\nbut a name that exists in multiple tiers appears in EACH of their\ngroups so the user can pick any source.\n\n``cloud_status`` / ``orca_cloud_status`` let the frontend show a banner\nexplaining why a cloud tier is empty when the user expected to see it\n(signed out / token expired / network down). Each tier has its own\nstatus because they can fail independently.\n\n``stock_aliases`` maps each dropped Standard preset (``\"standard:<id>\"``)\nto its Bambu Cloud stock twin, so a pipeline or AMS slot saved with the\nStandard copy still finds it."},"UnlinkedSpool":{"properties":{"id":{"type":"integer","title":"Id"},"filament_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Name"},"filament_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Vendor"},"filament_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Material"},"filament_color_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filament Color Hex"},"remaining_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Remaining Weight"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["id","filament_name","filament_vendor","filament_material","filament_color_hex","remaining_weight","location"],"title":"UnlinkedSpool","description":"A Spoolman spool that is not linked to any AMS tray."},"UpdateSpoolWeightRequest":{"properties":{"spool_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Spool Id"},"weight_grams":{"type":"number","maximum":100000.0,"minimum":0.0,"title":"Weight Grams"}},"type":"object","required":["spool_id","weight_grams"],"title":"UpdateSpoolWeightRequest"},"UserBrief":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","username","is_active"],"title":"UserBrief","description":"Brief user info for embedding in group response."},"UserCreate":{"properties":{"username":{"type":"string","maxLength":150,"title":"Username"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role","default":"user"},"group_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Group Ids"}},"type":"object","required":["username"],"title":"UserCreate"},"UserEmailPreferenceResponse":{"properties":{"notify_print_start":{"type":"boolean","title":"Notify Print Start"},"notify_print_complete":{"type":"boolean","title":"Notify Print Complete"},"notify_print_failed":{"type":"boolean","title":"Notify Print Failed"},"notify_print_stopped":{"type":"boolean","title":"Notify Print Stopped"}},"type":"object","required":["notify_print_start","notify_print_complete","notify_print_failed","notify_print_stopped"],"title":"UserEmailPreferenceResponse","description":"Response schema for user email notification preferences."},"UserEmailPreferenceUpdate":{"properties":{"notify_print_start":{"type":"boolean","title":"Notify Print Start"},"notify_print_complete":{"type":"boolean","title":"Notify Print Complete"},"notify_print_failed":{"type":"boolean","title":"Notify Print Failed"},"notify_print_stopped":{"type":"boolean","title":"Notify Print Stopped"}},"type":"object","required":["notify_print_start","notify_print_complete","notify_print_failed","notify_print_stopped"],"title":"UserEmailPreferenceUpdate","description":"Update schema for user email notification preferences."},"UserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"auth_source":{"type":"string","title":"Auth Source","default":"local"},"groups":{"items":{"$ref":"#/components/schemas/GroupBrief"},"type":"array","title":"Groups","default":[]},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]},"filament_policies":{"anyOf":[{"items":{"$ref":"#/components/schemas/FilamentPolicyBrief"},"type":"array"},{"type":"null"}],"title":"Filament Policies"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","username","role","is_active","is_admin","created_at"],"title":"UserResponse"},"UserSlim":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"}},"type":"object","required":["id","username"],"title":"UserSlim","description":"Just enough to resolve a user id to a display name (#1894).\n\nDeliberately narrower than ``UserResponse``: no email, role, auth source,\ngroup membership or permission set. Adding a field here widens what every\n``can_read_status`` API key can read about every account, so treat this\nshape as the contract rather than a starting point."},"UserUpdate":{"properties":{"username":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"group_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Group Ids"}},"type":"object","title":"UserUpdate"},"VPDiagnosticResult":{"properties":{"vp_id":{"type":"integer","title":"Vp Id"},"vp_name":{"type":"string","title":"Vp Name"},"mode":{"type":"string","title":"Mode"},"overall":{"type":"string","title":"Overall"},"checks":{"items":{"$ref":"#/components/schemas/DiagnosticCheck"},"type":"array","title":"Checks"}},"type":"object","required":["vp_id","vp_name","mode","overall","checks"],"title":"VPDiagnosticResult","description":"Result of a virtual-printer setup diagnostic run.\n\nMirrors ``PrinterDiagnosticResult`` but keyed to a virtual printer: the\nchecks probe the VP's own bind IP and local services rather than a remote\nprinter. ``checks[].id`` values are VP-specific (enabled, running,\nbind_interface, access_code, target_printer, port_ftps, port_mqtt,\nport_bind, certificate); the frontend renders the localized title and\nfix text from id + status."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariantGroupCreate":{"properties":{"members":{"items":{"$ref":"#/components/schemas/VariantGroupMemberRequest"},"type":"array","minItems":2,"title":"Members"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"}},"type":"object","required":["members"],"title":"VariantGroupCreate","description":"Declare that these files are the same job sliced for different printers.\n\nOrder is significant: it is the priority used when more than one printer is\nidle at the same moment. Two members minimum — a group of one expresses no\nchoice."},"VariantGroupMemberRequest":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"target_model":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Target Model"}},"type":"object","required":["library_file_id"],"title":"VariantGroupMemberRequest","description":"One file joining a variant group.\n\n``target_model`` is optional and normally omitted — it is read from the\nfile's own ``sliced_for_model``. Supply it only for a legacy 3MF that\ndeclares no model, where there is nothing else to go on."},"VariantGroupMemberResponse":{"properties":{"library_file_id":{"type":"integer","title":"Library File Id"},"filename":{"type":"string","title":"Filename"},"target_model":{"type":"string","title":"Target Model"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["library_file_id","filename","target_model","position"],"title":"VariantGroupMemberResponse","description":"A file within a group, with the model it will be dispatched to."},"VariantGroupResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"members":{"items":{"$ref":"#/components/schemas/VariantGroupMemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["id","name","members"],"title":"VariantGroupResponse","description":"A variant group and its members, in priority order."},"VariantGroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"member_file_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Member File Ids"}},"type":"object","title":"VariantGroupUpdate","description":"Rename a group and/or re-order its members.\n\n``member_file_ids`` must list exactly the group's current members; a partial\nlist is rejected rather than guessing where the omitted ones belong."},"VirtualPrinterCreate":{"properties":{"name":{"type":"string","title":"Name","default":"Bambuddy"},"enabled":{"type":"boolean","title":"Enabled","default":false},"mode":{"type":"string","title":"Mode","default":"library"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"access_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Code"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"library_folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library Folder Id"},"queue_remove_after_print":{"type":"boolean","title":"Queue Remove After Print","default":false},"auto_dispatch":{"type":"boolean","title":"Auto Dispatch","default":true},"queue_force_color_match":{"type":"boolean","title":"Queue Force Color Match","default":false},"save_ams_mapping":{"type":"boolean","title":"Save Ams Mapping","default":false},"gcode_injection":{"type":"boolean","title":"Gcode Injection","default":false},"bind_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bind Ip"},"remote_interface_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Interface Ip"}},"type":"object","title":"VirtualPrinterCreate"},"VirtualPrinterUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"access_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Code"},"target_printer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Printer Id"},"library_folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library Folder Id"},"queue_remove_after_print":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Remove After Print"},"auto_dispatch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Dispatch"},"queue_force_color_match":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queue Force Color Match"},"save_ams_mapping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Save Ams Mapping"},"gcode_injection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gcode Injection"},"bind_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bind Ip"},"remote_interface_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Interface Ip"},"tailscale_disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tailscale Disabled"}},"type":"object","title":"VirtualPrinterUpdate"},"WLEDConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"presets":{"$ref":"#/components/schemas/WLEDPresets"},"finished_timeout_seconds":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":0.0},{"type":"null"}],"title":"Finished Timeout Seconds"}},"type":"object","title":"WLEDConfig"},"WLEDConnectionInfo":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},"type":"object","title":"WLEDConnectionInfo"},"WLEDPreset":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"WLEDPreset"},"WLEDPresetListRequest":{"properties":{"base_url":{"type":"string","maxLength":500,"title":"Base Url"}},"type":"object","required":["base_url"],"title":"WLEDPresetListRequest"},"WLEDPresetTestRequest":{"properties":{"base_url":{"type":"string","maxLength":500,"title":"Base Url"},"preset_id":{"type":"integer","maximum":250.0,"minimum":1.0,"title":"Preset Id"}},"type":"object","required":["base_url","preset_id"],"title":"WLEDPresetTestRequest"},"WLEDPresets":{"properties":{"idle":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Idle"},"prepare":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Prepare"},"printing":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Printing"},"paused":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Paused"},"finished":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Finished"},"error":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Error"},"queue_waiting":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Queue Waiting"},"filament_problem":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Filament Problem"},"hms_error":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Hms Error"},"offline":{"anyOf":[{"type":"integer","maximum":250.0,"minimum":1.0},{"type":"null"}],"title":"Offline"}},"type":"object","title":"WLEDPresets"},"WLEDStoredConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"presets":{"$ref":"#/components/schemas/WLEDPresets"},"finished_timeout_seconds":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":0.0},{"type":"null"}],"title":"Finished Timeout Seconds"}},"type":"object","title":"WLEDStoredConfig"},"WalletAdjustmentRequest":{"properties":{"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"}},"type":"object","required":["amount"],"title":"WalletAdjustmentRequest"},"WalletAdjustmentResponse":{"properties":{"transaction":{"$ref":"#/components/schemas/WalletTransactionResponse"},"balance":{"$ref":"#/components/schemas/WalletBalanceResponse"}},"type":"object","required":["transaction","balance"],"title":"WalletAdjustmentResponse"},"WalletBalanceResponse":{"properties":{"user_id":{"type":"integer","title":"User Id"},"balance":{"type":"number","title":"Balance"},"currency":{"type":"string","title":"Currency"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["user_id","balance","currency"],"title":"WalletBalanceResponse"},"WalletTransactionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WalletTransactionResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"WalletTransactionListResponse"},"WalletTransactionResponse":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"cost_center_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Center Id"},"transaction_type":{"type":"string","enum":["print_charge","deposit","withdraw","manual_adjustment"],"title":"Transaction Type"},"amount":{"type":"number","title":"Amount"},"balance_after":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance After"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_by_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By User Id"},"print_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Print Run Id"},"print_archive_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Archive Id"},"print_queue_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Print Queue Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","transaction_type","amount","created_at"],"title":"WalletTransactionResponse"},"WriteTagRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"title":"Device Id"},"spool_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Spool Id"}},"type":"object","required":["device_id","spool_id"],"title":"WriteTagRequest"},"WriteTagResultRequest":{"properties":{"device_id":{"type":"string","maxLength":50,"title":"Device Id"},"spool_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Spool Id"},"tag_uid":{"type":"string","maxLength":30,"minLength":8,"pattern":"^[0-9A-Fa-f]+$","title":"Tag Uid"},"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Message"}},"type":"object","required":["device_id","spool_id","tag_uid","success"],"title":"WriteTagResultRequest"},"ZipExtractError":{"properties":{"filename":{"type":"string","title":"Filename"},"error":{"type":"string","title":"Error"}},"type":"object","required":["filename","error"],"title":"ZipExtractError","description":"Error for a file that couldn't be extracted."},"ZipExtractResponse":{"properties":{"extracted":{"type":"integer","title":"Extracted"},"folders_created":{"type":"integer","title":"Folders Created"},"files":{"items":{"$ref":"#/components/schemas/ZipExtractResult"},"type":"array","title":"Files"},"errors":{"items":{"$ref":"#/components/schemas/ZipExtractError"},"type":"array","title":"Errors"}},"type":"object","required":["extracted","folders_created","files","errors"],"title":"ZipExtractResponse","description":"Schema for ZIP extraction response."},"ZipExtractResult":{"properties":{"filename":{"type":"string","title":"Filename"},"file_id":{"type":"integer","title":"File Id"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["filename","file_id"],"title":"ZipExtractResult","description":"Result for a single file extracted from ZIP."},"backend__app__api__routes__firmware__FirmwareUpdateInfo":{"properties":{"printer_id":{"type":"integer","title":"Printer Id"},"printer_name":{"type":"string","title":"Printer Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"current_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version"},"latest_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Version"},"update_available":{"type":"boolean","title":"Update Available"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"release_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Notes"},"available_versions":{"items":{"$ref":"#/components/schemas/AvailableFirmwareVersion"},"type":"array","title":"Available Versions"}},"type":"object","required":["printer_id","printer_name","model","current_version","latest_version","update_available"],"title":"FirmwareUpdateInfo","description":"Firmware update information for a printer."},"backend__app__api__routes__firmware__FirmwareUpdatesResponse":{"properties":{"updates":{"items":{"$ref":"#/components/schemas/backend__app__api__routes__firmware__FirmwareUpdateInfo"},"type":"array","title":"Updates"},"updates_available":{"type":"integer","title":"Updates Available","description":"Number of printers with updates available","default":0}},"type":"object","title":"FirmwareUpdatesResponse","description":"Response containing firmware updates for all printers."},"backend__app__api__routes__obico__TestConnectionRequest":{"properties":{"url":{"type":"string","title":"Url"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"type":"object","required":["url"],"title":"TestConnectionRequest"},"backend__app__api__routes__octoeverywhere__TestConnectionRequest":{"properties":{"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"confidence":{"anyOf":[{"type":"string","enum":["lowest","low","medium","high","highest"]},{"type":"null"}],"title":"Confidence"}},"type":"object","title":"TestConnectionRequest"},"backend__app__schemas__cloud__FirmwareUpdateInfo":{"properties":{"device_id":{"type":"string","title":"Device Id","description":"Device ID"},"device_name":{"type":"string","title":"Device Name","description":"Device name"},"current_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version","description":"Currently installed firmware version"},"latest_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Version","description":"Latest available firmware version"},"update_available":{"type":"boolean","title":"Update Available","description":"Whether an update is available","default":false},"release_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Notes","description":"Release notes for the latest version"}},"type":"object","required":["device_id","device_name"],"title":"FirmwareUpdateInfo","description":"Firmware update information for a device."},"backend__app__schemas__cloud__FirmwareUpdatesResponse":{"properties":{"updates":{"items":{"$ref":"#/components/schemas/backend__app__schemas__cloud__FirmwareUpdateInfo"},"type":"array","title":"Updates"},"updates_available":{"type":"integer","title":"Updates Available","description":"Total number of devices with updates available","default":0}},"type":"object","title":"FirmwareUpdatesResponse","description":"Response containing firmware updates for all devices."},"backend__app__schemas__github_backup__ProviderType":{"type":"string","enum":["github","gitlab","gitea","forgejo"],"title":"ProviderType","description":"Git hosting provider types."},"backend__app__schemas__notification__ProviderType":{"type":"string","enum":["callmebot","ntfy","pushover","telegram","email","discord","webhook","homeassistant","bark","gotify","notify"],"title":"ProviderType","description":"Supported notification provider types."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}