{"openapi":"3.0.2","info":{"title":"Sixfab Developer API","description":"ALPON device endpoints (`/assets/{asset_id}/alpon/*`) have moved to the [ALPON API](https://docs.alpon.ai) and respond with `410 Gone`. ALPON devices are managed in the [ALPON Console](https://console.alpon.ai).","contact":{"name":"Sixfab Inc.","url":"https://sixfab.com","email":"hello@sixfab.com"},"version":"0.1.0","x-logo":{"url":"/logo"}},"servers":[{"url":"https://api.sixfab.com/v1"}],"paths":{"/assets":{"get":{"tags":["Assets"],"summary":"Get Assets","description":"List all assets as pages containing 100 assets per page\n\n<div style=\"background-color: rgba(255, 193, 7, 0.1); border-radius: 8px; padding: 15px; border: 1px solid #ffc107;\">\n    <strong>Notice:</strong> The top-level <code>network_group</code> field in the assets list is <b>deprecated</b> and will be removed on September 1, 2026.\n    It currently shows the SuperSIM's network group. For multi-SIM assets, please refer to the\n    Asset Details endpoint.\n</div>","operationId":"Get_Assets_assets_get","parameters":[{"required":false,"schema":{"title":"Page","type":"integer","default":1},"name":"page","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAssetListResponse","title":"Response Get Assets Assets Get","anyOf":[{"$ref":"#/components/schemas/GetAssetListResponse"},{"$ref":"#/components/schemas/BadRequest"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]},"post":{"tags":["Assets"],"summary":"Register Asset","operationId":"Register_Asset_assets_post","parameters":[{"required":false,"schema":{"title":"X-Forwarded-For","type":"string"},"name":"x-forwarded-for","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAssetRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAssetResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/assets/{asset_id}":{"get":{"tags":["Assets"],"summary":"Asset Details","description":"Get details of a specific asset by its serial number, UUID, SIM SID or SIM ICCID.\n<div style=\"background-color: rgba(255, 165, 0, 0.1); border-left: 5px solid orange; padding: 10px;\">\n    <h4 style=\"margin-top: 0; color: #ff9900;\">Multiple SIM Support & Migration</h4>\n    <p>We are transitioning to a model where assets can contain multiple SIM types (SuperSIM and ProSIM).</p>\n    <ul>\n        <li><b>supersim:</b> Previously the only SIM type, now explicitly named.</li>\n        <li><b>prosim:</b> New SIM type</li>\n        <li><b>sim (Legacy):</b> Still returned as a duplicate of <code>supersim</code> to prevent breaking changes.</li>\n    </ul>\n    <p><i>Planned Removal Date for legacy fields: <b>September 1, 2026</b></i></p>\n</div>","operationId":"Asset_Details_assets__asset_id__get","parameters":[{"description":"Serial Number, UUID, SIM SID or SIM ICCID","required":true,"schema":{"title":"Asset Id","type":"string","description":"Serial Number, UUID, SIM SID or SIM ICCID"},"name":"asset_id","in":"path"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDetailsResponse","title":"Response Asset Details Assets  Asset Id  Get","anyOf":[{"$ref":"#/components/schemas/AssetDetailsResponse"},{"$ref":"#/components/schemas/BadRequest"}]}}}},"404":{"description":"Asset not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]},"patch":{"tags":["Assets"],"summary":"Update Asset","description":"Update details of a specific asset by its **serial number**, **UUID**, **SIM SID**, or **SIM ICCID**.\n\n<div style=\"background-color: rgba(0, 123, 255, 0.1); border-left: 5px solid #007bff; padding: 10px;\">\n    Updating the top-level <b>status</b> field acts as a master switch for assets that have multiple SIMs (SuperSIM and ProSIM).\n    Setting the asset to <code>active</code> will activate all attached SIMs, while\n    setting an asset to <code>inactive</code> will automatically deactivate\n    all attached SIMs (SuperSIM and ProSIM).\n</div>\n\n\n### <b>Update Scope</b>\n\nAll fields are **optional**, but **at least one field must be provided**.\n\n- **name** *(string, optional)*  \nUpdates the display name.\n- **status** *(string, optional)*  \nUpdates the status of all attached SIMs.\n- **supersim.network_group** *(string, optional)*  \nUpdates the network group for the **SuperSIM** only.\n\nAvailable network groups:\n- `default_100mb`: Default networks with 100MB data usage restrictions.\n- `default_1gb`: Default networks with 1GB data usage restrictions.\n- `default_10gb`: Default networks with 10GB data usage restrictions.\n- `default_unlimited`: Default networks without data usage restrictions.\n\n**Note**: Either choose a predefined network group above or use one of your existing custom network groups with the network group name.\n\n#### SuperSIM\n\nWhen the asset is **Activated**\n- The SIM is allowed to connect to base stations.\n- If the SIM has not been charged for the current month yet, we will charge the **monthly SIM fee**:\n    - **$2 per month**\n    - **$1.6 per month** for customers with **more than 10 active SIMs**.\n\nWhen the asset is **Inactive**\n- The SIM is **prevented from connecting to base stations**.\n- As long as the SIM remains inactive, **no monthly charges will apply**.\n\n#### ProSIM\n\nWhen the asset is **Activated**\n- The SIM is allowed to **connect to base stations and use data**.\n- If the SIM has not been charged for the current month yet, we will charge the **monthly price of the assigned service profile**.\n\nProSIMs switch automatically to the service profile of the country they're used in.\nThe monthly price is **$1 per month** for every service profile except **World**, which is **$5 per month**.\n\nWhen the asset is **Inactive**\n- The SIM is **prevented from connecting to base stations**, but it will still **retain connection priorities**.\n- A **minimal maintenance fee of $0.1 per month** will be charged while the SIM remains inactive.\n\n**Grace Period**\n- If the ProSIM has **never been activated**, no charges will apply for the **first 6 months**.\n- After the grace period, if the SIM is still inactive, the **$0.1 monthly maintenance fee** will begin.\n\n**Note**: If the asset has both SuperSIM and ProSIM, activating the asset will activate both SIMs\nand charge the corresponding asset fee e.g. $6 for an ALPON device.","operationId":"Update_Asset_assets__asset_id__patch","parameters":[{"description":"Serial Number, UUID, SIM SID or SIM ICCID","required":true,"schema":{"title":"Asset Id","type":"string","description":"Serial Number, UUID, SIM SID or SIM ICCID"},"name":"asset_id","in":"path"},{"required":false,"schema":{"title":"X-Forwarded-For","type":"string"},"name":"x-forwarded-for","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetResponse"}}}},"404":{"description":"Asset not found"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"403":{"description":"Asset is suspended","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSuspended"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/assets/{asset_id}/sim":{"patch":{"tags":["Assets"],"summary":"Update SIM (Deprecated)","description":"Update an asset's SIM properties.\n\n<b> This endpoint is deprecated and will be removed on September 1, 2026. Please use the Update Asset endpoint instead. </b>\n\n***network_group*** — string, optional\n\n**default_100mb:** Default networks with 100MB data usage restrictions. <br />\n**default_1gb:** Default networks with 1GB data usage restrictions. <br />\n**default_10gb:** Default networks with 10GB data usage restrictions. <br />\n**default_unlimited:** Default networks without data usage restrictions. <br />\n\n**Note:** Either choose a predefined network group above or use one of your existing custom network groups with network group name.\n\n***status*** — string, optional\n\n**active:** Activate the SIM, allow SIM to connect to base-stations when you activate a SIM. If its not charges for current month yet, we will charge 2$ (1.6$ for customers who has more than 10 active SIMs) monthly SIM price. <br />\n**inactive:** Deactivate the SIM, prevent SIM from connecting to base-stations.","operationId":"update_sim_assets__asset_id__sim_patch","parameters":[{"description":"Serial Number, UUID, SIM SID or SIM ICCID","required":true,"schema":{"title":"Asset Id","type":"string","description":"Serial Number, UUID, SIM SID or SIM ICCID"},"name":"asset_id","in":"path"},{"required":false,"schema":{"title":"X-Forwarded-For","type":"string"},"name":"x-forwarded-for","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSimRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSIMResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"403":{"description":"Asset is suspended","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSuspended"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true,"security":[{"APIKeyHeader":[]}]}},"/assets/{asset_id}/sim/usages":{"get":{"tags":["Assets"],"summary":"SIM Usage Details (Deprecated)","description":"<div style=\"background-color: rgba(255, 193, 7, 0.2); border-left: 5px solid #ffc107; padding: 10px;\">\n    <strong>DEPRECATED:</strong> This endpoint is deprecated and will be removed on September 1, 2026. \n    Please migrate to <code>GET /v1/assets/{id}/sims/{sim_type}/usages</code>.\n</div>\nList usage details for a SIM, supports hourly and daily granularity.\n\nHourly granularity returns hourly usage records for the last 14 days. Daily granularity returns daily usage records for the last 3 months.\n\n<div style=\"\n    background-color: rgba(212, 31, 28, 0.2);\n    border-radius: 5px;\n    padding: 10px;\n\">\n    If you are using this API endpoint to generate critical reports (e.g., consumption reports, balance analysis, etc.), \n    we strongly recommend waiting at least 24 hours after the reported period ends before fetching the data. \n    This allows consumption events to be fully processed, updated, and accurately reflected in your reports. \n    During this period, you may notice discrepancies between the data retrieved from the API and the data on the Connect platform, as not all data may have been processed yet. \n</div>","operationId":"get_sim_usage_records_assets__asset_id__sim_usages_get","parameters":[{"description":"Serial Number, UUID, SIM SID or SIM ICCID","required":true,"schema":{"title":"Asset Id","type":"string","description":"Serial Number, UUID, SIM SID or SIM ICCID"},"name":"asset_id","in":"path"},{"required":false,"schema":{"title":"Granularity","enum":["hourly","daily"],"type":"string","default":"hourly"},"name":"granularity","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimUsagesResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true,"security":[{"APIKeyHeader":[]}]}},"/assets/{asset_id}/sims/{sim_type}/usages":{"get":{"tags":["Assets"],"summary":"Data Usage Details","description":"List usage details for a specific SIM type attached to an asset.\n\n<b>SuperSIM (supersim):</b>\n<ul>\n    <li>Supports <code>hourly</code> (last 14 days) and <code>daily</code> (last 3 months).</li>\n    <li>Returns usage split by <code>network</code>, showing <code>upload</code> and <code>download</code> bytes.</li>\n</ul>\n\n<b>ProSIM (prosim):</b>\n<ul>\n    <li>Supports <b>ONLY</b> <code>daily</code> (last 3 months). Hourly requests will return an error.</li>\n    <li>Returns usage by <code>service_profile</code>, showing the <code>total</code> bytes used.</li>\n</ul>\n\n<div style=\"background-color: rgba(212, 31, 28, 0.1); border-left: 5px solid #d41f1c; padding: 10px; margin-top: 10px;\">\n    <b>Reporting Recommendation:</b> If you are using this API endpoint to generate critical reports \n    (e.g., consumption reports, balance analysis, etc.), please note the data finalization periods:\n    <ul>\n        <li><b>SuperSIM:</b> Wait at least <b>24 hours</b> after the reported period ends.</li>\n        <li><b>ProSIM:</b> Due to delayed CDR reconciliations from global roaming partners, wait up to <b>10 days</b> for data to be completely finalized.</li>\n    </ul>\n    During these periods, you may notice discrepancies as late-arriving consumption events are processed.\n</div>","operationId":"get_unified_sim_usage_records_assets__asset_id__sims__sim_type__usages_get","parameters":[{"description":"Type of the SIM. Use 'supersim' for SuperSIMs and 'prosim' for ProSIMs.","required":true,"schema":{"title":"Sim Type","enum":["supersim","prosim"],"type":"string","description":"Type of the SIM. Use 'supersim' for SuperSIMs and 'prosim' for ProSIMs."},"name":"sim_type","in":"path"},{"description":"Serial Number, UUID, SIM SID or SIM ICCID","required":true,"schema":{"title":"Asset Id","type":"string","description":"Serial Number, UUID, SIM SID or SIM ICCID"},"name":"asset_id","in":"path"},{"required":false,"schema":{"title":"Granularity","enum":["hourly","daily"],"type":"string","default":"hourly"},"name":"granularity","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedSimUsagesResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/networks":{"get":{"tags":["Networks"],"summary":"Get Networks","description":"Get all networks","operationId":"Get_Networks_networks_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNetworksResponse"}}}}},"security":[{"APIKeyHeader":[]}]}}},"components":{"schemas":{"AssetDetailsResponse":{"title":"AssetDetailsResponse","required":["uuid","serial_number","name","type","created_at","status"],"type":"object","properties":{"uuid":{"title":"UUID","type":"string","description":"UUID of the asset"},"serial_number":{"title":"Serial Number","type":"string","description":"Serial Number of the asset"},"name":{"title":"Name","type":"string","description":"Name of the asset"},"type":{"title":"Type","type":"string","description":"Type of the asset"},"created_at":{"title":"Created At","type":"integer","description":"Timestamp of when the asset was created"},"status":{"title":"Status","enum":["active","inactive"],"type":"string","description":"Overall status of the asset. If active, the asset is able to connect to networks.If inactive, the asset is prevented from connecting to networks."},"sim":{"title":"Sim","allOf":[{"$ref":"#/components/schemas/SIMDetailsResponse"}],"description":"<div style='background-color: rgba(255, 165, 0, 0.1); border-left: 5px solid orange; padding: 10px;'><strong>LEGACY FIELD (Removal: September 1, 2026)</strong><br/>This field is a mirror of <code>supersim</code> for backward compatibility. Please migrate to the <code>supersim</code> property.</div>"},"supersim":{"title":"SuperSIM","allOf":[{"$ref":"#/components/schemas/SuperSIMDetailsResponse"}],"description":"SuperSIM details, null if the asset does not have a SuperSIM."},"prosim":{"title":"ProSIM","allOf":[{"$ref":"#/components/schemas/ProSIMDetailsResponse"}],"description":"ProSIM details, null if the asset does not have a ProSIM."}}},"AssetListItem":{"title":"AssetListItem","required":["uuid","serial_number","name","type"],"type":"object","properties":{"uuid":{"title":"UUID","type":"string","description":"UUID of the asset"},"serial_number":{"title":"Serial Number","type":"string","description":"Serial Number of the asset"},"name":{"title":"Name","type":"string","description":"Name of the asset"},"type":{"title":"Type","type":"string","description":"Type of the asset"},"network_group":{"title":"Network Group","type":"string","description":"<b>[DEPRECATED - REMOVAL: 2026-09-01]</b><br/>This field is legacy and will be removed soon. It currently shows the network group of the SuperSIM for backward compatibility. Please refer to the <code>supersim</code> property in the Asset Details endpoint."}}},"AssetSuspended":{"title":"AssetSuspended","required":["message","err_code"],"type":"object","properties":{"message":{"title":"Message","type":"string"},"err_code":{"title":"Err Code","enum":["asset_suspended"],"type":"string"}}},"BadRequest":{"title":"BadRequest","required":["message"],"type":"object","properties":{"message":{"title":"Message","type":"string"}}},"GetAssetListResponse":{"title":"GetAssetListResponse","required":["assets","total_asset_count","asset_limit_per_page","current_page"],"type":"object","properties":{"assets":{"title":"Assets","type":"array","items":{"$ref":"#/components/schemas/AssetListItem"}},"total_asset_count":{"title":"Total Asset Count","type":"integer"},"asset_limit_per_page":{"title":"Asset Limit Per Page","type":"integer"},"current_page":{"title":"Current Page","type":"integer"}}},"GetNetworksResponse":{"title":"GetNetworksResponse","required":["count","networks"],"type":"object","properties":{"count":{"title":"Count","type":"integer","description":"Number of networks returned"},"networks":{"title":"Networks","type":"array","items":{"$ref":"#/components/schemas/NetworkListItem"}}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"NetworkListItem":{"title":"NetworkListItem","required":["sid","name","country","countryGroup","countryCode"],"type":"object","properties":{"sid":{"title":"SID","type":"string","description":"SID of the network"},"name":{"title":"Name","type":"string","description":"Name of the network"},"country":{"title":"Country","type":"string","description":"Country of the network"},"countryGroup":{"title":"Country Group","type":"string","description":"Country Group of the network"},"countryCode":{"title":"Country Code","type":"string","description":"Country Code of the network"}}},"NotFound":{"title":"NotFound","required":["message"],"type":"object","properties":{"message":{"title":"Message","enum":["Asset not found","Asset does not contain a SIM","Asset does not contain a SuperSIM","Asset does not contain a ProSIM"],"type":"string"}}},"ProSIMDetailsResponse":{"title":"ProSIMDetailsResponse","required":["imsi","iccid","service_profile"],"type":"object","properties":{"imsi":{"title":"IMSI","type":"string","description":"IMSI of the SIM"},"iccid":{"title":"ICCID","type":"string","description":"ICCID of the SIM"},"service_profile":{"title":"Service Profile","type":"string","description":"Service profile of the SIM"}}},"ProSimUsageData":{"title":"ProSimUsageData","required":["service_profile","total"],"type":"object","properties":{"service_profile":{"title":"Service Profile","type":"string","description":"Service profile ID"},"total":{"title":"Total","type":"integer","description":"Total usage in bytes for service profile"}}},"RegisterAssetRequest":{"title":"RegisterAssetRequest","required":["identifier"],"type":"object","properties":{"identifier":{"title":"Identifier","type":"string","description":"Serial Number or ICCID of asset"},"name":{"title":"Asset Name","type":"string"}}},"RegisterAssetResponse":{"title":"RegisterAssetResponse","required":["id","serial_number","name","type"],"type":"object","properties":{"id":{"title":"Id","type":"string"},"serial_number":{"title":"Serial Number","type":"string"},"name":{"title":"Name","type":"string"},"type":{"title":"Type","type":"string"},"bonus_balance":{"title":"Bonus Balance","type":"string","description":"Bonus balance added to the account, if any"}}},"SIMDetailsResponse":{"title":"SIMDetailsResponse","required":["sid","iccid","status","network_group"],"type":"object","properties":{"sid":{"title":"SID","type":"string","description":"SID of the SIM"},"iccid":{"title":"ICCID","type":"string","description":"ICCID of the SIM"},"status":{"title":"Status","enum":["active","inactive"],"type":"string","description":"<b>[DEPRECATED - REMOVAL: 2026-09-01]</b><br/>This field is legacy. Use the top-level <code>status</code> instead."},"network_group":{"title":"Network Group","type":"string","description":"Network group of the SIM"},"fleet":{"title":"Fleet","type":"string","description":"<b>[DEPRECATED - REMOVAL: 2026-09-01]</b><br/>This field is legacy and will be removed soon. Use the <code>network_group</code> field instead."}}},"SimUsagesResponse":{"title":"SimUsagesResponse","required":["records"],"type":"object","properties":{"granularity":{"title":"Granularity","enum":["hourly","daily"],"type":"string","default":"hourly"},"records":{"title":"Records","type":"array","items":{"$ref":"#/components/schemas/_SimUsageRecord"}}}},"SuperSIMDetailsResponse":{"title":"SuperSIMDetailsResponse","required":["sid","iccid","network_group"],"type":"object","properties":{"sid":{"title":"SID","type":"string","description":"SID of the SIM"},"iccid":{"title":"ICCID","type":"string","description":"ICCID of the SIM"},"network_group":{"title":"Network Group","type":"string","description":"Network group of the SIM"}}},"SuperSimUsageData":{"title":"SuperSimUsageData","required":["network","download","upload"],"type":"object","properties":{"network":{"title":"Network","type":"string","description":"Network ID"},"download":{"title":"Download","type":"integer","description":"Total download in bytes for network"},"upload":{"title":"Upload","type":"integer","description":"Total upload in bytes for network"}}},"UnifiedSimUsagesResponse":{"title":"UnifiedSimUsagesResponse","required":["sim_type","granularity","records"],"type":"object","properties":{"sim_type":{"title":"Sim Type","enum":["supersim","prosim"],"type":"string","description":"The type of SIM queried"},"granularity":{"title":"Granularity","enum":["hourly","daily"],"type":"string","description":"Granularity of the records"},"records":{"title":"Records","type":"array","items":{"$ref":"#/components/schemas/UnifiedUsageRecord"}}}},"UnifiedUsageRecord":{"title":"UnifiedUsageRecord","required":["start_time","end_time","usages"],"type":"object","properties":{"start_time":{"title":"Start Time","anyOf":[{"type":"integer"},{"type":"number"}],"description":"Start time of period, as unix timestamp"},"end_time":{"title":"End Time","anyOf":[{"type":"integer"},{"type":"number"}],"description":"End time of period, as unix timestamp"},"usages":{"title":"Usages","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/SuperSimUsageData"},{"$ref":"#/components/schemas/ProSimUsageData"}]},"description":"List of usages. For SuperSIM, returns network/upload/download. For ProSIM, returns service_profile/total."}}},"UpdateAssetRequest":{"title":"UpdateAssetRequest","type":"object","properties":{"name":{"title":"Name","maxLength":64,"minLength":3,"type":"string","description":"Name of the asset"},"status":{"title":"Status","enum":["active","inactive"],"type":"string","description":"Status of the asset"},"supersim":{"title":"SuperSIM Update","allOf":[{"$ref":"#/components/schemas/UpdateSuperSimRequest"}],"description":"Details to update SuperSIM properties"}}},"UpdateAssetResponse":{"title":"UpdateAssetResponse","required":["updated_fields"],"type":"object","properties":{"message":{"title":"Message","type":"string","default":"Asset updated successfully"},"updated_fields":{"title":"Updated Fields","type":"array","items":{"type":"string"},"description":"List of fields that were updated"}}},"UpdateSIMResponse":{"title":"UpdateSIMResponse","required":["updated_fields"],"type":"object","properties":{"message":{"title":"Message","type":"string","default":"SIM details updated successfully"},"updated_fields":{"title":"Updated Fields","type":"array","items":{"type":"string"},"description":"List of SIM fields that were updated. Possible values: 'network_group' (same as 'fleet') and 'status'"}}},"UpdateSimRequest":{"title":"UpdateSimRequest","type":"object","properties":{"network_group":{"title":"Network Group","type":"string"},"status":{"title":"Status","enum":["active","inactive"],"type":"string"},"fleet":{"title":"Fleet","type":"string","description":"Deprecated, use 'network_group' instead"}}},"UpdateSuperSimRequest":{"title":"UpdateSuperSimRequest","type":"object","properties":{"network_group":{"title":"Network Group","type":"string"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}},"_SimUsageRecord":{"title":"_SimUsageRecord","required":["start_time","end_time","usages"],"type":"object","properties":{"start_time":{"title":"Start Time","anyOf":[{"type":"integer"},{"type":"number"}],"description":"Start time of period, as unix timestamp"},"end_time":{"title":"End Time","anyOf":[{"type":"integer"},{"type":"number"}],"description":"End time of period, as unix timestamp"},"usages":{"title":"Usages","type":"array","items":{"$ref":"#/components/schemas/_SimUsageRecordData"}}}},"_SimUsageRecordData":{"title":"_SimUsageRecordData","required":["network","download","upload"],"type":"object","properties":{"network":{"title":"Network","type":"string","description":"Network ID"},"download":{"title":"Download","type":"integer","description":"Total download in bytes for network"},"upload":{"title":"Upload","type":"integer","description":"Total upload in bytes for network"}}}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}