{"openapi":"3.1.0","info":{"title":"Dynamox API","description":"# Getting Started\n\nThis guide will walk you through the steps to quickly set up and test our API. You have two main options for testing:\n\n- **Native Documentation Interface**: Use the built-in testing interface directly in your browser\n- **External Tools**: Use tools like [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/)\n\nChoose the method that best fits your workflow and testing needs.\n\n---\n\n## Testing with Native Documentation Interface\n\nThe documentation interface provides a built-in testing environment directly in the API documentation. This is the quickest way to test endpoints.\n\n### 1. Navigate to an API Endpoint\n\n- Browse through the API documentation to find the endpoint you want to test\n- Click on the endpoint to expand its details\n\n---\n\n### 2. Access the Test Interface\n\n- On the right side of the endpoint documentation, you'll find a code snippet box showing example requests\n- Click the **\"Test Request\"** button to open the interactive testing interface\n\n---\n\n### 3. Configure Variables\n\n- In the testing interface, locate the **\"Variables\"** section\n- Fill in all required variables for the endpoint you're testing\n- These variables typically include path parameters, query parameters, and request body data\n\n---\n\n### 4. Set Up Authentication\n\n- Navigate to the **\"Headers\"** section in the test interface\n- Add a new header with:\n  - **Key**: `Authorization`\n  - **Value**: `Bearer YOUR_TOKEN_HERE` (keep the literal prefix `Bearer` followed by a single space, and replace `YOUR_TOKEN_HERE` with your actual token)\n\n> **Important:**\n>\n> - Token generation must be implemented in your local code using your specific authentication flow. Refer to the Authentication section for detailed implementation guidance.\n> - Tokens have expiration times. If you receive authentication errors, verify that your token is still valid and generate a new one if necessary.\n\n**Alternative — API Key:** If you have a static API Key, add the header `x-api-key: YOUR_API_KEY` instead of the `Authorization` header. No token generation is required. Refer to the Authentication section for details on obtaining an API Key.\n\n---\n\n### 5. Execute the Request\n\n- Review all configured variables and headers\n- Click **\"Send Request\"** to execute the API call\n- View the response directly in the interface\n\n---\n\n## Testing with Postman\n\nFor other testing scenarios, you can use Postman to create comprehensive test suites and manage multiple environments.\n\n### 1. Install Postman\n\nDownload and install the [Postman](https://www.postman.com/) application on your machine.\n\n---\n\n### 2. Import the API Specification\n\nImport the OpenAPI specification to access all endpoints directly in Postman:\n\n- Open **Postman** and click on **Import** in the top-left corner\n- In the dialog, select the **Link** tab and enter: [https://api.dynamox.solutions/openapi.json](https://api.dynamox.solutions/openapi.json)\n- Click **Import** and finish the import\n\nAlternatively, you can download the file first by visiting the [URL](https://api.dynamox.solutions/openapi.json) above and saving it with **Ctrl + S** as a `.json` file, or by clicking the **\"Download OpenAPI Document\"** button at the top of this page, then import the downloaded file in Postman.\n\nYou should now see a new collection named **Dynamox API**.\n\n---\n\n### 3. Set Up Environment Variables\n\nCreate a Postman environment to manage your API configuration:\n\n- Select the **Dynamox API** collection root\n- Go to the **Variables** tab\n- Add the following variable:\n\n**Variable Name**: `baseUrl`  \n**Initial Value**: `https://api.dynamox.solutions/v1`  \n**Current Value**: `https://api.dynamox.solutions/v1`\n\n---\n\n### 4. Configure Authentication\n\nSet up the collection to use Bearer Token authentication:\n\n- Select the **Dynamox API** collection root\n- Go to the **Auth** tab\n- In the **Auth Type** dropdown, select **Bearer Token**\n- In the **Token** field, enter your generated Bearer token\n\n> **Important:**\n>\n> - Token generation must be implemented in your local code using your specific authentication flow. Refer to the Authentication section for detailed implementation guidance.\n> - Tokens have expiration times. If you receive authentication errors, verify that your token is still valid and generate a new one if necessary.\n\n**Alternative — API Key:**\n\nIf you have a static API Key, skip the **Auth** tab configuration and instead add the key directly in the **Headers** tab:\n\n- Go to the **Headers** tab\n- Add a new header with:\n  - **Key**: `x-api-key`\n  - **Value**: `dyp_YOUR_API_KEY_HERE`\n\nExample cURL:\n\n```bash\ncurl -X GET \"https://api.dynamox.solutions/v1/<endpoint>\" \\\n  -H \"x-api-key: dyp_YOUR_API_KEY_HERE\"\n```\n\n---\n\n### 5. Test Your Configuration\n\nVerify everything is set up correctly:\n\n- Expand the **Dynamox API** collection\n- Navigate to any endpoint group\n- Select a request from the available endpoints\n- Ensure the request URL uses the variables correctly\n- Click **Send**\n\nIf configured properly, you should receive a successful response from the API.\n\n---\n\n# Endpoints Interactions Map\n\nThe **Endpoints Interactions Map** provides a high-level overview of how the available endpoints relate to each other within the API.  \nIts purpose is to help developers and integrators clearly understand the logical flow of data, from authentication to resource consumption and management.\n\n## Map Image\n\n![Endpoints Interactions Map](/assets/endpoint.interaction.map.png)\n\nThis visual guide is designed to:\n\n- Show the sequence of calls required to access different resources.\n- Clarify dependencies between endpoints.\n- Simplify navigation through the API by highlighting the main entry points and their possible paths.\n- Provide a reference that reduces trial-and-error during integration.\n\nBy following the interactions map, clients can quickly identify **where to start**, **what steps are required**, and **how to reach the desired endpoints** in an efficient and structured way.\n\n---\n\n# Rate Limit\n\nOur API follows the rate-limit standard defined in [draft-ietf-httpapi-ratelimit-headers-08](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/).\n\n---\n\n## Rate Limit Windows\n\nThe rate-limit system operates with three distinct time windows:\n\n- **Per Minute**: Maximum number of requests allowed per minute\n- **Per Hour**: Maximum number of requests allowed per hour\n- **Per Day**: Maximum number of requests allowed per day\n\nThese limits are proportionally calculated based on your contract's daily quota:\n\n- **Minute limit**: Daily quota / 10\n- **Hour limit**: Daily quota / 4\n- **Day limit**: Daily quota (as defined in your contract)\n\n**Example**: If your daily quota is 500 requests → 50/minute, 125/hour, 500/day.\n\n---\n\n## Sliding Window Concept\n\nOur rate limiting uses a **sliding window** approach, not calendar-based periods:\n\n- **\"Per Day\" means the last 24 hours** from the current moment, not midnight to midnight\n- **\"Per Hour\" means the last 60 minutes** from the current moment\n- **\"Per Minute\" means the last 60 seconds** from the current moment\n\n#### Practical Example\n\nIf you reach your daily limit of 500 requests at 6:00 PM today, all requests made between 6:00 PM yesterday and 6:00 PM today count toward this limit. You can only make new requests as older requests \"expire\" from the 24-hour window.\n\n**Key Points**:\n\n- Limits don't reset at midnight\n- New request capacity becomes available as old requests age out of their respective windows\n- The system continuously tracks usage across rolling time periods\n\n---\n\n## Blocking Rules\n\nThe system evaluates all three windows for every request:\n\n- **Check all windows**: Minute, hour, and daily usage are compared against their respective limits\n- **Block on any exceeded limit**: If **any** window exceeds its limit, the request is blocked with a `429 Too Many Requests` error\n- **Dynamic availability**: Request capacity becomes available as older requests expire from their time windows\n\n---\n\n## Rate Limit Response Headers\n\nAll API responses include the following headers to help track rate limit usage:\n\n- **RateLimit-Policy**: Defines the quota policies, indicating the maximum number of allowed requests (`q`) and the window duration (`w`).\n- **RateLimit**: Indicates the actual available request rate (`r`) and the remaining time for renewal (`t`) for each policy.\n\nBoth headers also include the parameter `pk`, which identifies the application or contract associated with each quota entry.\n\n---\n\n## Example Response with Rate Limit\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/json\nRateLimit-Policy: \"minutely\";pk=:NjdhOWY:;q=100;w=60,\"hourly\";pk=:NjdhOWY:;q=500;w=3600,\"daily\";pk=:NjdhOWY:;q=1000;w=86400\nRateLimit: \"minutely\";pk=:NjdhOWY:;t=30;r=50,\"hourly\";pk=:NjdhOWY:;t=1350;r=300,\"daily\";pk=:NjdhOWY:;t=1350;r=100\n\n{\n  \"message\": \"Request successful\"\n}\n```\n\n---\n\n## Exceeding the Limit\n\nIf you exceeds the allowed quota, the API will return a [429 Too Many Requests](https://developer.mozilla.org/docs/Web/HTTP/Status/429) error, with a [Retry-After](https://developer.mozilla.org/docs/Web/HTTP/Headers/Retry-After) header indicating the time in seconds until a new request is allowed.\n\n```http\nHTTP/1.1 429 Too Many Requests\nContent-Type: application/json\nRateLimit-Policy: \"minutely\";pk=:NjdhOWY:;q=100;w=60,\"hourly\";pk=:NjdhOWY:;q=500;w=3600,\"daily\";pk=:NjdhOWY:;q=1000;w=86400\nRateLimit: \"minutely\";pk=:NjdhOWY:;t=30;r=0,\"hourly\";pk=:NjdhOWY:;t=1350;r=300,\"daily\";pk=:NjdhOWY:;t=1350;r=100\nRetry-After: 30\n\n{\n  \"error\": \"Request limit exceeded. Please try again in 30 seconds.\"\n}\n```\n","version":"2.5.6"},"servers":[{"url":"https://api.dynamox.solutions","description":"Production"}],"paths":{"/v1/token":{"post":{"tags":["Token"],"summary":"Generate Token","operationId":"generate_token_v1_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"access_token":{"type":"string","pattern":"^[\\w-]+\\.[\\w-]+\\.[\\w-]+$","title":"Access Token","description":"Access token usage to access Dynamox Platform endpoints.","examples":["YW1PTl1wWG9JSSI2QiVweTcvZwnsiXV8jWnkvJQ==.bVpHMU5jJyJEMmc/XkApZC9TUFMrXA==.shgf13276tas7621vhnsmghv2176t_"]},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"ExchangedToken"},"examples":{"Success":{"summary":"Token gerado","value":{"access_token":"YW1PTl1wWG9JSSI2QiVweTcvZwnsiXV8jWnkvJQ==.bVpHMU5jJyJEMmc/XkApZC9TUFMrXA==.shgf13276tas7621vhnsmghv2176t_","token_type":"bearer"}}}}}}},"security":[{"HTTPBearer":[]}],"x-codeSamples":[{"lang":"Python","source":"import json\nfrom datetime import datetime, timezone\nfrom time import sleep\n\nimport jwt  # pip install pyjwt\nimport requests  # pip install requests\n\nTOKEN_URL = \"https://api.dynamox.solutions/v1/token\"\n\nAPPLICATION_KEY_PATH = \"your_key.json\"\n\ndef generate_jwt(application_key_path: str) -> str:\n    with open(application_key_path) as file:\n        key = json.load(file)\n\n    return jwt.encode(\n      headers={\n        \"kid\": key[\"_id\"],\n        \"alg\": \"RS256\",\n        \"typ\": \"JWT\",\n      },\n      payload={\n        \"iat\": datetime.now(timezone.utc).timestamp(),\n        \"email\": key[\"email\"],\n      },\n      key=key[\"privateKey\"].encode(\"utf-8\"),\n    )\n\ndef main() -> None:\n    encoded_jwt = generate_jwt(APPLICATION_KEY_PATH)\n    sleep(2)\n    response = requests.post(\n        url=TOKEN_URL,\n        headers={\"Authorization\": f\"Bearer {encoded_jwt}\"},\n        timeout=10,\n    )\n    print(response.json())\n    access_token = response.json().get(\"access_token\")\n\nif __name__ == \"__main__\":\n    main()\n"},{"lang":"JavaScript","source":"import fs from 'fs';\nimport jwt from 'jsonwebtoken'; // npm install jsonwebtoken\n\nconst TOKEN_URL = \"https://api.dynamox.solutions/v1/token\";\nconst APPLICATION_KEY_PATH = \"your_key.json\";\n\nfunction generateJwt(applicationKeyPath) {\n    const key = JSON.parse(fs.readFileSync(applicationKeyPath, 'utf8'));\n    return jwt.sign(\n        {\n            email: key.email,\n            iat: Math.floor(Date.now() / 1000),\n        },\n        key.privateKey,\n        {\n            algorithm: 'RS256',\n            keyid: key._id,\n            header: { typ: 'JWT' },\n        }\n    );\n}\n\nfunction sleep(ms) {\n    return new Promise(resolve => setTimeout(resolve, ms));\n}\n\nexport async function getAccessToken() {\n    try {\n        const encodedJwt = generateJwt(APPLICATION_KEY_PATH);\n        await sleep(2000);\n        const response = await fetch(TOKEN_URL, {\n            method: 'POST',\n            headers: { Authorization: `Bearer ${encodedJwt}` },\n        });\n        const data = await response.json();\n        console.log(data);\n        return data.access_token;\n    } catch (error) {\n        console.error('Error:', error.message);\n    }\n}\n\ngetAccessToken();\n"}]}},"/oauth2/token":{"post":{"tags":["Token"],"summary":"Issue an OAuth 2.0 access token","description":"Issues an access token through the OAuth 2.0 client credentials grant\n([RFC 6749, section 4.4](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4)),\nfor clients that can only authenticate with a client id and a client secret, such as\nthe Microsoft Entra ID provisioning service.\n\n- **client_id**: the application id.\n- **client_secret**: an API key (`dyp_...`) of that application.\n\nThe credentials go either in the form body (`client_secret_post`) or in the\n`Authorization: Basic` header (`client_secret_basic`). A new access token is issued\non every call; send it as `Authorization: Bearer <access_token>` until `expires_in`\nelapses.","operationId":"issue_client_credentials_token_oauth2_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"grant_type":{"type":"string","enum":["client_credentials"]},"client_id":{"type":"string"},"client_secret":{"type":"string"}},"type":"object","required":["grant_type"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"access_token":{"type":"string","pattern":"^[\\w-]+\\.[\\w-]+\\.[\\w-]+$","title":"Access Token","description":"Access token to send as `Authorization: Bearer <token>`.","examples":["YW1PTl1wWG9JSSI2QiVweTcvZwnsiXV8jWnkvJQ==.bVpHMU5jJyJEMmc/XkApZC9TUFMrXA==.shgf13276tas7621vhnsmghv2176t_"]},"token_type":{"type":"string","title":"Token Type","default":"Bearer"},"expires_in":{"type":"integer","title":"Expires In","description":"Seconds until the access token expires.","examples":[3600]}},"type":"object","required":["access_token","expires_in"],"title":"OAuthToken"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","enum":["invalid_request","invalid_client","unsupported_grant_type","temporarily_unavailable"],"title":"Error","description":"OAuth 2.0 error code (RFC 6749, section 5.2).","examples":["invalid_client"]}},"type":"object","required":["error"],"title":"OAuthError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","enum":["invalid_request","invalid_client","unsupported_grant_type","temporarily_unavailable"],"title":"Error","description":"OAuth 2.0 error code (RFC 6749, section 5.2).","examples":["invalid_client"]}},"type":"object","required":["error"],"title":"OAuthError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","enum":["invalid_request","invalid_client","unsupported_grant_type","temporarily_unavailable"],"title":"Error","description":"OAuth 2.0 error code (RFC 6749, section 5.2).","examples":["invalid_client"]}},"type":"object","required":["error"],"title":"OAuthError"}}}}}}},"/v1/automatic-diagnostics/{waveformId}":{"get":{"tags":["DynaDetect"],"summary":"Get Automatic Diagnostic","description":"This endpoint retrieves an automatic diagnostic, given the `waveformId`, which is the id of the waveform.","operationId":"Get_Automatic_Diagnostic_by_Waveform_ID","security":[{"HTTPBearer":[]}],"parameters":[{"name":"waveformId","in":"path","required":true,"schema":{"type":"string","title":"Waveformid","description":"The waveform id."}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"properties":{"fault":{"type":"string","title":"Fault","description":"Fault name","examples":["unbalance"]},"faultDisplayName":{"properties":{"en":{"type":"string","title":"En","description":"Fault display name in English","examples":["Unbalance"]},"es":{"type":"string","title":"Es","description":"Fault display name in Spanish","examples":["Desbalanceo"]},"pt":{"type":"string","title":"Pt","description":"Fault display name in Portuguese","examples":["Desbalanceamento"]}},"type":"object","required":["en","es","pt"],"title":"FaultDisplayName","description":"Fault display name"},"status":{"type":"string","enum":["detected","notEvaluated","notDetected"],"title":"DetectionStatus","description":"Whether the fault was detected. If the monitoring point is not configured correctly, the fault will be `notEvaluated`.","examples":["detected"]}},"type":"object","required":["fault","faultDisplayName","status"],"title":"Fault"},"type":"array","title":"SpectralDiagnosticPublicResponse","description":"Response model for the Automatic Diagnostic by Waveform ID public endpoint"}}}},"401":{"description":"Unauthorized user.","content":{"application/json":{"example":{"detail":"Not authenticated."}}}},"403":{"description":"Forbidden.","content":{"application/json":{"example":{"detail":"Forbidden endpoint for this user."}}}},"422":{"description":"Unprocessable.","content":{"application/json":{"example":{"detail":"Unprocessable entity."}}}}}}},"/v1/alert-policies/status":{"get":{"tags":["Alert Policies"],"summary":"List Alert Policies","description":"### List Alert Policies\n\nRetrieve a list of all alert policies associated with a given resource.\n\n> **Note:** Only resources of type **spot** are supported by this endpoint. If you provide a `resourceId` that does not correspond to a spot, the request will not return any alert policies.\n\n> **Note:** If there are no alert policies associated with the provided `resourceId`, the response will return a status code 200 OK with an empty list.","operationId":"list_alert_policies_develop_v1_alert_policies_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resourceId","in":"query","required":true,"schema":{"type":"string","description":"The unique identifier of the resource (spot) for which to list alert policies.","title":"Resourceid"},"description":"The unique identifier of the resource (spot) for which to list alert policies."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"policyId":{"type":"string","title":"Policyid","description":"The unique identifier for the policy.","examples":["507f191e810c19729de860ea","507f191e810c19729de860eb","507f191e810c19729de860ec"]},"policyName":{"type":"string","title":"Policyname","description":"The name of the policy.","examples":["Policy Name"]},"policyType":{"type":"string","title":"Policytype","description":"The type of the policy","examples":["telemetry"]},"currentStatus":{"anyOf":[{"type":"string","enum":["no-alert","a1","a2"],"title":"CurrentStatus"},{"type":"null"}],"description":"The current status of the policy."},"lastProcessedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastprocessedat","description":"The last processed at."}},"type":"object","required":["policyId","policyName","policyType","currentStatus"],"title":"CompactAlertPolicy"},"title":"Response List Alert Policies Develop V1 Alert Policies Status Get"}}}},"401":{"description":"Not Authenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Authenticated."}}},"example":{"detail":"Not Authenticated."}}}},"404":{"description":"Not Found.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Found."}}},"example":{"detail":"Not Found."}}}},"403":{"description":"User Not Authorized.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"User Not Authorized."}}},"example":{"detail":"User Not Authorized."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/alert-policies/{policyId}":{"get":{"tags":["Alert Policies"],"summary":"Get Alert Policy","description":"### Get a single Alert Policy\n\nRetrieve an alert policy by its `policyId`.\n\nReturns a detailed object representing the alert policy, including:\n- Name, description, type, priority, status, associated conditions, and current status.","operationId":"get_alert_policy_develop_v1_alert_policies__policyId__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policyId","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the alert policy.","title":"Policyid"},"description":"The unique identifier of the alert policy."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the policy.","examples":["Policy Name"]},"policyType":{"type":"string","enum":["telemetry","spectralMetrics"],"title":"Policytype","description":"The policy type.","examples":["telemetry","spectralMetrics"]},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the policy is enabled.","default":false},"alertA1":{"anyOf":[{"properties":{"conditions":{"items":{"properties":{"combinator":{"type":"string","enum":["or","and"],"title":"Combinator","description":"The combinator of the rule."},"alertFunctions":{"items":{"properties":{"resourceId":{"type":"string","title":"Resourceid","description":"The resource id.","examples":["507f191e810c19729de860ea","507f191e810c19729de860eb","507f191e810c19729de860ec"]},"configuration":{"properties":{"evaluator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator","description":"Operator used for condition evaluation (e.g., greater than or equal, less than or equal, etc.).","examples":["gte","lte"]},"threshold":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Threshold","description":"Threshold value that will be evaluated by the function to trigger the alarm.","examples":[10,20]},"consecutive":{"type":"integer","minimum":1.0,"title":"Consecutive","description":"Number of consecutive times the condition must be satisfied to trigger the alarm.","default":1}},"type":"object","title":"Configuration"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status","description":"Status of this individual alert function.","default":false},"metricValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Metricvalue","description":"The metric value."},"metricName":{"type":"string","title":"Metricname","description":"The metric name. For telemetry metrics, return the format: `telemetry/{metricDescriptorId}`. For spectral metrics, return the format: `{axis}/{physicalQuantity}/{statisticalProcessing}/{band}`, where each part is concatenated from the attributes returned by the get spectral metrics endpoint."}},"type":"object","required":["resourceId","configuration","metricName"],"title":"AlertFunction"},"type":"array","title":"Alertfunctions","description":"The alert functions of the condition."}},"type":"object","required":["combinator","alertFunctions"],"title":"Condition"},"type":"array","title":"Conditions","description":"The conditions of the rule."}},"type":"object","required":["conditions"],"title":"SeverityRule"},{"type":"null"}]},"alertA2":{"anyOf":[{"properties":{"conditions":{"items":{"properties":{"combinator":{"type":"string","enum":["or","and"],"title":"Combinator","description":"The combinator of the rule."},"alertFunctions":{"items":{"properties":{"resourceId":{"type":"string","title":"Resourceid","description":"The resource id.","examples":["507f191e810c19729de860ea","507f191e810c19729de860eb","507f191e810c19729de860ec"]},"configuration":{"properties":{"evaluator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator","description":"Operator used for condition evaluation (e.g., greater than or equal, less than or equal, etc.).","examples":["gte","lte"]},"threshold":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Threshold","description":"Threshold value that will be evaluated by the function to trigger the alarm.","examples":[10,20]},"consecutive":{"type":"integer","minimum":1.0,"title":"Consecutive","description":"Number of consecutive times the condition must be satisfied to trigger the alarm.","default":1}},"type":"object","title":"Configuration"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status","description":"Status of this individual alert function.","default":false},"metricValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Metricvalue","description":"The metric value."},"metricName":{"type":"string","title":"Metricname","description":"The metric name. For telemetry metrics, return the format: `telemetry/{metricDescriptorId}`. For spectral metrics, return the format: `{axis}/{physicalQuantity}/{statisticalProcessing}/{band}`, where each part is concatenated from the attributes returned by the get spectral metrics endpoint."}},"type":"object","required":["resourceId","configuration","metricName"],"title":"AlertFunction"},"type":"array","title":"Alertfunctions","description":"The alert functions of the condition."}},"type":"object","required":["combinator","alertFunctions"],"title":"Condition"},"type":"array","title":"Conditions","description":"The conditions of the rule."}},"type":"object","required":["conditions"],"title":"SeverityRule"},{"type":"null"}]},"policyId":{"type":"string","title":"Policyid","description":"The unique identifier for the policy.","examples":["507f191e810c19729de860ea","507f191e810c19729de860eb","507f191e810c19729de860ec"]},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"The creation date of the policy."},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"The last update date of the policy."},"deleted":{"type":"boolean","title":"Deleted","description":"Whether the policy is deleted."},"currentStatus":{"anyOf":[{"type":"string","enum":["no-alert","a1","a2"],"title":"CurrentStatus"},{"type":"null"}],"description":"The current status of the policy."},"lastProcessedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastprocessedat","description":"Timestamp when the metric value was processed."}},"type":"object","required":["name","policyType","policyId","createdAt","updatedAt","deleted","currentStatus"],"title":"AlertPolicy"}}}},"401":{"description":"Not Authenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Authenticated."}}},"example":{"detail":"Not Authenticated."}}}},"404":{"description":"Not Found.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Found."}}},"example":{"detail":"Not Found."}}}},"403":{"description":"User Not Authorized.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"User Not Authorized."}}},"example":{"detail":"User Not Authorized."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/alert-policies/{policyId}/history":{"get":{"tags":["Alert Policies"],"summary":"Get Alert History By Policy Id","description":"### Get Alert History\n\nRetrieve an alert history by its `policyId`.\n\nThe `fromTime` and `toTime` parameters are optional and allow you to filter the alert history by a specific time range.\n\nReturns a list of alert history objects, including:\n- Timestamp, alert policy ID and alert status.\n\n> **Note:** The `fromTime` and `toTime` parameters must be in the format \"YYYY-MM-DD\" (e.g. `2022-01-01`) or \"YYYY-MM-DDTHH:MM:SS\" (e.g. `2022-01-01T00:00:00`).\n\n> **Note:** If `fromTime` is not provided, the default value is the current time minus 7 days. If `toTime` is not provided, the default value is the current time.\n\n> **Note:** The data is only available for the past 7 days from the current date. If a date earlier than 7 days is provided, we will set the `fromTime` to 7 days before the current date.\n\n> **Note:** If the `fromTime` is greater than the `toTime`, the request will not return any alert history.","operationId":"get_alert_history_by_policy_id_develop_v1_alert_policies__policyId__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policyId","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the alert policy.","title":"Policyid"},"description":"The unique identifier of the alert policy."},{"name":"fromTime","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The start date of the alert history","title":"Fromtime"},"description":"The start date of the alert history"},{"name":"toTime","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The end date of the alert history","title":"Totime"},"description":"The end date of the alert history"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Page ID","title":"Pagetoken"},"description":"Page ID"},{"name":"size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Page size","default":100,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Request completed successfully.","content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp of the alert"},"alertPolicyId":{"type":"string","title":"Alertpolicyid","description":"Alert policy id","examples":["507f191e810c19729de860ea"]},"alert":{"anyOf":[{"type":"string","enum":["no-alert","a1","a2"],"title":"Severities","description":"Enum class representing the severities of alert policies.\nAt the moment, the only supported severities are 'a1' and 'a2'."},{"type":"null"}],"description":"Alert severity"}},"type":"object","required":["timestamp","alertPolicyId","alert"],"title":"AlertHistory","description":"Alert history model."},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"PaginatedResponse[AlertHistory]"},"examples":{"default":{"value":{"data":[{"timestamp":"2022-01-01T00:00:00","alertPolicyId":"507f191e810c19729de860ea","alert":"A1"},{"timestamp":"2022-01-05T00:00:00","alertPolicyId":"507f191e810c19729de860ea","alert":"A2"},{"timestamp":"2022-01-06T00:00:00","alertPolicyId":"507f191e810c19729de860ea","alert":"no-alert"}],"next":"https://api.dynamox.solutions/v1/alert-policies/507f191e810c19729de860ea/history&pageToken=64fb25ccaf1d9d42563163bb"}}}}}},"401":{"description":"Not Authenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Authenticated."}}},"example":{"detail":"Not Authenticated."}}}},"404":{"description":"Not Found.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not Found."}}},"example":{"detail":"Not Found."}}}},"422":{"description":"Unprocessable Entity.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Unprocessable Entity."}}},"example":{"detail":"Unprocessable Entity."}}}},"403":{"description":"User Not Authorized.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"User Not Authorized."}}},"example":{"detail":"User Not Authorized."}}}}}}},"/v1/workspaces/{workspaceId}/assets":{"get":{"tags":["Assets"],"summary":"Get assets list paginated from context","description":"Get assets list paginated from context","operationId":"getAssetsListPaginatedFromContext","parameters":[{"name":"workspaceId","in":"path","description":"workspaceId to retrieve assets","required":true,"style":"form","explode":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"docs":{"type":"array","items":{"type":"object","description":"Asset V1","properties":{"id":{"type":"string","description":"Asset unique id"},"parentId":{"type":"string","description":"Asset unique ID from parent Asset"},"name":{"type":"string","description":"Asset friendly name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The asset code"},"partNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The asset part number"},"serialNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The asset serial number"},"depthAsset":{"type":"number","description":"\n            The depthAsset refers to the hierarchy existing between the relationship of machines, subsets and components.\n            - '0' = machine, which is the root reference,\n            - '1' = subset,\n            - '2' = component.","example":0},"configurationType":{"anyOf":[{"type":"object"},{"type":"null"}],"description":"A ConfigurationTypeJSON object associated with asset model","default":{}},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine model","example":"vibratingScreen"},"createdAt":{"type":"string","format":"date-time","description":"Date when the asset was created"},"updatedAt":{"type":"string","format":"date-time","description":"Date when the asset was last updated"}},"additionalProperties":false,"required":["code","createdAt","id","name","parentId","partNumber","serialNumber","updatedAt"]}},"items":{"type":"object","properties":{"limit":{"type":"integer"},"total":{"type":"integer"}},"required":["limit","total"],"additionalProperties":false},"pages":{"type":"object","properties":{"current":{"type":"integer"},"prev":{"type":"integer"},"hasPrev":{"type":"boolean"},"next":{"type":"integer"},"hasNext":{"type":"boolean"},"total":{"type":"integer"}},"required":["current","hasNext","hasPrev","next","prev","total"],"additionalProperties":false}}}}}},"403":{"description":"workspaceId: string is required to access this endpoint"},"404":{"description":"It was not possible to find a AssetV1 with workspaceId #"}},"security":[{"bearerAuth":[]}]}},"/v1/waveforms/":{"get":{"tags":["Waveform"],"summary":"Get waveforms list from monitoring points","description":"Get waveforms list from  monitoring points","operationId":"getWaveformsListFromMonitoringPoints","parameters":[{"name":"monitoringPointIds","in":"query","description":"monitoringPointIds to retrieve waveforms from","required":true,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}},"example":"monitoringPointIds[]=64f78c58974e845602c15b60&monitoringPointIds[]=639a210f3610fc160677a331"},{"name":"page","in":"query","description":"page for pagination | default = 1","required":false,"style":"form","explode":true,"schema":{"type":"number","default":1}},{"name":"limit","in":"query","description":"Limit of measures in response.","required":false,"style":"form","explode":true,"schema":{"type":"number","default":25}},{"name":"sort","in":"query","description":"sort for pagination | default = name","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"direction","in":"query","description":"Direction for sort | ascending = 1 (default), descending = -1 ","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"fromTime","in":"query","description":"Get waveforms with startedAt greater than this value.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"toTime","in":"query","description":"Get waveforms with startedAt lower than this value","required":true,"style":"form","explode":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","description":"Spectral unique ID"},"simultaneous":{"type":"boolean","default":false},"startedAt":{"type":"string","format":"date-time","description":"Spectral startedAt"},"finishedAt":{"type":"string","format":"date-time","description":"Spectral finishedAt"},"downloadDate":{"type":"string","format":"date-time","description":"Spectral downloadDate"},"settings":{"type":"array","description":"Attributes that describe spectral measurement (e.g. axis, duration, samples, etc)","items":{"properties":{"autoRange":{"type":"boolean","description":"Setting to determine whether the device should or should not autorange before conducting the spectral analysis. If \"amplitudeRangeInG\" is set to null, the value of this setting needs to be true."},"axis":{"type":"object","properties":{"x":{"type":"boolean"},"y":{"type":"boolean"},"z":{"type":"boolean"}},"description":"An object that represent which axes should be used to measure the signal."},"duration":{"type":"number","description":"Duration of the signal being measured."},"samples":{"type":"integer","description":"Number of samples collected to represent the signal, during the period it was being measured. The table bellow will be used to cross-validate samples, model and sampling frequencies.\n\n | Model         | Sampling Rate (Hz)                                  | Samples                                       | ---- |\n| --------------| --------------------------------------------------- | --------------------------------------------- | ---- |\n| TcA           | 2048                                                | 8192                                          |      |\n| TcA+          | 2048                                                | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| AS            | 2048                                                | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| HF            | 200, 400, 800, 1600, 3200, 6400, 12800               | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| RE            | 200, 400, 800, 1600, 3200, 6400, 12800               | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| HF+           | 1143, 2629, 5258, 13145, 26290,                     | 2048, 4096, 8192, 16384, 32768, 65536, 98304,  |      |\n|               | 52580, 131450                                       | 196608                                        |      |\n| TcAs          | 2520, 5040                                          | 2048, 4096, 8192, 16384, 32768, 60800, 65536,  |     |\n|               |                                                      | 98304, 182400                                  |      |\n| TcAg          | 2520, 5040                                          | 2048, 4096, 8192, 16384, 32768, 60800, 65536,  |     |\n|               |                                                      | 98304, 182400                                  |      |\n| DynaPortable  | 1143, 2629, 5258, 13145, 26290                       | 2048, 4096, 8192, 16384, 32768, 65536, 98304, 196608 |    |"},"samplingRate":{"type":"integer","description":"Nominal sampling rate of the final signal. The table bellow will be used to cross-validate samples, model and sampling frequencies.\n\n | Model         | Sampling Rate (Hz)                                  | Samples                                       | ---- |\n| --------------| --------------------------------------------------- | --------------------------------------------- | ---- |\n| TcA           | 2048                                                | 8192                                          |      |\n| TcA+          | 2048                                                | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| AS            | 2048                                                | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| HF            | 200, 400, 800, 1600, 3200, 6400, 12800               | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| RE            | 200, 400, 800, 1600, 3200, 6400, 12800               | 1024, 2048, 4096, 8192, 16384, 32768           |      |\n| HF+           | 1143, 2629, 5258, 13145, 26290,                     | 2048, 4096, 8192, 16384, 32768, 65536, 98304,  |      |\n|               | 52580, 131450                                       | 196608                                        |      |\n| TcAs          | 2520, 5040                                          | 2048, 4096, 8192, 16384, 32768, 60800, 65536,  |      |\n|               |                                                      | 98304, 182400                                  |      |\n| TcAg          | 2520, 5040                                          | 2048, 4096, 8192, 16384, 32768, 60800, 65536,  |     |\n|               |                                                      | 98304, 182400                                  |      |\n| DynaPortable  | 1143, 2629, 5258, 13145, 26290                       | 2048, 4096, 8192, 16384, 32768, 65536, 98304, 196608  |     |"}}}},"spotId":{"type":"string","description":"Spectral spotId"},"createdAt":{"type":"string","format":"date-time","description":"Spectral createdAt"},"updatedAt":{"type":"string","format":"date-time","description":"Spectral updatedAt"}}}}}},"400":{"description":"It was not possible to get spectrals."}},"security":[{"bearerAuth":[]}]}},"/v1/assets/:assetId/monitoring-points":{"get":{"tags":["Monitoring Points"],"summary":"Get monitoring points v1 list from asset","description":"Get monitoring points v1 list from asset","operationId":"getMonitoringPointsV1FromAsset","parameters":[{"name":"assetId","in":"path","description":"assetId to get monitoring points V1 from","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page for pagination | default = 1","required":false,"style":"form","explode":true,"schema":{"type":"number","default":1}},{"name":"limit","in":"query","description":"Limit of documents in response.","required":false,"style":"form","explode":true,"schema":{"type":"number","default":25}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"docs":{"type":"array","items":{"properties":{"_id":{"type":"string"},"parentId":{"type":"string"},"name":{"type":"string","maxLength":256,"minLength":1},"spotCharacteristics":{"type":"object","additionalProperties":false,"properties":{"mechanicalSettings":{"type":"object","description":"Mechanical configuration settings for the monitoring point","properties":{"rollingBearings":{"type":"array","description":"List of rolling bearing configurations associated with this monitoring point","items":{"type":"object","properties":{"default":{"type":"object","description":"Default bearing parameters from manufacturer specifications","properties":{"_id":{"type":"string","description":"Unique identifier for the bearing model"},"bpfi":{"type":"number","description":"Ball Pass Frequency Inner race"},"bpfo":{"type":"number","description":"Ball Pass Frequency Outer race"},"bsf":{"type":"number","description":"Ball Spin Frequency"},"elements":{"type":"number","description":"Number of rolling elements in the bearing"},"ftf":{"type":"number","description":"Fundamental Train Frequency"},"main":{"type":"boolean","description":"Indicates if this is the main bearing configuration"},"manufacturer":{"type":"string","description":"Bearing manufacturer name"},"manufacturerCode":{"type":"string","description":"Manufacturer code or abbreviation"},"model":{"type":"string","description":"Bearing model number"},"rotatingRing":{"type":"string","enum":["inner","outer"],"description":"Indicates the rotating ring from bearing"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp for the bearing specifications"}},"required":["_id","bpfi","bpfo","bsf","elements","ftf","main","manufacturer","manufacturerCode","model","updatedAt"],"additionalProperties":false},"custom":{"type":"object","description":"Custom bearing parameters defined by the user","properties":{"bpfi":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Ball Pass Frequency Inner race (custom value)"},"bpfo":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Ball Pass Frequency Outer race (custom value)"},"bsf":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Ball Spin Frequency (custom value)"},"ftf":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Fundamental Train Frequency (custom value)"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Custom label for the bearing"}},"required":["bpfi","bpfo","bsf","ftf","label"],"additionalProperties":false}},"required":["default","custom"],"additionalProperties":false}}},"required":["rollingBearings"],"additionalProperties":false},"monitoringPositionSlug":{"anyOf":[{"type":"string","enum":["base","head","carcass","easel","gearboxinput","gearboxintermediate","slidingbearing","bearinghousing","gearboxoutput","pipe","left-hand-feed-end","right-hand-feed-end","left-hand-discharge-end","right-hand-discharge-end","right-outer-roller","right-inner-roller","right-center-roller","left-center-roller","left-inner-roller","left-outer-roller","drum-feed-end","drum-center","drum-discharge-end","others"]},{"type":"null"}],"description":"The chosen location for monitoring data collection by the data logger. Specifies the position where data is recorded."},"rpm":{"anyOf":[{"type":"number","format":"float","minimum":0},{"type":"null"}],"description":"Rotations per minute (RPM) at the chosen monitoring position. Represents the speed of rotation at the specified location."}},"required":["monitoringPositionSlug","mechanicalSettings","rpm"],"title":"SpotCharacteristics"},"sensors":{"type":"array","items":{"type":"object","properties":{"axesOrientation":{"type":"object","description":"Object that represent how each axis of the DynaLogger is positioned relative to the monitoring point`s local coordinate system.","properties":{"x":{"type":"string","description":"Same as \"settings.labelAxisX\" in spotV4. Label that represents the position of the DynaLogger`s X-axis relative to the MonitoringPoint`s coordinate system.","enum":["axial","radial","tangential","horizontal","vertical"]},"y":{"type":"string","description":"Same as \"settings.labelAxisY\" in spotV4. Label that represents the position of the DynaLogger`s Y-axis relative to the MonitoringPoint`s coordinate system.","enum":["axial","radial","tangential","horizontal","vertical"]},"z":{"type":"string","description":"Same as \"settings.labelAxisZ\" in spotV4. Label that represents the position of the DynaLogger`s Z-axis relative to the MonitoringPoint`s coordinate system.","enum":["axial","radial","tangential","horizontal","vertical"]}},"required":["x","y","z"],"additionalProperties":false}}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}},"pages":{"properties":{"current":{"type":"number","description":"The current page number","example":1},"prev":{"type":"number","description":"The page number of the previous page, if available","example":0},"hasPrev":{"type":"boolean","description":"A boolean indicating whether a previous page exists","example":false},"next":{"type":"number","description":"The page number of the next page, if available","example":2},"hasNext":{"type":"boolean","description":"A boolean indicating whether a next page exists","example":true},"total":{"type":"number","description":"The total number of pages in the collection or dataset","example":10}}},"items":{"type":"object","properties":{"limit":{"type":"number","description":"The number of items shown per page","example":20},"total":{"type":"number","description":"The total number of items present in this filter collection","example":200}}}}}}}},"400":{"description":"It was not possible to get monitoring points V1."}},"security":[{"bearerAuth":[]}]}},"/v1/measuring-systems":{"post":{"tags":["Measuring Systems"],"summary":"Create Measuring System resources","description":"Create Measuring System resources in the Digitalization Platform.\n\nThis endpoint supports both single and batch creation:\n\n- Single creation: send one item inside `resourcesAttributes` to create a single Measuring System resource.\n- Batch creation: send multiple items inside `resourcesAttributes` to create several Measuring System resources at once.\n\nEach item requires you to explicitly choose the Measuring System Model by providing its `model.name` and `model.version`.\nThe platform will use this pair (name + version) to resolve the Resource Model and instantiate the Measuring System resource accordingly.\n\nThe fields required for each item are determined by the `resourceSchema` of the chosen ResourceModel. Ensure that you provide all necessary fields as defined by this schema.\n\nMinimum required fields per item:\n- `model.name` (string)\n- `model.version` (integer)\n","operationId":"postMeasuringSystem","requestBody":{"content":{"application/json":{"schema":{"properties":{"resourcesAttributes":{"items":{"properties":{"model":{"properties":{"name":{"type":"string","description":"Model name, used to search for a resource model in database"},"version":{"type":"integer","description":"Model version. Used to search for a resource model in database"}},"additionalProperties":false,"type":"object","required":["name","version"],"title":"model"},"tree":{"properties":{"parentId":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"The unique identifier of the workspace that owns this resource. This ID links the resource to a specific workspace in the system."}},"additionalProperties":false,"type":"object","required":["parentId"]}},"additionalProperties":false,"type":"object","required":["model","tree"],"description":"Attributes from a single Resource V2 to be created."},"type":"array"}},"required":["resourcesAttributes"]},"example":{"resourcesAttributes":[{"model":{"name":"MeasuringSystemModel","version":3}}]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"items":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Resource unique id"},"model":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique id from correspondent Resource Model"},"name":{"type":"string","description":"Model name, used to search for a resource model in database"},"version":{"type":"integer","description":"Model version. Used to search for a resource model in database"},"lineageIdPath":{"type":"string","pattern":"^(/[a-f0-9]{24})+$","description":"Describes the lineage of the resource model, that will categorize the respective resource"}},"additionalProperties":false,"type":"object","required":["name","version","_id","lineageIdPath"],"title":"model"},"tree":{"properties":{"parentId":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"The unique identifier of the workspace that owns this resource. This ID links the resource to a specific workspace in the system."},{"type":"null"}]},"idPath":{"anyOf":[{"type":"string","pattern":"^(/[a-f0-9]{24})+$","description":"The hierarchical idPath of this resource. This path represents the resources's location within a tree structure based on the unique ids of the hierarchy."},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["parentId","idPath"]},"uniqueIdentifier":{"anyOf":[{"type":"string","description":"Unique identifier of the resource. It is an attribute of measuring systems."},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the resource was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the resource was last updated."}},"type":"object"},"type":"array"},"example":[{"_id":"64f78c58974e845602c15b62","uniqueIdentifier":"unique-measuring-system-id","model":{"_id":"64f78c58974e845602c15b61","name":"MeasuringSystem","version":3,"lineageIdPath":"/64f78c58974e845602c15b61"},"tree":{"parentId":null,"idPath":"/64f78c58974e845602c15b62"},"createdAt":"2025-09-29T13:51:19Z","updatedAt":"2025-09-29T13:51:19Z"}]}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Error trying to create resources. Measuring system resources must have parentId null.","Resource model with name {name} and version {version} referenced is not instantiable. Resources cannot be created from this model.","Two or more Resources to be created have the same unique identifier: {identifiers}"]}},"type":"object"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","default":"Unauthorized"}},"type":"object"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["User does not have permission to use Resource Model with name {name} and version {version}","Given Workspace does not match Resource Model Workspace Path","There aren't permissions for current user in workspace"]}},"type":"object"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Resource Model with name {name} and version {version} was not found"]}},"type":"object"}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Something went wrong."}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/measuring-systems/{resourceId}":{"delete":{"tags":["Measuring Systems"],"summary":"Delete a Measuring System resource","description":"Deletes a Measuring System resource by its unique ID. If the resource is a parent to a configuration slots, it will also be deleted.","operationId":"deleteMeasuringSystem","parameters":[{"name":"resourceId","in":"path","description":"The unique identifier of the Measuring System resource to be deleted.","required":true,"schema":{"type":"string","example":"64f78c58974e845602c15b62"}}],"responses":{"200":{"description":"OK. Successfully deleted the Measuring System resource.","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Resource unique id"},"model":{"type":"object","additionalProperties":false,"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique id from correspondent Resource Model"},"name":{"type":"string","description":"Model name, used to search for a resource model in database"},"version":{"type":"integer","description":"Model version. Used to search for a resource model in database"},"lineageIdPath":{"type":"string","pattern":"^(/[a-f0-9]{24})+$","description":"Describes the lineage of the resource model, that will categorize the respective resource"}},"required":["name","version","_id","lineageIdPath"],"title":"model"},"tree":{"type":"object","additionalProperties":true,"properties":{"parentId":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"The unique identifier of the workspace that owns this resource. This ID links the resource to a specific workspace in the system."},{"type":"null"}]},"idPath":{"anyOf":[{"type":"string","pattern":"^(/[a-f0-9]{24})+$","description":"The hierarchical idPath of this resource. This path represents the resources's location within a tree structure based on the unique ids of the hierarchy."},{"type":"null"}]}},"required":["parentId","idPath"]},"uniqueIdentifier":{"anyOf":[{"type":"string","description":"Unique identifier of the resource. It is an attribute of measuring systems."},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the resource was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the resource was last updated."}}},"example":[{"_id":"64f78c58974e845602c15b62","uniqueIdentifier":"unique-measuring-system-id","model":{"_id":"64f78c58974e845602c15b61","name":"MeasuringSystem","version":3,"lineageIdPath":"/64f78c58974e845602c15b61"},"tree":{"parentId":null,"idPath":"/64f78c58974e845602c15b62"},"createdAt":"2025-09-30T13:51:19Z","updatedAt":"2025-09-30T13:51:19Z"}]}}},"400":{"description":"Bad Request. The specified resource is not a valid measuring system.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"ResourceModelV2 with name #MyModel and version 1 is not from a measuring system model lineage."}}}}}},"401":{"description":"Unauthorized. The request lacks valid authentication credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized"}}}}}},"403":{"description":"Forbidden. The user does not have permission to delete this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Insufficient permissions to delete instance of a PUBLIC resource model."}}}}}},"404":{"description":"Not Found. The Measuring System resource with the specified ID was not found.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"ResourceV2 with id #64f78c58974e845602c15b62 not found"}}}}}},"410":{"description":"Gone. The Measuring System resource has already been deleted.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"ResourceV2 with id #64f78c58974e845602c15b62 is already deleted"}}}}}},"422":{"description":"Unprocessable Entity. The request is well-formed but cannot be processed due to semantic errors, such as an invalid resource ID or a resource being in use.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Path parameter \"resourceId\" is required to access this endpoint","Resource is associated in configuration slot #64f78c58974e845602c15b63. Disassociate before deleting."]}}}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something went wrong."}}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/configuration-slots":{"post":{"tags":["Configuration Slots"],"summary":"Create Configuration Slot","description":"Creates a new Configuration Slot in the Digitalization Platform.\n\nConfiguration Slots define how Measuring Systems monitor specific locations within your assets. They establish the relationship between a Measuring System Model, monitoring locations, and the configuration parameters needed for data collection.\n\n## Key Concepts\n\n**Configuration Slot**: A template that defines monitoring parameters for a specific Measuring System Model. It can be associated with a Measuring System to enable data collection from monitored resources.\n\n**Measuring System Model**: Defines the capabilities and requirements of measuring devices. Each Configuration Slot must reference a valid Measuring System Model by name and version.\n\n**Monitoring Location Map**: Maps logical monitoring points (like \"bearing1\", \"motor\") to actual monitored resource IDs in your asset hierarchy.\n\n**Configuration**: Device-specific parameters that control how measurements are taken (sampling rates, filters, etc.).\n\n**Measuring System Unique Identifier**: Optional field that can be set to `null` or contain the identifier of an existing Measuring System resource. This can be either a 24-character hexadecimal ID or a custom string identifier that was registered when creating the Measuring System via the POST measuring-systems endpoint. When `null`, the Configuration Slot is created as a template without active monitoring. When specified with a valid identifier, the Configuration Slot is immediately associated and ready for data collection.\n\n## Required Information\n\nBefore creating a Configuration Slot, ensure you have:\n- A valid Measuring System Model (name and version)\n- Parent resource ID (the asset or component being monitored)\n- Monitoring location mappings\n- Configuration parameters matching the model's schema\n- (Optional) Measuring System Unique Identifier if you want immediate association\n\n## Usage Flow\n\nYou have two options when creating a Configuration Slot:\n\n**Option 1: Create with immediate association**\n1. Create Configuration Slot with `measuringSystemUniqueIdentifier` specified (this endpoint)\n2. Start collecting telemetry data through the telemetry cycles endpoint\n\n**Option 2: Create and associate later**\n1. Create Configuration Slot with `measuringSystemUniqueIdentifier` set to `null` (this endpoint)\n2. Associate with a Measuring System using the association endpoint when ready\n3. Start collecting telemetry data through the telemetry cycles endpoint\n\nBoth approaches are valid - choose based on whether you have the Measuring System ready at creation time or prefer to set up the configuration template first and associate it later.\n\n## Validation\n\nThe system validates:\n- Measuring System Model exists and is accessible\n- Parent resource exists and is accessible\n- Configuration matches the model's configuration schema\n- Monitoring locations reference valid resources\n- User has appropriate permissions","operationId":"postConfigurationSlot","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"configuration":{"additionalProperties":true,"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary."},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot as an option to monitor with."},"measuringSystemModel":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"type":"object","required":["name","version"],"description":"Object containing the name and version of the measuring system model."},"monitoringLocationMapSchema":{"items":{"properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}},"type":"object"},"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location"},"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the parent of the configuration slot."}},"required":["configuration","monitoringLocationMap","parentId","measuringSystemModel"]},"example":{"name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"parentId":"64f78c58974e845602c15b60","monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b61"},{"mapLabel":"bearing2","mapValue":"64f78c58974e845602c15b62"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}},"measuringSystemUniqueIdentifier":null}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the configuration slot."},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMap":{"items":{"properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}},"type":"object"},"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location"},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot to monitor with."},"measuringSystemModel":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"additionalProperties":false,"type":"object","required":["name","version"],"description":"Object containing the name and version of the measuring system model."},"configuration":{"additionalProperties":true,"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary."},"tree":{"properties":{"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the configuration slot in the resource model tree."},"idPath":{"type":"string","pattern":"^(/[0-9a-f]{24})+$","description":"A list of IDs, each being a 24-character alphanumeric string, separated by slashes that represents the hierarchy of the configuration slot in the tree."}},"additionalProperties":false,"type":"object","required":["parentId","idPath"],"description":"Object containing the id and the path of the configuration slot in the resource model tree."},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was last updated."}},"required":["_id","name","monitoringLocationMap","measuringSystemUniqueIdentifier","configuration","createdAt","updatedAt"]},"example":{"_id":"64f78c58974e845602c15b63","name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":null,"monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b61"},{"mapLabel":"bearing2","mapValue":"64f78c58974e845602c15b62"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/64f78c58974e845602c15b63"},"createdAt":"2025-10-07T15:55:29Z","updatedAt":"2025-10-07T15:55:29Z"}}}},"400":{"description":"Bad Request - Validation errors or invalid input","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Schema validation errors","Model provided is not from measuring system lineage","Model with name model-example-name-a and version 1 provided does not match a valid measuring system model lineage","Measuring system resource with uniqueIdentifier WYXZ uses model with id 64f78c58974e845602c15b60 that is not a match with the measuring system model provided in the request.","Device with uniqueIdentifier WYXZ provided has model with id #64f78c58974e845602c15b60 that does not match with a measuring system model lineage.","The number of resources being monitored from locationMonitoringMap input is higher than what the simultaneousMeasuredResources attribute from the measuring system model expects.","Missing attributesMap property in measurableQuantity of model \"example-model-name-a\"","There is no attribute at channel1 in the configuration of configuration slot 64f78c58974e845602c15b63","There is no attribute with name \"property\" in the measurableQuantityAttributesMap model \"model-example-name-a\"","Invalid metric behaviour","Invalid unit behaviour","Path from measurableQuantity.unitMap model \"example-model-name-a\" is invalid in the configuration of configuration slot \"64f78c58974e845602c15b63\"","There is no unit at \"measurableQuantity.unitMap\" in the configuration of configuration slot \"5f78c58974e845602c15b63\"","Monitored Resource Parent Id is null. Not able to validate access to create this Configuration Slot."]}},"type":"object"}}}},"401":{"description":"Unauthorized - Invalid or missing authentication token","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Unauthorized"}},"type":"object"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["There aren't permissions for current user in workspace"]}},"type":"object"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Model with name model-example-name-a and version 1 was not found","Resource with measuringSystemUniqueIdentifier WYXZ provided was not found","Some monitored resource ids provided were not found in the database"]}},"type":"object"}}}},"409":{"description":"Conflict - Resource already exists or conflicts with existing data","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["There is already another Configuration Slot associated with this Measuring System"]}},"type":"object"}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Something went wrong."}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/configuration-slots/{configurationSlotId}":{"patch":{"tags":["Configuration Slots"],"summary":"Update Configuration Slot","description":"Updates an existing Configuration Slot in the Digitalization Platform.\n\nConfiguration Slots define how Measuring Systems monitor specific locations within your assets.\nThis endpoint allows you to update the name, monitoringLocationMap and configuration a specific Configuration Slot.\nWith this PATCH method, you can modify the the monitoring location map to change the monitored resource label/region or the monitoring location ID. The configuration can also be changed, but it must match the respective configuration slot resource model.\n\n## Key Concepts\n\n**Monitoring Location Map**: Maps logical monitoring points (like \"bearing1\", \"motor\") to actual monitored resource IDs in your asset hierarchy.\n\n**Configuration**: Device-specific parameters that control how measurements are taken (sampling rates, filters, etc.).\n\n## Required Information\n\nBefore update a Configuration Slot, ensure you have:\n- The Configuration Slot ID from the entity you want to update\n- A valid Measuring Monitoring Location Id, if is desired to change the monitoring location map\n- Configuration parameters that match the model's schema, if its desired to update configuration\n\n## Validation\n\nThe system validates:\n- Configuration matches the model's configuration schema\n- Monitoring locations reference valid resources\n- User has appropriate permissions","operationId":"patchConfigurationSlot","requestBody":{"content":{"application/json":{"schema":{"properties":{"configuration":{"type":"object","description":"Configuration object that will be updated","additionalProperties":true},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMapSchema":{"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location","items":{"type":"object","properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}}}}},"required":[]},"example":{"name":"Motor Bearing Monitoring Configuration","monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b68"},{"mapLabel":"bearing2","mapValue":"64f78c58974e845602c15b69"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the configuration slot."},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMap":{"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location","items":{"type":"object","properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}}}},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot to monitor with."},"measuringSystemModel":{"type":"object","description":"Object containing the name and version of the measuring system model.","properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"required":["name","version"],"additionalProperties":false},"configuration":{"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary.","additionalProperties":true},"tree":{"type":"object","description":"Object containing the id and the path of the configuration slot in the resource model tree.","properties":{"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the configuration slot in the resource model tree."},"idPath":{"type":"string","pattern":"^(/[0-9a-f]{24})+$","description":"A list of IDs, each being a 24-character alphanumeric string, separated by slashes that represents the hierarchy of the configuration slot in the tree."}},"required":["parentId","idPath"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was last updated."}},"required":["_id","name","monitoringLocationMap","measuringSystemUniqueIdentifier","configuration","createdAt","updatedAt"]},"example":{"_id":"64f78c58974e845602c15b63","name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":null,"monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b68"},{"mapLabel":"bearing2","mapValue":"64f78c58974e845602c15b69"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/64f78c58974e845602c15b63"},"createdAt":"2025-10-07T15:55:29Z","updatedAt":"2025-10-07T15:55:29Z"}}}},"400":{"description":"Bad Request - Validation errors or invalid input","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Schema validation errors","Monitored Resource Parent Id is null. Not able to validate access to update this Configuration Slot.","Is required to have permission to all resources listed for this Configuration Slot update. No permissions enough in resource #64f78c58974e845602c15b61.","Number of resources being monitored with this configuration plus the new resources to be associated would exceed the limit for this Measuring System Model.","Missing attributesMap property in measurableQuantity of model \"example-model-name-a\"","There is no attribute at channel1 in the configuration of configuration slot 64f78c58974e845602c15b63","There is no attribute with name \"property\" in the measurableQuantityAttributesMap model \"model-example-name-a\"","Invalid metric behaviour","Invalid unit behaviour","Path from measurableQuantity.unitMap model \"example-model-name-a\" is invalid in the configuration of configuration slot \"64f78c58974e845602c15b63\"","There is no unit at \"measurableQuantity.unitMap\" in the configuration of configuration slot \"5f78c58974e845602c15b63\""]}}}}}},"401":{"description":"Unauthorized - Invalid or missing authentication token","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized"}}}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["There aren't permissions for current user in workspace"]}}}}}},"404":{"description":"Not Found - Referenced resources not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Could not find Configuration Slot with id #63f78c58974e845602c15b00.","Could not find resource model with name model-example-name-a and version 1.","Could not find the monitored resource with id #54f78c58974e845602c16c11."]}}}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something went wrong."}}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Configuration Slots"],"summary":"Delete a Configuration Slot resource","description":"Deletes a Configuration Slot by its unique ID. If the slot is associated with a Measuring System resource, the association will be removed, but the Measuring System itself will not be deleted.","operationId":"deleteConfigurationSlot","parameters":[{"name":"configurationSlotId","in":"path","description":"The unique identifier of the Configuration Slot resource to be deleted.","required":true,"schema":{"type":"string","example":"64f78c58974e845602c15b62"}}],"responses":{"200":{"description":"OK. Successfully deleted the Configuration Slot resource.","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the configuration slot."},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMap":{"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location","items":{"type":"object","properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}}}},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot to monitor with."},"measuringSystemModel":{"type":"object","description":"Object containing the name and version of the measuring system model.","properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"required":["name","version"],"additionalProperties":false},"configuration":{"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary.","additionalProperties":true},"tree":{"type":"object","description":"Object containing the id and the path of the configuration slot in the resource model tree.","properties":{"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the configuration slot in the resource model tree."},"idPath":{"type":"string","pattern":"^(/[0-9a-f]{24})+$","description":"A list of IDs, each being a 24-character alphanumeric string, separated by slashes that represents the hierarchy of the configuration slot in the tree."}},"required":["parentId","idPath"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was last updated."}},"required":["_id","name","monitoringLocationMap","measuringSystemUniqueIdentifier","configuration","createdAt","updatedAt"]},"example":[{"_id":"64f78c58974e845602c15b62","name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":"unique-measuring-system-id","monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b61"}],"configuration":{"samplingRate":25600},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/64f78c58974e845602c15b62"},"createdAt":"2025-09-30T13:51:19Z","updatedAt":"2025-09-30T13:51:19Z"}]}}},"400":{"description":"Bad Request. The specified resource is not a valid configuration slot.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Input dto schema validation errors."}}}}}},"401":{"description":"Unauthorized. The request lacks valid authentication credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"There aren't permissions for current user in workspace"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Could not find Configuration Slot with id # ${configurationSlotId}."}}}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something went wrong."}}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/configuration-slots/{configurationSlotId}:associate":{"patch":{"tags":["Configuration Slots"],"summary":"Associate a ConfigurationSlot with a Measuring System","description":"Associates an existing Configuration Slot with a Measuring System in the Digitalization Platform.\n\nThis endpoint enables you to link a previously created Configuration Slot template with an active Measuring System, establishing the connection required for data collection and monitoring.\n\n## Key Concepts\n\n**Configuration Slot Association**: The process of connecting a Configuration Slot template to a specific Measuring System resource. Once associated, the Measuring System can begin collecting telemetry data from the monitored locations defined in the Configuration Slot.\n\n**Measuring System Unique Identifier**: The identifier of the Measuring System resource you want to associate. This corresponds to the string identifier that was registered when creating the Measuring System via the POST measuring-systems endpoint.\n\n**Configuration Slot**: A template that defines monitoring parameters for a specific Measuring System Model, including the monitoring location mappings and configuration parameters needed for data collection.\n\n## When to Use This Endpoint\n\nUse this endpoint when:\n- You created a Configuration Slot with `measuringSystemUniqueIdentifier` set to `null` and now want to activate it\n- You need to associate an existing Configuration Slot template with a new or different Measuring System\n- You want to enable data collection for a Configuration Slot that was previously created without immediate association\n\n## Required Information\n\nBefore associating a Configuration Slot, ensure you have:\n- The Configuration Slot ID of the slot you want to associate\n- A valid Measuring System Unique Identifier\n- Confirmation that the Measuring System Model matches the Configuration Slot requirements\n- Appropriate permissions to access both the Configuration Slot and the Measuring System\n\n## Usage Flow\n\nThe typical workflow for using this endpoint:\n\n1. Create a Configuration Slot with `measuringSystemUniqueIdentifier` set to `null` (if not already created)\n2. Create or identify the Measuring System resource you want to monitor with\n3. Associate the Configuration Slot with the Measuring System using this endpoint\n4. Start collecting telemetry data through the telemetry cycles endpoint\n\nThis approach provides flexibility by allowing you to set up monitoring templates first and activate them when ready.\n\n## Validation\n\nThe system validates:\n- Configuration Slot exists and is accessible\n- Measuring System exists and is accessible via the provided identifier\n- Measuring System Model is compatible with the Configuration Slot requirements\n- All monitored resources referenced in the Configuration Slot monitoring location map are accessible\n- No conflicting Configuration Slot association already exists for the same resources\n- User has appropriate permissions for both resources\n\n## Important Notes\n\n- Once associated, the Configuration Slot becomes active and ready for data collection\n- The association creates a binding between the Measuring System and the monitored resources defined in the Configuration Slot\n- If the Configuration Slot was already associated with another Measuring System, the association will be updated (if permitted)\n- The Measuring System Model must match the requirements defined in the Configuration Slot","operationId":"associateConfigurationSlot","parameters":[{"name":"configurationSlotId","in":"path","description":"The unique identifier of the Configuration Slot resource to be associated.","required":true,"style":"matrix","explode":true,"schema":{"type":"string","example":"64f78c58974e845602c15b62"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"}],"description":"Unique identifier of the measuring system that this configuration slot will be associated."}},"required":["measuringSystemUniqueIdentifier"]},"example":{"measuringSystemUniqueIdentifier":"DyP.00.001.00001"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the configuration slot."},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMap":{"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location","items":{"type":"object","properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}}}},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot to monitor with."},"measuringSystemModel":{"type":"object","description":"Object containing the name and version of the measuring system model.","properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"required":["name","version"],"additionalProperties":false},"configuration":{"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary.","additionalProperties":true},"tree":{"type":"object","description":"Object containing the id and the path of the configuration slot in the resource model tree.","properties":{"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the configuration slot in the resource model tree."},"idPath":{"type":"string","pattern":"^(/[0-9a-f]{24})+$","description":"A list of IDs, each being a 24-character alphanumeric string, separated by slashes that represents the hierarchy of the configuration slot in the tree."}},"required":["parentId","idPath"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was last updated."}},"required":["_id","name","monitoringLocationMap","measuringSystemUniqueIdentifier","configuration","createdAt","updatedAt"]},"example":{"_id":"64f78c58974e845602c15b62","name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":"DyP.00.001.00001","monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b61"}],"configuration":{"samplingRate":25600},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/64f78c58974e845602c15b62"},"createdAt":"2025-09-30T13:51:19Z","updatedAt":"2025-09-30T13:51:19Z"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Input dto schema validation errors.","ConfigurationSchema from Measuring System Model validation errors","ResourceSchema from Measuring System Model validation errors"]}}}}}},"401":{"description":"Although the HTTP standard specifies unauthorized, semantically this response means unauthenticated.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","default":"UNAUTHORIZED"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Is required to have permission to measuringSystemResource #6775c5941d017981037b22a3 for this Configuration Slot batch association."]}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Could not find Configuration Slot with id # ${configurationSlotId}","Could not find the measuring system resource with uniqueIdentifier #${measuringSystemUniqueIdentifier}","Could not find the resource model with name ${resourceAbleToMonitor.model.name} and version ${resourceAbleToMonitor.model.version}","Could not find the monitored resource with id #${monitoredResourceId}"]}}}}}},"409":{"description":"Conflict - Resource already exists or conflicts with existing data","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["There is already another Configuration Slot associated with this Measuring System"]}}}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something went wrong."}}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/configuration-slots:disassociate":{"patch":{"tags":["Configuration Slots"],"summary":"Disassociate a measuring system from a ConfigurationSlot","description":"Disassociates one or more Configuration Slots from their associated Measuring Systems in the Digitalization Platform.\n\nThis endpoint enables you to break the link between Configuration Slot templates and their active Measuring Systems, effectively stopping data collection and monitoring for the specified slots.\n\n## Key Concepts\n\n**Configuration Slot Disassociation**: The process of removing the connection between Configuration Slot templates and their associated Measuring Systems. Once disassociated, the Configuration Slot returns to an inactive state and can be associated with the same or a different Measuring System later.\n\n**Batch Operation**: This endpoint supports disassociating multiple Configuration Slots in a single request, allowing efficient management when you need to deactivate monitoring for several slots simultaneously.\n\n**Configuration Slot State**: After disassociation, the Configuration Slot template is preserved with all its monitoring parameters and configuration, but its `measuringSystemUniqueIdentifier` is set back to `null`, indicating it is no longer actively monitoring.\n\n## When to Use This Endpoint\n\nUse this endpoint when:\n- You need to temporarily stop monitoring for one or more Configuration Slots\n- A Measuring System is being decommissioned or replaced\n- You want to reconfigure a Configuration Slot before associating it\n- You need to free up a Configuration Slot to associate it with a different Measuring System\n- You are performing maintenance and need to pause data collection\n\n## Required Information\n\nBefore disassociating Configuration Slots, ensure you have:\n- The Configuration Slot IDs of the slots you want to disassociate\n- Confirmation that stopping data collection for these slots is intended\n- Appropriate permissions to modify the Configuration Slots\n- Understanding of the impact on ongoing monitoring and data collection\n\n## Usage Flow\n\nThe typical workflow for using this endpoint:\n\n1. Identify the Configuration Slot(s) that need to be disassociated\n2. Call this endpoint with the array of Configuration Slot IDs\n3. The system breaks the association with their respective Measuring Systems\n4. Configuration Slots return to an inactive state and can be associated later if needed\n5. Data collection stops for the disassociated slots\n\nThis approach provides flexibility by allowing you to deactivate monitoring templates while preserving their configuration for future use.\n\n## Validation\n\nThe system validates:\n- All provided Configuration Slot IDs exist and are accessible\n- Configuration Slots are currently associated with Measuring Systems\n- User has appropriate permissions to modify all specified Configuration Slots\n- No active telemetry cycles are in progress that would be disrupted\n- All Configuration Slot IDs follow the correct format (24-character hexadecimal)\n\n## Important Notes\n\n- Once disassociated, data collection immediately stops for the affected Configuration Slots\n- The Configuration Slot template and its monitoring parameters are preserved and can be associated later\n- Historical telemetry data collected before disassociation remains available\n- You can disassociate multiple Configuration Slots in a single request for efficiency\n- After disassociation, the Configuration Slot can be associated with the same or a different Measuring System\n- This operation does not delete the Configuration Slot; use the DELETE endpoint if removal is needed","operationId":"disassociateConfigurationSlot","requestBody":{"content":{"application/json":{"schema":{"properties":{"configurationSlotIds":{"items":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"type":"array","minItems":1,"description":"Array of configuration slot IDs to be disassociated from their measuring systems."}},"required":["configurationSlotIds"]},"example":{"configurationSlotIds":["640a1b1b1b1b1b1b1b1b1b1b","640a1b1b1b1b1b1b1b1b1b1c"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the configuration slot."},"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name given to the configuration slot."},"monitoringLocationMap":{"items":{"properties":{"mapLabel":{"type":"string","description":"Refers to the site/channel/region that is currently being monitored"},"mapValue":{"anyOf":[{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}],"description":"Resource unique id"}},"type":"object"},"type":"array","description":"Schema for an array of mapValue and mapLabel, where the mapLabel refers to the site/channel/region that is currently being monitored, and the mapValue pair is a 24-character hex string regarding the unique id of the monitored location"},"measuringSystemUniqueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier of a resource (measuring system) that has this configuration slot to monitor with."},"measuringSystemModel":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"additionalProperties":false,"type":"object","required":["name","version"],"description":"Object containing the name and version of the measuring system model."},"configuration":{"additionalProperties":true,"type":"object","description":"Specific configuration parameters for the device associated with this configuration slot, allowing flexibility for different measuring system models and version. The structure of this object can vary."},"tree":{"properties":{"parentId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier of the configuration slot in the resource model tree."},"idPath":{"type":"string","pattern":"^(/[0-9a-f]{24})+$","description":"A list of IDs, each being a 24-character alphanumeric string, separated by slashes that represents the hierarchy of the configuration slot in the tree."}},"additionalProperties":false,"type":"object","required":["parentId","idPath"],"description":"Object containing the id and the path of the configuration slot in the resource model tree."},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the configuration slot was last updated."}},"required":["_id","name","monitoringLocationMap","measuringSystemUniqueIdentifier","configuration","createdAt","updatedAt"]},"example":[{"_id":"640a1b1b1b1b1b1b1b1b1b1b","name":"Motor Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":null,"monitoringLocationMap":[{"mapLabel":"bearing1","mapValue":"64f78c58974e845602c15b61"},{"mapLabel":"bearing2","mapValue":"64f78c58974e845602c15b62"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/640a1b1b1b1b1b1b1b1b1b1b"},"createdAt":"2025-10-07T15:55:29Z","updatedAt":"2025-10-07T15:55:29Z"},{"_id":"640a1b1b1b1b1b1b1b1b1b1c","name":"Base Bearing Monitoring Configuration","measuringSystemModel":{"name":"VibrationSensorModel","version":2},"measuringSystemUniqueIdentifier":null,"monitoringLocationMap":[{"mapLabel":"bearing3","mapValue":"64f78c58974e845602c15b99"}],"configuration":{"samplingRate":25600,"measurementDuration":10,"filterSettings":{"highPass":2,"lowPass":10000},"triggerSettings":{"type":"scheduled","interval":3600}},"tree":{"parentId":"64f78c58974e845602c15b60","idPath":"/64f78c58974e845602c15b60/640a1b1b1b1b1b1b1b1b1b1c"},"createdAt":"2025-10-07T15:55:29Z","updatedAt":"2025-10-07T15:55:29Z"}]}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Input dto schema validation errors.","Configuration Slot with id #6775c5941d017981037b22a3  is already disassociated."]}},"type":"object"}}}},"401":{"description":"Unauthorized - Invalid or missing authentication token.","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","default":"UNAUTHORIZED"}},"type":"object"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"It's required to have permission to all Monitored Resources listed in monitoredResourcesIds."}},"type":"object"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Could not find Configuration Slot with id #${configurationSlotId}."}},"type":"object"}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"Something went wrong."}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/signals":{"get":{"tags":["Signals"],"summary":"List Signal Collections V1 by resource","description":"This endpoint lists signal collections by resourceId and firstMeasurementDatetime range. It returns collections without signal values and supports pagination.","operationId":"listSignalCollectionV1ByResource","parameters":[{"name":"resourceId","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"description":"Identifier of the monitored resource.","example":"67d0a701a5d9556badb34ac6"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"description":"Start ISO 8601 datetime (inclusive).","example":"2026-02-01T00:00:00Z"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"description":"End ISO 8601 datetime (inclusive).","example":"2026-03-01T00:00:00Z"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"OK - Paginated list of signal collections without values.","content":{"application/json":{"schema":{"type":"object","required":["docs","pages","items"],"properties":{"docs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"measuringSystemModel":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"integer"}}},"measuringSystemUniqueIdentifier":{"type":"string"},"resourceId":{"type":"string"},"source":{"type":"string","enum":["signals","spectral"],"description":"Origin of the item: a signal collection or a legacy spectral (waveform) measurement."},"firstMeasurementDatetime":{"type":"string","format":"date-time","description":"Representative measurement datetime used for cross-source ordering."},"cycle":{"type":"array","description":"Acquisition cycles. In the list response signals are returned WITHOUT their values.","items":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"physicalQuantity":{"type":"string"},"unit":{"type":"string"},"lastValue":{"type":"number"},"resolution":{"type":"number"},"dimension":{"type":"integer"}},"additionalProperties":true}},"signals":{"type":"array","description":"Signals without values.","items":{"type":"object","required":["physicalQuantity","unit","firstMeasurementDatetime"],"properties":{"physicalQuantity":{"type":"string"},"unit":{"type":"string"},"firstMeasurementDatetime":{"type":"string","format":"date-time"},"attributes":{"type":"object","description":"Fields specific to the measuring system that collected the signal. Which keys are required is defined by the resource model of the measuring system (the HF Ultra, for instance, requires dynamicRange, statisticalProcessing and — where the configuration has an axis — axis and axisLabel). Returned as an empty object when the collector reported none. `monitoringTechnique` is not part of the signals contract and is rejected, at the root of a signal as well as inside attributes.","example":{"axis":"x","axisLabel":"radial","dynamicRange":{"value":16,"unit":"g"},"statisticalProcessing":"rms"}}},"additionalProperties":false}},"signalDimension":{"type":"array","items":{"type":"integer"}}}}},"synchronizationDatetime":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":true}},"pages":{"type":"object","required":["current","prev","hasPrev","next","hasNext"],"properties":{"current":{"type":"integer"},"prev":{"type":"integer"},"hasPrev":{"type":"boolean"},"next":{"type":"integer"},"hasNext":{"type":"boolean"}}},"items":{"type":"object","required":["limit"],"properties":{"limit":{"type":"integer"}}}}}}}},"400":{"description":"Bad Request - Invalid query parameters.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid token.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"403":{"description":"Forbidden - User does not have permission to list signal collections for this resource.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"404":{"description":"Not Found - Monitored resource not found.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/signals/{signalCollectionId}":{"get":{"tags":["Signals"],"summary":"Get a Signal Collection V1 by id","description":"Retrieves a full Signal Collection V1 (metadata and signal values) by its identifier. The identifier may resolve to a signal collect or, when spectral compatibility is enabled, to a spectral whose waveform measurements are returned as the signal values. The response shape is identical in both cases.\n\nSet `ignoreSignalValues=true` to retrieve only the metadata: the waveform is not read from the datastore and every `values` field comes back as `null`. The rest of the contract is unchanged, so `null` (values not requested) is distinguishable from `[]` (signal has no values).","operationId":"getSignalCollectionV1ById","parameters":[{"name":"signalCollectionId","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"description":"Signal Collection V1 identifier.","example":"67d0a701a5d9556badb34ac6"},{"name":"ignoreSignalValues","in":"query","description":"When `true`, the signal values are not retrieved and every `cycle[].signals[].values` is returned as `null`. When absent, defaults to `false` and the values are returned. Any other value is rejected with 400.","required":false,"style":"form","explode":true,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK - Signal collection retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","description":"Identifier of the signal collection.","example":"67d0a701a5d9556badb34ac6"},"measuringSystemModel":{"type":"object","properties":{"name":{"type":"string","example":"hf-ultra-beta-0"},"version":{"type":"integer","example":1}}},"measuringSystemUniqueIdentifier":{"type":"string","example":"DyL1.05.A4038"},"resourceId":{"type":"string","example":"67d0a701a5d9556badb34ac6"},"cycle":{"type":"array","description":"Acquisition cycles persisted, plus the per-cycle `signalDimension`. get-by-id returns the signals WITH their values, unless `ignoreSignalValues=true` is informed.","items":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"physicalQuantity":{"type":"string"},"unit":{"type":"string"},"lastValue":{"type":"number"},"resolution":{"type":"number"},"dimension":{"type":"integer","description":"Number of points in this domain axis."}}}},"signals":{"type":"array","items":{"type":"object","properties":{"physicalQuantity":{"type":"string"},"unit":{"type":"string"},"firstMeasurementDatetime":{"type":"string","format":"date-time"},"attributes":{"type":"object","description":"Fields specific to the measuring system that collected the signal. Which keys are required is defined by the resource model of the measuring system (the HF Ultra, for instance, requires dynamicRange, statisticalProcessing and — where the configuration has an axis — axis and axisLabel). Returned as an empty object when the collector reported none. `monitoringTechnique` is not part of the signals contract and is rejected, at the root of a signal as well as inside attributes.","example":{"axis":"x","axisLabel":"radial","dynamicRange":{"value":16,"unit":"g"},"statisticalProcessing":"rms"}},"values":{"type":"array","nullable":true,"description":"Measured values of the signal. `null` when the collection was requested with `ignoreSignalValues=true`.","items":{"oneOf":[{"type":"number"},{"type":"null"},{"type":"array","items":{"oneOf":[{"type":"number"},{"type":"null"},{"type":"array","items":{"oneOf":[{"type":"number"},{"type":"null"}]}}]}}]}}},"additionalProperties":true}},"signalDimension":{"type":"array","items":{"type":"integer"},"description":"Per-cycle array of dimensions. E.g. [5] for 1D or [2, 3] for 2D.","example":[5]}}}},"synchronizationDatetime":{"type":"string","format":"date-time","description":"ISO 8601 datetime when the signal collection was synchronized."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}},"400":{"description":"Bad Request - Invalid path parameter, or ignoreSignalValues is neither \"true\" nor \"false\".","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid or missing authentication token.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","default":"UNAUTHORIZED"}}}}}},"403":{"description":"Forbidden - User does not have permission to access this signal collection.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"404":{"description":"Not Found - Signal collection or monitored resource not found.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"409":{"description":"Conflict - Monitored resource was not found in active or deleted database.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"Internal Server Error - An unexpected error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","default":"Something went wrong"}}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/telemetry-cycles":{"post":{"tags":["Telemetry Cycles"],"summary":"POST TelemetryCycleV2","description":"Telemetry Cycles are the mechanism through which Measuring Systems send data to Monitoring Locations in the Digitalization Platform. This guide explains how to create a Telemetry Cycle that follows the rules established by your Measuring System's Model.\n\n## Objective\n\nThis documentation teaches you how to create and send a Telemetry Cycle in the Dynamox Digitalization Platform, ensuring telemetry data is correctly associated with Monitoring Locations. You'll learn how to retrieve necessary information about the Measuring System, Configuration Slot, and Models, and how to structure the request body according to defined schemas.\n\n## Steps to Create a Telemetry Cycle\n\n### 1. Retrieve Required Information\n\n1.1 **Identify the Measuring System Resource** - Determine which Measuring System Resource will send the data and retrieve its `_id`.\n\n1.2 **Get the Associated Configuration Slot** - Retrieve the Configuration Slot associated with your Measuring System using:\n   `GET https://predict.dynamox.solutions/psa/v1alpha/configuration-slots?workspaceId={your-workspace-id}&measuringSystemId={your-measuring-system-id}`\n   \n   Save these values:\n   - `measuringSystemModel.name`\n   - `measuringSystemModel.version`\n   - `measuringSystemId`\n   - `monitoringLocationMap` entries\n   - `configuration`\n\n1.3 **Get Resource Model Information** - Retrieve the Model referenced by the Configuration Slot:\n   `GET https://predict.dynamox.solutions/psa/v1/resource-models?workspaceId={your-workspace-id}&name={model-name}&version={model-version}`\n   \n   Save:\n   - `metadata.configurationSchema`\n   - `metadata.telemetryCycleSchema`\n\n### 2. Create the Request Body\n\nStructure your request with:\n- `telemetryCycleData.measuringSystemId`: The Measuring System ID\n- `telemetryCycleData.tags`: Relevant tags for the cycle\n- `telemetryCycleData.measurements`: Array of measurement objects containing:\n  - `resourceId`: The Monitoring Location ID from `monitoringLocationMap`\n  - `attributes`: Object following the schema in `metadata.telemetryCycleSchema.attributes`\n  - `dataPoints`: Array of objects with `timestamp` and `value` pairs\n- `telemetryCycleData.metadata`: Object following the schema in `metadata.telemetryCycleSchema.metadata`\n- `workspaceId`: Your workspace ID\n- `configuration`: Object following the schema in `metadata.configurationSchema`\n\n### 3. Send the Request and Verify\n\nSend a POST request to `https://predict.dynamox.solutions/psa/v1/telemetry-cycles` with your structured body.\n\n### 4. Verify Data Visualization\n\nAccess the Dynamox Solution and navigate to the Spot Viewer for the relevant Monitoring Locations to confirm your data appears in the graphs.","operationId":"postTelemetryCycle","requestBody":{"content":{"application/json":{"schema":{"properties":{"telemetryCycleData":{"properties":{"measuringSystemUniqueIdentifier":{"type":"string","description":"Unique identifier of the measuring system used for this telemetry cycle."},"measuringSystemModel":{"properties":{"name":{"type":"string","description":"Name of the measuring system model."},"version":{"type":"number","description":"Version of the measuring system model."}},"additionalProperties":false,"type":"object","required":["name","version"],"description":"Measuring system model used for this telemetry cycle."},"measurements":{"items":{"properties":{"resourceId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the resource that was measured in this telemetry cycle."},"attributes":{"properties":{"physicalQuantity":{"type":"string","description":"Property of the resource that was measured in this telemetry cycle."}},"additionalProperties":true,"type":"object","required":["physicalQuantity"],"description":"Attributes of the resource that was measured in this telemetry cycle."},"dataPoints":{"items":{"properties":{"timestamp":{"type":"string","format":"date-time","description":"Timestamp of the data point."},"value":{"anyOf":[{"type":"number"},{"type":"boolean"}],"description":"Inherit from Measuring System Model"}},"type":"object","required":["timestamp","value"]},"type":"array","minItems":1,"description":"Data points measured in this telemetry cycle."}},"additionalProperties":false,"type":"object","required":["resourceId","attributes","dataPoints"],"description":"Measurements accomplished in this telemetry cycle."},"type":"array","description":"An array of unique identifiers referencing the resources that have this measuring configuration as an option to be monitored with."},"metadata":{"type":"object","description":"Metadata from measuring system model telemetry schema"},"tags":{"items":{"type":"string"},"type":"array","minItems":0,"description":"An array of strings used to identify the telemetry cycle."}},"additionalProperties":false,"type":"object","required":["measuringSystemUniqueIdentifier","measuringSystemModel","tags","measurements","metadata"]},"configuration":{"type":"object","description":"Configuration used by the measuring system for the creation of the telemetry cycle."}},"required":["telemetryCycleData","configuration"]}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","default":"TelemetryCycleV2 with same hash already exists"}},"type":"object"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the telemetry cycle."},"measuringSystemModel":{"properties":{"name":{"type":"string","description":"Name of the measuring system model."},"version":{"type":"integer","description":"Version of the measuring system model."}},"additionalProperties":false,"type":"object","required":["name","version"],"description":"Details about the model of the measuring system that this telemetry cycle stands for."},"measuringSystemUniqueIdentifier":{"type":"string","description":"Unique identifier of the measuring system used for this telemetry cycle."},"hash":{"type":"string","description":"Hash of the telemetry cycle."},"tags":{"items":{"type":"string"},"type":"array","minItems":0,"description":"An array of strings used to identify the telemetry cycle."},"measurements":{"items":{"properties":{"resourceId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Unique identifier for the resource that was measured in this telemetry cycle."},"attributes":{"properties":{"physicalQuantity":{"type":"string","description":"Property of the resource that was measured in this telemetry cycle."}},"additionalProperties":true,"type":"object","required":["physicalQuantity"],"description":"Attributes of the resource that was measured in this telemetry cycle."},"numberOfDataPoints":{"type":"number"}},"additionalProperties":false,"type":"object","required":["resourceId","attributes","numberOfDataPoints"],"description":"Measurements accomplished in this telemetry cycle."},"type":"array","description":"An array of unique identifiers referencing the resources that have this measuring configuration as an option to be monitored with."},"metadata":{"oneOf":[{"type":"object"},{"type":"null"}],"description":"Metadata from measuring system model telemetry schema"},"start":{"type":"string","format":"date-time","description":"Date and time when the telemetry cycle started."},"end":{"type":"string","format":"date-time","description":"Date and time when the telemetry cycle ended."},"synchronizationTimestamp":{"type":"string","format":"date-time","description":"Date and time when the telemetry cycle was received in backend."},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the telemetry cycle was created."},"monitoredResources":{"items":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"type":"array"},"userAgentAuthentication":{"properties":{"auth":{"properties":{"uid":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["uid","email"]},"agent":{"type":"string"}},"type":"object","required":["auth","agent"]},"configuration":{"additionalProperties":true,"type":"object"}},"required":["_id","measuringSystemModel","measuringSystemUniqueIdentifier","hash","tags","measurements","metadata","start","end","synchronizationTimestamp","createdAt","monitoredResources","userAgentAuthentication","configuration"]}}}},"202":{"description":"Accepted","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","default":"Telemetry cycle was accepted but data-points were not persisted for deleted monitored resource #66f55ebd34db9fa51f9e3f52"}},"type":"object"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Input dto schema validation errors","Number of measured resources 2 from cycle does not match with the value of simultaneousMeasuredResources from Measuring System Resource Model"]}},"type":"object"}}}},"401":{"description":"Unauthorized - Invalid or missing authentication token.","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","default":"UNAUTHORIZED"}},"type":"object"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","example":"It's required to have permission to all Monitored Resources listed in monitoredResourcesIds."}},"type":"object"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Measuring System Resource Model with name example-model-name-a and version 1 was not found in database","Measuring System Resource with uniqueIdentifier XWYZ-123 was not found in database","Monitored resources with ids 66f424db1287c1fb6a472e84, 66f424db1287c1fb6a472e84 provided were not found in database","None of the monitored resources were found in the active collection in the database"]}},"type":"object"}}}},"500":{"description":"Internal Server Error - An unexpected error occurred","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","enum":["Something went wrong","Error while trying to save data points"]}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/waveform/{waveformId}/raw":{"get":{"tags":["Waveform"],"summary":"Get Raw","description":"This endpoint returns the raw data sampled from the sensor.\n\nThe physical quantity and unit will remain consistent with what the sensor measures, i.e., the data will not be converted to a different unit.","operationId":"get_raw_v1_waveform__waveformId__raw_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"waveformId","in":"path","required":true,"schema":{"type":"string","title":"Waveformid","description":"The waveform id."}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"x":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"X","description":"X axis values for the specified waveform and physical quantity.","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"y":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Y","description":"Y axis values for the specified waveform and physical quantity","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"z":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Z","description":"Z axis values for the specified waveform and physical quantity","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"time":{"items":{},"type":"array","title":"Time","description":"An array containing the time values in seconds for the specified waveform and physical quantity","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"physicalQuantity":{"type":"string","enum":["acceleration"],"title":"Physicalquantity","description":"The physical quantity of the waveform.","examples":["acceleration"]},"unit":{"type":"string","enum":["g"],"title":"Unit","description":"The units of the waveform."},"metadata":{"allOf":[{"properties":{"startedAt":{"type":"string","title":"Startedat","description":"The time when the waveform was started.","examples":["2023-07-01T00:00:00Z"]},"samplingRate":{"type":"number","title":"Samplingrate","description":"The sampling rate of the waveform.","examples":[1500]}},"type":"object","required":["startedAt","samplingRate"],"title":"WaveformMetadata"}],"description":"Metadata for the specified waveform and physical quantity"}},"type":"object","required":["time","physicalQuantity","unit","metadata"],"title":"Waveform"}}}},"404":{"description":"Spectral Not Found","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/waveform/{waveformId}/spectrum":{"get":{"tags":["Waveform"],"summary":"Get Spectrum","description":"This endpoint returns the raw data sampled from the sensor in the frequency domain.\n\nThe physical quantity and unit will remain consistent with what the sensor measures, i.e., the data will not be converted to a different unit.","operationId":"get_spectrum_v1_waveform__waveformId__spectrum_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"waveformId","in":"path","required":true,"schema":{"type":"string","title":"Waveformid","description":"The waveform id."}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"x":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"X","description":"X axis frequency magnitude values for the specified waveform and physical.","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"y":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Y","description":"Y axis frequency magnitude values for the specified waveform and physical.","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"z":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Z","description":"Z axis frequency magnitude values for the specified waveform and physical.","examples":[[0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2]]},"frequency":{"items":{},"type":"array","title":"Frequency","description":"The frequency array values for the specified waveform and physical quantity","examples":[[100,200,300,400,500,600,700,800,900,1000]]},"physicalQuantity":{"type":"string","enum":["acceleration"],"title":"Physicalquantity","description":"The physical quantity of the waveform.","examples":["acceleration"]},"unit":{"type":"string","enum":["g"],"title":"Unit","description":"The units of the waveform."},"metadata":{"allOf":[{"properties":{"startedAt":{"type":"string","title":"Startedat","description":"The time when the waveform was started.","examples":["2023-07-01T00:00:00Z"]},"samplingRate":{"type":"number","title":"Samplingrate","description":"The sampling rate of the waveform.","examples":[1500]}},"type":"object","required":["startedAt","samplingRate"],"title":"WaveformMetadata"}],"description":"Metadata for the specified waveform and physical quantity"}},"type":"object","required":["frequency","physicalQuantity","unit","metadata"],"title":"Spectrum"}}}},"404":{"description":"Spectral Not Found","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/waveform/{waveformId}/metrics":{"get":{"tags":["Waveform"],"summary":"Get Spectral Metrics","description":"This endpoint retrieves the spectral metrics of a waveform, given its `waveformId`.","operationId":"Get_spectral_metrics_v1_waveform__waveformId__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"waveformId","in":"path","required":true,"schema":{"type":"string","title":"Waveformid","description":"The waveform id."}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object","required":["attributes","displayName","unit","value"],"title":"SpectralMetric","description":"Spectral metric model.","properties":{"attributes":{"type":"object","required":["physicalQuantity","statisticalProcessing","band"],"title":"SpectralMetricAttributes","description":"Attributes of the spectral metric.","properties":{"physicalQuantity":{"type":"string","title":"Physicalquantity","description":"Physical quantity of the spectral metric.","examples":["acceleration"]},"statisticalProcessing":{"type":"string","title":"Statisticalprocessing","description":"Statistical processing of the spectral metric.","examples":["rms"]},"band":{"type":"string","title":"Band","description":"Band of the spectral metric.","examples":["3000-6395"]}}},"displayName":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Displayname","description":"Display name of the spectral metric in different languages.","examples":[{"en":"Acceleration - RMS - 3000 Hz to 6395 Hz","es":"Aceleración - RMS - 3000 Hz a 6395 Hz","fr":"Accélération - RMS - 3000 Hz à 6395 Hz","pt":"Aceleração - RMS - 3000 Hz a 6395 Hz"}]},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit","description":"Unit of the spectral metric. Note: adimensional metrics have `null` unit.","examples":["g"]},"value":{"type":"object","required":["x","y","z"],"title":"SpectralMetricValue","description":"Value of the spectral metric for each axis.","properties":{"x":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"X","description":"X axis value.","examples":[0.07375770808428622]},"y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Y","description":"Y axis value.","examples":[0.02902267542194716]},"z":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z","description":"Z axis value.","examples":[0.024112004757211515]}}}}},"type":"array","title":"SpectralMetricsBySpectralId","description":"Response model for GET metrics by SpectralId endpoint."}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/workspaces/{workspaceId}/checklists/{checklistId}/checklist-answers":{"get":{"summary":"Get Last Checklist Answers by Checklist ID","description":"### List Last Checklist Answers\n\nReturns a paginated collection of answered checklist answers for the given workspace. Only answered checklists are returned; unanswered checklists are not included.\n\n**Key features:**\n- Partial response via fields[] to include only specific properties\n- Pagination with page and limit\n- Sorting by answeredAt | cycleAt | createdAt | updatedAt | deletedAt with direction asc|desc (default answeredAt desc)\n\n**Required permissions:** Owner, Admin, Editor, or Reader\n\n##### Last Updated: 08/21/2025","tags":["Checklist Answers"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"checklistId","description":"This is a required query parameter that specifies the Checklist ID. It is used to identify the checklist to which the route belongs. The value should be a string that uniquely identifies the checklist.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: all fields. \n\n **_Example_**: ?fields[]=id&fields[]=type ","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","checklistId","checklistTitle","checklistType","quizId","inspectorId","routeVersionId","routeId","cycle","justified","justification","answeredAt","answerLevel","answerLevelId","criticality","alerts","quizAlertConfig","levelAlert","totalAlerts","attachments","totalAttachments","duration","latitude","longitude","createdAt","updatedAt","deletedAt","sync","assets"]}}},{"name":"page","in":"query","description":"This parameter defines the specific page of data the client wishes to retrieve when data is segmented into pages. For example, if you have a list of 100 checklist answers and display 10 checklist answers per page, sending page as 2 would show checklist answers 11-20.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"This is an optional query parameter that can be used to limit the number of records returned in the response. It's useful when you want to restrict the size of the data returned. The value should be a string that represents an integer.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"This parameter dictates the sort order of the returned data.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["answeredAt","cycleAt","createdAt","updatedAt","deletedAt"],"default":"answeredAt"}},{"name":"direction","in":"query","description":"This parameter dictates the sort order of the returned data. The client can choose between \"asc\" and \"desc\". ASC would sort the data in ascending order and DESC in descending order.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"The request was successful, and the response contains the records that match the specified filters and criteria. The response body is in JSON format and provides a list of records based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"object","description":"Pagination Info","properties":{"current":{"type":"integer","description":"Actual Page","example":1},"prev":{"type":"integer","description":"Previously page","example":0},"hasPrev":{"type":"boolean","description":"Has previously page","example":false},"hasNext":{"type":"boolean","description":"Has next page","example":true},"next":{"type":"integer","description":"Next page","example":2},"total":{"type":"integer","description":"Total number of pages","example":45}}},"items":{"type":"object","description":"Pagination info","properties":{"limit":{"type":"integer","description":"Items per page","example":10},"total":{"type":"integer","description":"Total number of items","example":442}}},"docs":{"type":"array","description":"List of Cycle items","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique Checklist Answer Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistId":{"type":"string","description":"Unique Checklist Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistTitle":{"type":"string","description":"Checklist Title","example":"Example Checklist Title"},"quizId":{"type":"string","description":"Unique Quiz Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistType":{"type":"string","enum":["default","rolls","manualMeasurement","beltThickness"],"description":"This field specifies the type of the checklist, which can be one of the following values: \n\n - 'default': Represents a default customizable checklist, without questions limit. \n\n - 'rolls': Represents a checklist to inspect conveyor belt components. \n\n- 'manualMeasurement': Represents a checklist to instrumented inspections with configured alerts. \n\n- 'beltThickness': Represents a checklist to conveyor belt thickness inspection.","default":"default","example":null},"inspectorId":{"type":"string","description":"Unique identifier of the inspector assigned to the route.","example":"123e4567-e89b-12d3-a456-426614174000"},"routeVersionId":{"type":"string","description":"Unique route version identifier that the checklist answer belongs to.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"routeId":{"type":"string","description":"This is the unique id of the route that is generated when creating a route. It does not change between route versions. It is considered a route grouper, so it groups all versions of this route.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycle":{"type":"object","description":"Basic route cycle info","properties":{"cycleId":{"type":"string","description":"Unique cycle identifier.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle (ISO_8061).","default":null,"example":"2023-07-06T00:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in (ISO_8061)","default":null,"example":"2023-07-09T12:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date  and time  of the cycle (ISO_8061).","default":null,"example":"2023-07-13T00:00:00.000Z"}}},"justified":{"type":"boolean","description":"This boolean field represents whether the cycle was justified or not, taking into account both checklistJustified and spotJustified. If the value is true, it indicates that the cycle has been justified.","example":false},"justification":{"type":"string","description":"The justification of the checklist answer.","example":"Example justification"},"answeredAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"answerLevel":{"type":"string","description":"Stage in which the no-anomaly command was used by the user while answering the checklist.","enum":["machine","checklist","subset","route"]},"answerLevelId":{"type":"string","description":"Identifier of the stage in which the no-anomaly command was used by the user while answering the checklist.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"criticality":{"type":"object","description":"The checklist answer criticality counts. Will contain either specialist/maintenance values (p0-p8), operation values (op0-op3), or default values (danger, warning, normal).","properties":{"p0":{"type":"integer","example":1},"p1":{"type":"integer","example":0},"p2":{"type":"integer","example":0},"p3":{"type":"integer","example":0},"p4":{"type":"integer","example":0},"p5":{"type":"integer","example":0},"p6":{"type":"integer","example":0},"p7":{"type":"integer","example":0},"p8":{"type":"integer","example":0},"op0":{"type":"integer","example":1},"op1":{"type":"integer","example":0},"op2":{"type":"integer","example":0},"op3":{"type":"integer","example":0},"danger":{"type":"integer","example":1},"warning":{"type":"integer","example":0},"normal":{"type":"integer","example":0}}},"alerts":{"type":"object","description":"The checklist answer alerts.","properties":{"a1":{"example":1},"a2":{"example":2},"total":{"example":3}}},"quizAlertConfig":{"type":"object","description":"The alerts configuration.","properties":{"unit":{"example":"mm"},"a1min":{"example":12},"a2min":{"example":16}}},"levelAlert":{"type":"integer","description":"Criticality level of the answer.","example":"3"},"totalAlerts":{"type":"integer","description":"The checklist answer total alerts.","example":"2"},"attachments":{"type":"object","description":"Object containing arrays of attachment IDs grouped by type.","properties":{"images":{"type":"array","description":"List of image attachment IDs.","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}},"audios":{"type":"array","description":"List of audio attachment IDs.","items":{"type":"string","example":"98765432-10fe-dcba-4321-09876543210f"}},"all":{"type":"array","description":"List of all attachment IDs (both images and audios).","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}}}},"totalAttachments":{"type":"integer","description":"The checklist answer total attachments.","example":5},"duration":{"type":"number","format":"double","description":"The checklist answer duration.","example":"1.5"},"latitude":{"type":"number","format":"double","description":"The checklist answer latitude coordinate.","example":"-00.0000"},"longitude":{"type":"number","description":"The checklist answer longitude coordinate.","example":"-00.0000"},"createdAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer creation in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer update in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"deletedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer deletion in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"sync":{"type":"string","description":"When data synchronization is done via Dynamox support.","example":"synced by support"},"assets":{"type":"array","description":"List of assets hierarchically in which the checklist is associated. The first item of the array is the _machine_, and the last index of the array is where the checklist is _directly associated_. If the checklist is associated directly on a machine, there will be only one item in this array, the machine","items":{"type":"object","properties":{"routeItemId":{"type":"string","description":"Unique identifier of the item on the route","example":"63b3fdfa-81af-230c-add5-448b01daffcb"},"name":{"type":"string","description":"Asset Name","example":"Machine 01"},"parentId":{"type":"string","description":"Route item id of its parent hierarchically. If the item is the top of the hierarchy (machine) the parent id will be null","example":null},"type":{"type":"string","description":"Asset Type","enum":["machine","subset","component"],"example":"machine"}}}}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"}}}},"/v1/workspaces/{workspaceId}/routes":{"get":{"summary":"List Routes","description":"### List routes in the system for a specific root workspace \n\n This endpoint is responsible for returning all the routes registered in an organization, taking into account the root workspace., \n\n You can also filter the routes by _search_, _routeType_, _cycleStatus_, and specify the fields to be included in the response using the **fields** query parameter. \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 05/27/2025","tags":["Routes"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required query parameter that specifies the Workspace ID. It is used to filter the routes that the user has access to within a specific workspace. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"search","description":"This parameter is used to provide a search term (route name or externalId) that filters the returned data.","required":false,"in":"query","style":"form","explode":true,"schema":{"type":"string"}},{"name":"routeType","description":"This optional query parameter is used to specify the types of routes to be returned.","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"string","enum":["periodic","trigger"]}},{"name":"cycleStatus[]","description":"This optional query parameter is used to specify the status of the current route cycle to be returned.","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["in-progress","on-hold","add-trigger","disabled"]}}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","versionId","name","type","categories","version","description","externalId","previousRevisionId","ownerId","contextId","contextPath","activated","activatedAt","frequency","frequencyUnit","toleranceBefore","toleranceBeforeUnit","toleranceAfter","toleranceAfterUnit","periodicities","totalSpots","totalChecklists","assetTypes","totalAssets","cycle","deactivatedAt","deactivatedNote","deactivatedUserId","createdAt","updatedAt"]}}},{"name":"page","in":"query","description":"This parameter defines the specific page of data the client wishes to retrieve when data is segmented into pages. For example, if you have a list of 100 routes and display 10 routes per page, sending page as 2 would show routes 11-20.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"This is an optional query parameter that can be used to limit the number of routes returned in the response. It's useful when you want to restrict the size of the data returned. The value should be a string that represents an integer.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"This parameter dictates the sort order of the returned data.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["cycleStartAt","cycleAt","cycleEndAt","createdAt","name"],"default":"createdAt"}},{"name":"direction","in":"query","description":"This parameter dictates the sort order of the returned data. The client can choose between \"asc\" and \"desc\". ASC would sort the data in ascending order and DESC in descending order.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"The request was successful, and the response contains the routes that match the specified filters and criteria. The response body is in JSON format and provides a list of routes based on the query parameters provided.","content":{"application/json":{"schema":{"properties":{"pages":{"type":"object","description":"Pagination Info","properties":{"current":{"type":"integer","description":"Actual Page","example":1},"prev":{"type":"integer","description":"Previously page","example":0},"hasPrev":{"type":"boolean","description":"Has previously page","example":false},"hasNext":{"type":"boolean","description":"Has next page","example":true},"next":{"type":"integer","description":"Next page","example":2},"total":{"type":"integer","description":"Total number of pages","example":45}}},"items":{"type":"object","description":"Pagination info","properties":{"limit":{"type":"integer","description":"Items per page","example":10},"total":{"type":"integer","description":"Total number of items","example":442}}},"docs":{"type":"array","description":"List of Route items","items":{"type":"object","properties":{"id":{"type":"string","description":"The value of this field is set when the route is created, it is constant, unique and does not change when route version is changed. If the route has multiple versions, this attribute can be used as a route grouper","example":"123e4567-e89b-12d3-a456-426614174000"},"versionId":{"type":"string","description":"Unique identifier of each unique version of the route","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"name":{"type":"string","description":"Route name","example":"Route by Trigger Test"},"type":{"type":"string","enum":["trigger","periodic",null],"description":"This field specifies the type of the route, which can be one of the following values: \n- 'trigger': Represents a triggered route that is activated based on specific events or conditions. \n- 'periodic': Represents a periodic route that is activated at regular intervals or scheduled times. \n- 'null': Indicates that the type of the route is not defined or unspecified. Therefore, the route with null type is considered periodic.","default":null,"example":null},"categories":{"description":"Categories registered to a route. The maximum limit of categories allowed per route is 5","type":"array","example":[{"id":"123e4567-e89b-12d3-a456-426614174000","name":"Mechanical Inspection"}],"items":{"type":"object","properties":{"id":{"description":"Category unique identifier","type":"string","example":"123e4567-e89b-12d3-a456-426614174000"},"name":{"description":"Category name","type":"string","example":"Mechanical Inspection"}}}},"version":{"type":"integer","description":"Route version numbering is updated each time the user makes any type of edit to the route.","example":1},"description":{"type":"string","description":"Route description","default":null,"example":null},"externalId":{"type":"string","description":"Route identifier from external softwares","default":null,"example":null},"previousVersionId":{"type":"string","description":"The reference ID of the version of the route that preceded it. This field specifies the ID of the previous version or iteration of the route. It serves as a reference to track the history or lineage of the route. If it is the first version of the route, the value will be \"null\".","default":null,"example":null},"ownerId":{"type":"string","description":"Internal ID of the user who created the route","example":"842fbf5f-3c72-4dc2-bd71-5a87c6a78c92"},"contextId":{"type":"string","description":"Identity of the workspace where the route was created","example":"5v01fa123ke1605tt95991f4"},"activated":{"type":"boolean","description":"This field specifies the activation status of the route, where `true` indicates that the route is currently activated and `false` indicates that it is not.","example":true},"activatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the user activated the route. This field indicates the specific date and time when the user chose to activate the route for use. ","example":"2023-06-15T00:00:00.000Z"},"frequency":{"type":"integer","description":"The frequency at which the route repeats. This field specifies how often the route repeats or recurs in a certain period. The value represents the number of repetitions or occurrences within the specified period.","default":null,"example":0},"frequencyUnit":{"type":"string","enum":["days","months","years",null],"description":"Frequency unit that the user will choose (day, month and year). If route is by trigger, this field could be _null_","default":null,"example":null},"toleranceBefore":{"type":"integer","description":"Time tolerance that the inspector can start the route before the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to start the route before the ideal scheduled time. If route is by trigger, this field is _null_","default":null,"example":null},"toleranceBeforeUnit":{"type":"string","enum":["days","months","years",null],"description":"Tolerance unit that the user will choose (day, month and year). If route is by trigger, this field is _null_","default":null,"example":null},"toleranceAfter":{"type":"integer","description":"Time tolerance that the inspector can finish the route after the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to finish the route after the ideal scheduled time. If route is by trigger, this field is _null_","default":null,"example":null},"toleranceAfterUnit":{"type":"string","enum":["days","months","years",null],"description":"Visualization unit that the user will choose (day, month and year). If route is by trigger, this field is _null_","default":null,"example":null},"periodicities":{"type":"array","description":"List of frequency multiplier intervals, representing how often the route repeats.","items":{"type":"integer","example":2},"example":[2,3,4]},"totalSpots":{"type":"integer","description":"Total amount of Spots created and that are in the Route cycle","example":0},"totalChecklist":{"type":"integer","description":"Total number of checklists associated with the route cycle","example":1},"assetTypes":{"type":"object","description":"Route assets types","properties":{"machines":{"type":"integer","description":"Machine count","example":1},"subsets":{"type":"integer","description":"Subset count","example":0},"components":{"type":"integer","description":"Component count","example":0}}},"totalAssets":{"type":"integer","description":"The amount of assets (machines, subsets, components) associated to the route.","example":1},"cycle":{"type":"object","description":"Basic route cycle info","properties":{"active":{"type":"boolean","description":"Indicates whether the cycle is currently active or not. This field specifies the activation status of the cycle, where `true` indicates that the cycle is currently active and `false` indicates that it is not.","example":true},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-06T00:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-09T12:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date  and time  of the cycle (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-13T00:00:00.000Z"}}},"deactivatedAt":{"type":"string","format":"date-time","description":"Specific date and time (ISO_8061) when the route was deactivated, meaning it is no longer active or available for use. If the route is currently active, the value of this field will be null . \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":null},"deactivatedNote":{"type":"string","description":"A comment or note provided by the user when deactivating the route. This field allows the user to add an mandatory comment or note explaining the reason for deactivating the route.","default":null,"example":null},"deactivatedUserId":{"type":"string","description":"Internal user id who deactivated the route","default":null,"example":null},"createdAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the route was created. This field indicates the exact moment when the route was initially created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.261Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the route fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the route's properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}":{"get":{"summary":"Get Route by ID","description":"### Retrieve a specific route by its version ID within a workspace. \n\n This endpoint allows you to retrieve detailed information about a specific route by providing its unique version ID and the ID of the workspace it belongs to. You can also request specific fields to be included in the response using the **fields** query parameter. \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 05/27/2025","tags":["Routes"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","versionId","name","type","categories","version","description","externalId","previousRevisionId","ownerId","contextId","contextPath","activated","activatedAt","frequency","frequencyUnit","toleranceBefore","toleranceBeforeUnit","toleranceAfter","toleranceAfterUnit","periodicities","totalSpots","totalChecklists","assetTypes","totalAssets","cycle","deactivatedAt","deactivatedNote","deactivatedUserId","createdAt","updatedAt"]}}}],"responses":{"200":{"description":"The request was successful, and the response contains the route details for the specified ID.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The value of this field is set when the route is created, it is constant, unique and does not change when route version is changed. If the route has multiple versions, this attribute can be used as a route grouper","example":"123e4567-e89b-12d3-a456-426614174000"},"versionId":{"type":"string","description":"Unique identifier of each unique version of the route","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"name":{"type":"string","description":"Route name","example":"Route by Trigger Test"},"type":{"type":"string","enum":["trigger","periodic",null],"description":"This field specifies the type of the route, which can be one of the following values: \n- 'trigger': Represents a triggered route that is activated based on specific events or conditions. \n- 'periodic': Represents a periodic route that is activated at regular intervals or scheduled times. \n- 'null': Indicates that the type of the route is not defined or unspecified. Therefore, the route with null type is considered periodic.","default":null,"example":null},"categories":{"description":"Categories registered to a route. The maximum limit of categories allowed per route is 5","type":"array","example":[{"id":"123e4567-e89b-12d3-a456-426614174000","name":"Mechanical Inspection"}],"items":{"type":"object","properties":{"id":{"description":"Category unique identifier","type":"string","example":"123e4567-e89b-12d3-a456-426614174000"},"name":{"description":"Category name","type":"string","example":"Mechanical Inspection"}}}},"version":{"type":"integer","description":"Route version numbering is updated each time the user makes any type of edit to the route.","example":1},"description":{"type":"string","description":"Route description","default":null,"example":null},"externalId":{"type":"string","description":"Route identifier from external softwares","default":null,"example":null},"previousVersionId":{"type":"string","description":"The reference ID of the version of the route that preceded it. This field specifies the ID of the previous version or iteration of the route. It serves as a reference to track the history or lineage of the route. If it is the first version of the route, the value will be \"null\".","default":null,"example":null},"ownerId":{"type":"string","description":"Internal ID of the user who created the route","example":"842fbf5f-3c72-4dc2-bd71-5a87c6a78c92"},"contextId":{"type":"string","description":"Identity of the workspace where the route was created","example":"5v01fa123ke1605tt95991f4"},"activated":{"type":"boolean","description":"This field specifies the activation status of the route, where `true` indicates that the route is currently activated and `false` indicates that it is not.","example":true},"activatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the user activated the route. This field indicates the specific date and time when the user chose to activate the route for use. ","example":"2023-06-15T00:00:00.000Z"},"frequency":{"type":"integer","description":"The frequency at which the route repeats. This field specifies how often the route repeats or recurs in a certain period. The value represents the number of repetitions or occurrences within the specified period.","default":null,"example":0},"frequencyUnit":{"type":"string","enum":["days","months","years",null],"description":"Frequency unit that the user will choose (day, month and year). If route is by trigger, this field could be _null_","default":null,"example":null},"toleranceBefore":{"type":"integer","description":"Time tolerance that the inspector can start the route before the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to start the route before the ideal scheduled time. If route is by trigger, this field is _null_","default":null,"example":null},"toleranceBeforeUnit":{"type":"string","enum":["days","months","years",null],"description":"Tolerance unit that the user will choose (day, month and year). If route is by trigger, this field is _null_","default":null,"example":null},"toleranceAfter":{"type":"integer","description":"Time tolerance that the inspector can finish the route after the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to finish the route after the ideal scheduled time. If route is by trigger, this field is _null_","default":null,"example":null},"toleranceAfterUnit":{"type":"string","enum":["days","months","years",null],"description":"Tolerance unit that the user will choose (day, month and year). If route is by trigger, this field is _null_","default":null,"example":null},"periodicities":{"type":"array","description":"List of frequency multiplier intervals, representing how often the route repeats.","items":{"type":"integer","example":2},"example":[2,3,4]},"totalSpots":{"type":"integer","description":"Total amount of Spots created and that are in the Route cycle","example":0},"totalChecklist":{"type":"integer","description":"Total number of checklists associated with the route cycle","example":1},"assetTypes":{"type":"object","description":"Route assets types","properties":{"machines":{"type":"integer","description":"Machine count","example":1},"subsets":{"type":"integer","description":"Subset count","example":0},"components":{"type":"integer","description":"Component count","example":0}}},"totalAssets":{"type":"integer","description":"The amount of assets (machines, subsets, components) associated to the route.","example":1},"cycle":{"type":"object","description":"Basic route cycle info","properties":{"active":{"type":"boolean","description":"Indicates whether the cycle is currently active or not. This field specifies the activation status of the cycle, where `true` indicates that the cycle is currently active and `false` indicates that it is not.","example":true},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-06T00:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-09T12:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date  and time  of the cycle (ISO_8061). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":"2023-07-13T00:00:00.000Z"}}},"deactivatedAt":{"type":"string","format":"date-time","description":"Specific date and time (ISO_8061) when the route was deactivated, meaning it is no longer active or available for use. If the route is currently active, the value of this field will be null . \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":null},"deactivatedNote":{"type":"string","description":"A comment or note provided by the user when deactivating the route. This field allows the user to add an mandatory comment or note explaining the reason for deactivating the route.","default":null,"example":null},"deactivatedUserId":{"type":"string","description":"Internal user id who deactivated the route","default":null,"example":null},"createdAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the route was created. This field indicates the exact moment when the route was initially created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.261Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the route fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the route's properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"},"404":{"description":"Route not found."}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}/items":{"get":{"summary":"Get Route Items by Route ID","description":"### Retrieve a list of Route Items associated with a specific route by its version ID within a workspace. \n\n This endpoint allows you to retrieve a list of items, which represents assets, checklists and spots, of a specific route by providing its unique version ID and the ID of the workspace it belongs to. \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 11/18/2024","tags":["Route Items"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"This parameter defines the specific page of data the client wishes to retrieve when data is segmented into pages. For example, if you have a list of 100 items and display 10 items per page, sending page as 2 would show items 11-20.","required":false,"style":"form","explode":true,"schema":{"type":"string","default":1}},{"name":"limit","in":"query","description":"This is an optional query parameter that can be used to limit the number of routes returned in the response. It's useful when you want to restrict the size of the data returned. The value should be a string that represents an integer.","required":false,"style":"form","explode":true,"schema":{"type":"string","default":10}},{"name":"sort","in":"query","description":"This parameter dictates the sort order of the returned data.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["name","type","createdAt","updatedAt"],"default":"createdAt"}},{"name":"direction","in":"query","description":"This parameter dictates the sort order of the returned data. The client can choose between \"asc\" and \"desc\". ASC would sort the data in ascending order and DESC in descending order.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"The request was successful, and the response contains the route items for the specified Route version ID.","content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"object","description":"Pagination Info","properties":{"current":{"type":"integer","description":"Actual Page","example":1},"prev":{"type":"integer","description":"Previously page","example":0},"hasPrev":{"type":"boolean","description":"Has previously page","example":false},"hasNext":{"type":"boolean","description":"Has next page","example":true},"next":{"type":"integer","description":"Next page","example":2},"total":{"type":"integer","description":"Total number of pages","example":45}}},"items":{"type":"object","description":"Pagination info","properties":{"limit":{"type":"integer","description":"Items per page","example":10},"total":{"type":"integer","description":"Total number of items","example":442}}},"docs":{"type":"array","description":"List of Cycle items","items":{"type":"object","properties":{"id":{"type":"string","description":"The value of this field is set when the item is created, it is constant, unique and does not change","example":"123e4567-e89b-12d3-a456-426614174000"},"name":{"type":"string","description":"Item name","example":"Item Name Example"},"type":{"type":"string","enum":["machine","component","subset","spot","checklist"],"description":"This field specifies the type of item.","example":null},"parentId":{"type":"string","description":"Identifier from parent item","default":null,"example":null},"routeVersionId":{"type":"string","description":"Version ID of the route that the items are associated with.","example":"123e4567-e89b-12d3-a456-426614174000"},"quizId":{"type":"string","description":"Identifier of the quiz.","example":1},"checklistId":{"type":"string","description":"Identifier of the checklist.","example":1},"sort":{"type":"integer","description":"The sort order of the item is configured in the route.","example":"2023-07-03T18:22:31.501Z"},"itemperiodicityMultiplier":{"type":"integer","description":"The periodicity multiplier of route item.","example":"2"},"createdAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the item was created. This field indicates the exact moment when the item was initially created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.261Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the item fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the route items properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"},"deletedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the item fields were deleted. This field the date and time when any route item is deleted. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"},"spectralRequired":{"type":"boolean","description":"Indicates if the spectral collection is required.","example":true}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"},"404":{"description":"Route Items not found."}}}},"/v1/workspaces/{workspaceId}/route-items/{itemId}":{"get":{"summary":"Get Route Item by ID","description":"### Retrieves detailed information about a specific item within a workspace, identified by their unique ID.. \n\n This endpoint allows you to retrieve a item, which represents a asset by providing its unique version ID and the ID of the workspace it belongs to. \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 11/18/2024","tags":["Route Items"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"itemId","description":"This is a required path parameter that specifies the item ID. The value should be a string that uniquely identifies the item.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, and the response contains the route item for the specified ID.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The value of this field is set when the item is created, it is constant, unique and does not change","example":"123e4567-e89b-12d3-a456-426614174000"},"name":{"type":"string","description":"Item name","example":"Item Name Example"},"type":{"type":"string","enum":["machine","component","subset","spot","checklist"],"description":"This field specifies the type of item.","example":null},"routeVersionId":{"type":"string","description":"Version ID of the route that the items are associated with.","example":"123e4567-e89b-12d3-a456-426614174000"},"parentId":{"type":"string","description":"Identifier from parent item","default":null,"example":null},"quizId":{"type":"string","description":"Identifier of the quiz.","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistId":{"type":"string","description":"Identifier of the checklist.","example":"123e4567-e89b-12d3-a456-426614174000"},"sort":{"type":"integer","description":"The sort order of the item is configured in the route.","example":"2023-07-03T18:22:31.501Z"},"itemperiodicityMultiplier":{"type":"integer","description":"The periodicity multiplier of route item.","example":2},"createdAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when the item was created. This field indicates the exact moment when the item was initially created in the system.","example":"2023-06-13T12:14:40.261Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the item fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the route items properties.","example":"2023-07-03T18:22:31.501Z"},"deletedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061) when any of the item fields were deleted. This field the date and time when any route item is deleted.","example":"2023-07-03T18:22:31.501Z"},"spectralRequired":{"type":"boolean","description":"Indicates if the spectral collection is required.","example":true}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"},"404":{"description":"Route Item not found."}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}/cycles":{"get":{"summary":"List Cycles","description":"### Retrieve a list of cycles associated with a specific route OR all Cycles from all Routes within a workspace and its descendants. \n This endpoint allows you to retrieve a list of cycles associated with a specific route, providing the route ID and the workspace ID.\n\n This endpoint will bring cycles that had at least one day within the requested search range. \n\n You can also filter the cycles by start and end dates, and specify the fields to be included in the response using the **fields** query parameter.\n\n If you want to retrieve all cycles from all routes within a workspace and its descendants, you can set the route **versionId** to **-** (dash). \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 03/04/2025","tags":["Cycles"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"startDate","description":"The start date and time for filtering cycles.\n\n  **Important:** This service operates exclusively in UTC+0. Please ensure that the provided _startDate_ is in UTC+0 format. Clients are responsible for converting their local date and time to UTC 0 before making the request. \n\n **_For example_**, if you want to filter cycles starting from 2:00 PM (14:00) on October 27, 2023 in America/Sao_Paulo time, you should provide 2023-10-27T17:00:00.000Z as the startDate (which is the equivalent UTC+0 time).","required":true,"in":"query","style":"form","explode":false,"schema":{"type":"string","format":"date-time","example":"2023-10-27T17:00:00.000Z"}},{"name":"endDate","description":"The start date and time for filtering cycles.\n\n  **Important:** This service operates exclusively in UTC+0. Please ensure that the provided _startDate_ is in UTC+0 format. Clients are responsible for converting their local date and time to UTC 0 before making the request. \n\n **_For example_**, if you want to filter cycles starting from 2:00 PM (14:00) on October 27, 2023 in America/Sao_Paulo time, you should provide 2023-10-28T17:00:00.000Z as the startDate (which is the equivalent UTC+0 time).","required":true,"in":"query","style":"form","explode":false,"schema":{"type":"string","format":"date-time","example":"2023-10-28T17:00:00.000Z"}},{"name":"open","in":"query","description":"This parameter indicates whether to return only open cycles, closed cycles or all cycles. If set to true, only open cycles will be returned. If set to false, closed cycles will be returned. If not provided, all cycles will be returned.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: id, type, opened, workspaceId, cycleStartAt, cycleAt, cycleEndAt, createdAt. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","code","type","workspaceId","inspectorId","routeVersionId","opened","activated","frequency","frequencyUnit","toleranceBefore","toleranceBeforeUnit","toleranceAfter","toleranceAfterUnit","periodicityMultiplierStep","numberOrder","triggerNoteValue","dateUnitTrigger","datePeriodTrigger","triggerUnitValue","machines","subsets","components","checklists","spots","cycleStartAt","cycleAt","cycleEndAt","justified","spotAnswers","spotsJustified","checklistAnswers","checklistsJustified","adherence","adherenceReal","a1","a2","noAlert","alerts","inspector","deactivatedAt","deactivatedNote","deactivatedUserId","createdAt","updatedAt","deletedAt"]}}},{"name":"page","in":"query","description":"This parameter defines the specific page of data the client wishes to retrieve when data is segmented into pages. For example, if you have a list of 100 cycles and display 10 cycles per page, sending page as 2 would show cycles 11-20.","required":false,"style":"form","explode":true,"schema":{"type":"string","default":1}},{"name":"limit","in":"query","description":"This is an optional query parameter that can be used to limit the number of routes returned in the response. It's useful when you want to restrict the size of the data returned. The value should be a string that represents an integer.","required":false,"style":"form","explode":true,"schema":{"type":"string","default":10}},{"name":"sort","in":"query","description":"This parameter dictates the sort order of the returned data.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["cycleStartAt","cycleAt","cycleEndAt","createdAt"],"default":"createdAt"}},{"name":"direction","in":"query","description":"This parameter dictates the sort order of the returned data. The client can choose between \"asc\" and \"desc\". ASC would sort the data in ascending order and DESC in descending order.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"The request was successful, and the response contains the routes that match the specified filters and criteria. The response body is in JSON format and provides a list of cycles based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"object","description":"Pagination Info","properties":{"current":{"type":"integer","description":"Actual Page","example":1},"prev":{"type":"integer","description":"Previously page","example":0},"hasPrev":{"type":"boolean","description":"Has previously page","example":false},"hasNext":{"type":"boolean","description":"Has next page","example":true},"next":{"type":"integer","description":"Next page","example":2},"total":{"type":"integer","description":"Total number of pages","example":45}}},"items":{"type":"object","description":"Pagination info","properties":{"limit":{"type":"integer","description":"Items per page","example":10},"total":{"type":"integer","description":"Total number of items","example":442}}},"docs":{"type":"array","description":"List of Cycle items","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique Cycle identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"code":{"type":"integer","description":"Unique Cycle Code Identifier","example":"1232"},"type":{"type":"string","enum":["trigger","periodic",null],"description":"This field specifies the type of the route cycle, which can be one of the following values: \n\n - 'trigger': Represents a triggered route that is activated based on specific events or conditions. \n\n - 'periodic': Represents a periodic route that is activated at regular intervals or scheduled times. \n\n- 'null': Indicates that the type of the route is not defined or unspecified. Therefore, the route with null type is considered periodic.","default":null,"example":null},"workspaceId":{"type":"string","description":"Identity of the workspace where the route was created","example":"5v01fa123ke1605tt95991f4"},"inspectorId":{"type":"string","description":"Unique identifier of the inspector assigned to the cycle.","example":"123e4567-e89b-12d3-a456-426614174000"},"routeVersionId":{"type":"string","description":"Unique route identifier of each unique version of the route","example":"123e4567-e89b-12d3-a456-426614174000"},"opened":{"type":"boolean","description":"Indicates whether the cycle is currently open to inspect or not. This field specifies the activation status of the cycle, where true indicates that the cycle is currently in-progress and false indicates that it is not.","example":true},"activated":{"type":"boolean","description":"Indicates whether the cycle is currently active or not. This field specifies the activation status of the cycle, where `true` indicates that the cycle is currently active and `false` indicates that it is not.","example":true},"frequency":{"type":"integer","description":"The frequency at which the route cycle repeats. This field specifies how often the route cycle repeats or recurs in a certain period. The value represents the number of repetitions or occurrences within the specified period.","default":null,"example":0},"frequencyUnit":{"type":"string","description":"Frequency unit that the user will choose (day, month and year). If route cycle is trigger type, this field could be _null_","enum":["days","months","years",null],"default":null,"example":null},"toleranceBefore":{"type":"integer","description":"Time tolerance that the inspector can start the route cycle before the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to start the route cycle before the ideal scheduled time. If route cycle is trigger type, this field is _null_","default":null,"example":null},"toleranceBeforeUnit":{"type":"string","description":"Tolerance unit that the user will choose (day, month and year). If route cycle is trigger type, this field is _null_","enum":["days","months","years",null],"default":null,"example":null},"toleranceAfter":{"type":"integer","description":"Time tolerance that the inspector can finish the route cycle after the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to finish the route cycle after the ideal scheduled time. If route cycle is trigger type, this field is _null_","default":null,"example":null},"toleranceAfterUnit":{"description":"Tolerance unit that the user will choose (day, month and year). If route cycle is trigger type, this field is _null_","type":"string","enum":["days","months","years",null],"default":null,"example":null},"periodicityMultiplierStep":{"description":"","type":"integer","default":null},"numberOrder":{"type":"integer","description":"Represents the client-specific order or sequence number assigned to this maintenance cycle. This field allows clients to track and manage their maintenance cycles according to their own internal numbering system.","default":null,"example":null},"triggerNoteValue":{"type":"string","description":"An optional field used to add extra information or observations related to the cycle. Applicable for trigger types 'revision' or 'other'. Only when the route type is trigger","default":null,"example":null},"dateUnitTrigger":{"type":"string","description":"The unit of measurement related to the period trigger. Specifies the unit of time associated with the period trigger. Only when the route type is trigger","enum":["days","months","years",null],"default":null,"example":null},"datePeriodTrigger":{"type":"integer","description":"Minimum period for the route to be activated. Only when the route type is trigger","default":null,"example":null},"triggerUnitValue":{"type":"integer","description":"Minimum amount of hours for the trigger to be activated. Only when the route type is trigger","default":null,"example":null},"machines":{"type":"integer","description":"Total number of machines associated with this cycle.","example":1},"subsets":{"type":"integer","description":"Total number of subsets associated with this cycle.","example":0},"components":{"type":"integer","description":"Total number of components associated with this cycle.","example":0},"checklists":{"type":"integer","description":"Total number of checklists associated with this cycle","example":1},"spots":{"type":"integer","description":"Total number of spots associated with this cycle","example":0},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-15T03:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date and time of the cycle in UTC+0 format (ISO 8601). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-16T02:59:59.000Z"},"justified":{"type":"boolean","description":"This boolean field represents whether the cycle was justified or not, taking into account both checklistJustified and spotJustified. If the value is true, it indicates that the cycle has been justified.","example":false},"spotAnswers":{"type":"integer","description":"Total number of answered spots","example":0},"spotsJustified":{"type":"integer","description":"Total number of spots within the cycle that have justifications provided for their responses.","example":0},"checklistAnswers":{"type":"integer","description":"Total number of answered checklists","example":0},"checklistsJustified":{"type":"integer","description":"This field is used when the inspector did not respond to the checklist during the route cycle and justified the reason. It captures the inspector's justification for not completing the checklist.","example":0},"adherence":{"type":"string","description":"This represents the user's adherence based on their checklist responses and spot collections in relation to the number of checklists and spots in that route. It measures the extent to which the user is following the planned checklists and spots.","example":"0.00"},"adherenceReal":{"type":"string","description":"Similar to 'adherence', this also represents user adherence based on checklist responses and spot collections. However, in this case, any justified checklist responses and justified spot collections are not counted. It provides a measure of actual adherence excluding justifiable deviations.","example":"0.00"},"a1":{"type":"integer","description":"Number of yellow alerts (serious) triggered during this cycle based on checklist answers.","example":1},"a2":{"type":"integer","description":"Number of red alerts (critical) triggered during this cycle based on checklist answers.","example":0},"noAlert":{"type":"integer","description":"Number of checklists that did not trigger any alerts during this cycle.","example":0},"alerts":{"type":"integer","description":"Total number of alerts triggered during this cycle based on checklist answers.","example":1},"deactivatedAt":{"type":"string","format":"date-time","description":"Specific date and time (ISO_8061) when the route was deactivated, meaning it is no longer active or available for use. If the route is currently active, the value of this field will be null. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":null},"deactivatedNote":{"type":"string","description":"A comment or note provided by the user when deactivating the cycle. This field allows the user to add an mandatory comment or note explaining the reason for deactivating the cycle.","default":null,"example":null},"deactivatedUserId":{"type":"string","description":"Id of the user who deactivated the cycle","default":null,"example":null},"createdAt":{"type":"string","format":"date-time","description":"The date and time when the route cycle was created. This field indicates the exact moment when the route cycle was initially created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.2161Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time when any of the cycle fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the cycle's properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"},"deletedAt":{"type":"string","format":"date-time","description":"This field denotes the exact date and time when the cycle was deleted from the system. It serves as a timestamp marking the moment of the cycle's removal. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"},"404":{"description":"Route not found."}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}/cycles/{cycleId}":{"get":{"summary":"Get one Cycle","description":"### Retrieve one cycle associated with a specific route within a workspace and its descendants. \n\n This endpoint allows you to retrieve one cycle associated with a specific route, providing the route version ID and the workspace ID.\n\n You can also specify the fields to be included in the response using the **fields** query parameter.\n\n If you do not know the route id from the cycle, you can set route **versionId** to **-** (dash). \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 03/04/2025","tags":["Cycles"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"cycleId","description":"This is a required path parameter that specifies the Cycle ID. It is used to identify the specific cycle to retrieve. The value should be a string that uniquely identifies the cycle.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: id, type, opened, workspaceId, cycleStartAt, cycleAt, cycleEndAt, createdAt. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","code","type","workspaceId","inspectorId","routeVersionId","opened","activated","frequency","frequencyUnit","toleranceBefore","toleranceBeforeUnit","toleranceAfter","toleranceAfterUnit","periodicityMultiplierStep","numberOrder","triggerNoteValue","dateUnitTrigger","datePeriodTrigger","triggerUnitValue","machines","subsets","components","checklists","spots","cycleStartAt","cycleAt","cycleEndAt","justified","spotAnswers","spotsJustified","checklistAnswers","checklistsJustified","adherence","adherenceReal","a1","a2","noAlert","alerts","inspector","deactivatedAt","deactivatedNote","deactivatedUserId","createdAt","updatedAt","deletedAt"]}}}],"responses":{"200":{"description":"The request was successful, and the response contains the routes that match the specified filters and criteria. The response body is in JSON format and provides a list of cycles based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique Cycle identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"code":{"type":"integer","description":"Unique Cycle Code Identifier","example":"1232"},"type":{"type":"string","enum":["trigger","periodic",null],"description":"This field specifies the type of the route cycle, which can be one of the following values: \n\n - 'trigger': Represents a triggered route that is activated based on specific events or conditions. \n\n - 'periodic': Represents a periodic route that is activated at regular intervals or scheduled times. \n\n- 'null': Indicates that the type of the route is not defined or unspecified. Therefore, the route with null type is considered periodic.","default":null,"example":null},"workspaceId":{"type":"string","description":"Identity of the workspace where the route was created","example":"5v01fa123ke1605tt95991f4"},"inspectorId":{"type":"string","description":"Unique identifier of the inspector assigned to the cycle.","example":"123e4567-e89b-12d3-a456-426614174000"},"routeVersionId":{"type":"string","description":"Unique route identifier of each unique version of the route","example":"123e4567-e89b-12d3-a456-426614174000"},"opened":{"type":"boolean","description":"Indicates whether the cycle is currently open to inspect or not. This field specifies the activation status of the cycle, where true indicates that the cycle is currently in-progress and false indicates that it is not.","example":true},"activated":{"type":"boolean","description":"Indicates whether the cycle is currently active or not. This field specifies the activation status of the cycle, where `true` indicates that the cycle is currently active and `false` indicates that it is not.","example":true},"frequency":{"type":"integer","description":"The frequency at which the route cycle repeats. This field specifies how often the route cycle repeats or recurs in a certain period. The value represents the number of repetitions or occurrences within the specified period.","default":null,"example":0},"frequencyUnit":{"type":"string","description":"Frequency unit that the user will choose (day, month and year). If route cycle is trigger type, this field could be _null_","enum":["days","months","years",null],"default":null,"example":null},"toleranceBefore":{"type":"integer","description":"Time tolerance that the inspector can start the route cycle before the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to start the route cycle before the ideal scheduled time. If route cycle is trigger type, this field is _null_","default":null,"example":null},"toleranceBeforeUnit":{"type":"string","description":"Tolerance unit that the user will choose (day, month and year). If route cycle is trigger type, this field is _null_","enum":["days","months","years",null],"default":null,"example":null},"toleranceAfter":{"type":"integer","description":"Time tolerance that the inspector can finish the route cycle after the ideal moment. This field specifies the allowed time deviation or buffer that the inspector has to finish the route cycle after the ideal scheduled time. If route cycle is trigger type, this field is _null_","default":null,"example":null},"toleranceAfterUnit":{"description":"Tolerance unit that the user will choose (day, month and year). If route cycle is trigger type, this field is _null_","type":"string","enum":["days","months","years",null],"default":null,"example":null},"periodicityMultiplierStep":{"description":"","type":"integer","default":null},"numberOrder":{"type":"integer","description":"Represents the client-specific order or sequence number assigned to this maintenance cycle. This field allows clients to track and manage their maintenance cycles according to their own internal numbering system.","default":null,"example":null},"triggerNoteValue":{"type":"string","description":"An optional field used to add extra information or observations related to the cycle. Applicable for trigger types 'revision' or 'other'. Only when the route type is trigger","default":null,"example":null},"dateUnitTrigger":{"type":"string","description":"The unit of measurement related to the period trigger. Specifies the unit of time associated with the period trigger. Only when the route type is trigger","enum":["days","months","years",null],"default":null,"example":null},"datePeriodTrigger":{"type":"integer","description":"Minimum period for the route to be activated. Only when the route type is trigger","default":null,"example":null},"triggerUnitValue":{"type":"integer","description":"Minimum amount of hours for the trigger to be activated. Only when the route type is trigger","default":null,"example":null},"machines":{"type":"integer","description":"Total number of machines associated with this cycle.","example":1},"subsets":{"type":"integer","description":"Total number of subsets associated with this cycle.","example":0},"components":{"type":"integer","description":"Total number of components associated with this cycle.","example":0},"checklists":{"type":"integer","description":"Total number of checklists associated with this cycle","example":1},"spots":{"type":"integer","description":"Total number of spots associated with this cycle","example":0},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-15T03:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date and time of the cycle in UTC+0 format (ISO 8601). \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-16T02:59:59.000Z"},"justified":{"type":"boolean","description":"This boolean field represents whether the cycle was justified or not, taking into account both checklistJustified and spotJustified. If the value is true, it indicates that the cycle has been justified.","example":false},"spotAnswers":{"type":"integer","description":"Total number of answered spots","example":0},"spotsJustified":{"type":"integer","description":"Total number of spots within the cycle that have justifications provided for their responses.","example":0},"checklistAnswers":{"type":"integer","description":"Total number of answered checklists","example":0},"checklistsJustified":{"type":"integer","description":"This field is used when the inspector did not respond to the checklist during the route cycle and justified the reason. It captures the inspector's justification for not completing the checklist.","example":0},"adherence":{"type":"string","description":"This represents the user's adherence based on their checklist responses and spot collections in relation to the number of checklists and spots in that route. It measures the extent to which the user is following the planned checklists and spots.","example":"0.00"},"adherenceReal":{"type":"string","description":"Similar to 'adherence', this also represents user adherence based on checklist responses and spot collections. However, in this case, any justified checklist responses and justified spot collections are not counted. It provides a measure of actual adherence excluding justifiable deviations.","example":"0.00"},"a1":{"type":"integer","description":"Number of yellow alerts (serious) triggered during this cycle based on checklist answers.","example":1},"a2":{"type":"integer","description":"Number of red alerts (critical) triggered during this cycle based on checklist answers.","example":0},"noAlert":{"type":"integer","description":"Number of checklists that did not trigger any alerts during this cycle.","example":0},"alerts":{"type":"integer","description":"Total number of alerts triggered during this cycle based on checklist answers.","example":1},"deactivatedAt":{"type":"string","format":"date-time","description":"Specific date and time (ISO_8061) when the route was deactivated, meaning it is no longer active or available for use. If the route is currently active, the value of this field will be null. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","default":null,"example":null},"deactivatedNote":{"type":"string","description":"A comment or note provided by the user when deactivating the cycle. This field allows the user to add an mandatory comment or note explaining the reason for deactivating the cycle.","default":null,"example":null},"deactivatedUserId":{"type":"string","description":"Id of the user who deactivated the cycle","default":null,"example":null},"createdAt":{"type":"string","format":"date-time","description":"The date and time when the route cycle was created. This field indicates the exact moment when the route cycle was initially created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.2161Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time when any of the cycle fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the cycle's properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"},"deletedAt":{"type":"string","format":"date-time","description":"This field denotes the exact date and time when the cycle was deleted from the system. It serves as a timestamp marking the moment of the cycle's removal. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"},"404":{"description":"Route not found."}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}/cycles/{cycleId}/checklist-answers":{"get":{"summary":"Get Checklist Answers","description":"### Retrieve both answered and unanswered checklists for a specific route or route cycle\n\nThis endpoint returns a comprehensive list of checklists, including both answered and unanswered ones, for a specific route or route cycle. You must provide the route version ID, cycle ID, and workspace ID.\n\n**Key features:**\n- Filter results using the **fields** query parameter to include only specific fields\n- Set **cycleId** to **-** (dash) to retrieve checklists from all cycles\n- For unanswered checklists, the following fields will be null: id, inspectorId, justified, answeredAt, answeredStartAt, answerLevel, answerLevelId, criticality, alerts, quizAlertConfig, levelAlert, totalAlerts, attachments, totalAttachments, duration, latitude, longitude, createdAt, updatedAt, deletedAt, sync\n\n**Required permissions:** Owner, Admin, Editor, or Reader\n\n##### Last Updated: 07/24/2025","tags":["Checklist Answers"],"security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"cycleId","description":"This is a required path parameter that specifies the Cycle ID. It is used to identify the specific cycle to retrieve. The value should be a string that uniquely identifies the cycle.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"startDate","description":"The start date and time for filtering checklist-answers.\n\n  **Important:** This service operates exclusively in UTC+0. Please ensure that the provided _startDate_ is in UTC+0 format. Clients are responsible for converting their local date and time to UTC 0 before making the request. \n\n **_For example_**, if you want to filter checklist-answers starting from 2:00 PM (14:00) on October 27, 2023 in America/Sao_Paulo time, you should provide 2023-10-27T17:00:00.000Z as the startDate (which is the equivalent UTC+0 time).","required":true,"in":"query","style":"form","explode":false,"schema":{"type":"string","format":"date-time","example":"2023-10-27T17:00:00.000Z"}},{"name":"endDate","description":"The start date and time for filtering checklist-answers.\n\n  **Important:** This service operates exclusively in UTC+0. Please ensure that the provided _startDate_ is in UTC+0 format. Clients are responsible for converting their local date and time to UTC 0 before making the request. \n\n **_For example_**, if you want to filter checklist-answers starting from 2:00 PM (14:00) on October 27, 2023 in America/Sao_Paulo time, you should provide 2023-10-28T17:00:00.000Z as the startDate (which is the equivalent UTC+0 time).","required":true,"in":"query","style":"form","explode":false,"schema":{"type":"string","format":"date-time","example":"2023-10-28T17:00:00.000Z"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: all fields. \n\n **_Example_**: ?fields[]=id&fields[]=type ","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","checklistId","checklistTitle","checklistType","quizId","inspectorId","routeVersionId","routeId","cycle","justified","justification","answeredAt","answerLevel","answerLevelId","criticality","alerts","quizAlertConfig","levelAlert","totalAlerts","attachments","totalAttachments","duration","latitude","longitude","createdAt","updatedAt","deletedAt","sync","assets"]}}},{"name":"checklistTypes[]","description":"An optional query parameter that specifies the checklist types to include in the response.","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["default","rolls","beltThickness","manualMeasurement"]}}},{"name":"page","in":"query","description":"This parameter defines the specific page of data the client wishes to retrieve when data is segmented into pages. For example, if you have a list of 100 checklist answers and display 10 checklist answers per page, sending page as 2 would show checklist answers 11-20.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"This is an optional query parameter that can be used to limit the number of records returned in the response. It's useful when you want to restrict the size of the data returned. The value should be a string that represents an integer.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"This parameter dictates the sort order of the returned data.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["answeredAt","cycleAt","createdAt","updatedAt","deletedAt"],"default":"createdAt"}},{"name":"direction","in":"query","description":"This parameter dictates the sort order of the returned data. The client can choose between \"asc\" and \"desc\". ASC would sort the data in ascending order and DESC in descending order.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"The request was successful, and the response contains the records that match the specified filters and criteria. The response body is in JSON format and provides a list of records based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"object","description":"Pagination Info","properties":{"current":{"type":"integer","description":"Actual Page","example":1},"prev":{"type":"integer","description":"Previously page","example":0},"hasPrev":{"type":"boolean","description":"Has previously page","example":false},"hasNext":{"type":"boolean","description":"Has next page","example":true},"next":{"type":"integer","description":"Next page","example":2},"total":{"type":"integer","description":"Total number of pages","example":45}}},"items":{"type":"object","description":"Pagination info","properties":{"limit":{"type":"integer","description":"Items per page","example":10},"total":{"type":"integer","description":"Total number of items","example":442}}},"docs":{"type":"array","description":"List of Cycle items","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique Checklist Answer Identifier. Will be null for unanswered checklists.","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistId":{"type":"string","description":"Unique Checklist Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistTitle":{"type":"string","description":"Checklist Title","example":"Example Checklist Title"},"quizId":{"type":"string","description":"Unique Quiz Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistType":{"type":"string","enum":["default","rolls","manualMeasurement","beltThickness"],"description":"This field specifies the type of the checklist, which can be one of the following values: \n\n - 'default': Represents a default customizable checklist, without questions limit. \n\n - 'rolls': Represents a checklist to inspect conveyor belt components. \n\n- 'manualMeasurement': Represents a checklist to instrumented inspections with configured alerts. \n\n- 'beltThickness': Represents a checklist to conveyor belt thickness inspection.","default":"default","example":null},"inspectorId":{"type":"string","description":"Unique identifier of the inspector assigned to the route.","example":"123e4567-e89b-12d3-a456-426614174000"},"routeVersionId":{"type":"string","description":"Unique route version identifier that the checklist answer belongs to.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"routeId":{"type":"string","description":"This is the unique id of the route that is generated when creating a route. It does not change between route versions. It is considered a route grouper, so it groups all versions of this route.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycle":{"type":"object","description":"Basic route cycle info","properties":{"cycleId":{"type":"string","description":"Unique cycle identifier.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle (ISO_8061).","default":null,"example":"2023-07-06T00:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in (ISO_8061)","default":null,"example":"2023-07-09T12:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date  and time  of the cycle (ISO_8061).","default":null,"example":"2023-07-13T00:00:00.000Z"}}},"justified":{"type":"boolean","description":"This boolean field represents whether the cycle was justified or not, taking into account both checklistJustified and spotJustified. If the value is true, it indicates that the cycle has been justified. Will be null for unanswered checklists.","example":false},"justification":{"type":"string","description":"The justification of the checklist answer. Will be null for unanswered checklists.","example":"Example justification"},"answeredAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer in UTC+0 format (ISO 8601). Will be null for unanswered checklists.","example":"2023-05-31T03:00:00.000Z"},"answerLevel":{"type":"string","description":"Stage in which the no-anomaly command was used by the user while answering the checklist. Will be null for unanswered checklists.","enum":["machine","checklist","subset","route"]},"answerLevelId":{"type":"string","description":"Identifier of the stage in which the no-anomaly command was used by the user while answering the checklist. Will be null for unanswered checklists.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"criticality":{"type":"object","description":"The checklist answer criticality counts. Will contain either specialist/maintenance values (p0-p8), operation values (op0-op3), or default values (danger, warning, normal). Will be null for unanswered checklists.","properties":{"p0":{"type":"integer","example":1},"p1":{"type":"integer","example":0},"p2":{"type":"integer","example":0},"p3":{"type":"integer","example":0},"p4":{"type":"integer","example":0},"p5":{"type":"integer","example":0},"p6":{"type":"integer","example":0},"p7":{"type":"integer","example":0},"p8":{"type":"integer","example":0},"op0":{"type":"integer","example":1},"op1":{"type":"integer","example":0},"op2":{"type":"integer","example":0},"op3":{"type":"integer","example":0},"danger":{"type":"integer","example":1},"warning":{"type":"integer","example":0},"normal":{"type":"integer","example":0}}},"alerts":{"type":"object","description":"The checklist answer alerts. Will be null for unanswered checklists.","properties":{"a1":{"example":1},"a2":{"example":2},"total":{"example":3}}},"quizAlertConfig":{"type":"object","description":"The alerts configuration. Will be null for unanswered checklists.","properties":{"unit":{"example":"mm"},"a1min":{"example":12},"a2min":{"example":16}}},"levelAlert":{"type":"integer","description":"Criticality level of the answer. Will be null for unanswered checklists.","example":"3"},"totalAlerts":{"type":"integer","description":"The checklist answer total alerts. Will be null for unanswered checklists. Will be null for unanswered checklists.","example":"2"},"attachments":{"type":"object","description":"Object containing arrays of attachment IDs grouped by type. Will be null for unanswered checklists. Will be null for unanswered checklists.","properties":{"images":{"type":"array","description":"List of image attachment IDs.","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}},"audios":{"type":"array","description":"List of audio attachment IDs.","items":{"type":"string","example":"98765432-10fe-dcba-4321-09876543210f"}},"all":{"type":"array","description":"List of all attachment IDs (both images and audios).","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}}}},"totalAttachments":{"type":"integer","description":"The checklist answer total attachments. Will be null for unanswered checklists.","example":5},"duration":{"type":"number","format":"double","description":"The checklist answer duration. Will be null for unanswered checklists.","example":"1.5"},"latitude":{"type":"number","format":"double","description":"The checklist answer latitude coordinate. Will be null for unanswered checklists.","example":"-00.0000"},"longitude":{"type":"number","description":"The checklist answer longitude coordinate. Will be null for unanswered checklists. Will be null for unanswered checklists.","example":"-00.0000"},"createdAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer creation in UTC+0 format (ISO 8601). Will be null for unanswered checklists.","example":"2023-05-31T03:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer update in UTC+0 format (ISO 8601). Will be null for unanswered checklists.","example":"2023-05-31T03:00:00.000Z"},"deletedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer deletion in UTC+0 format (ISO 8601). Will be null for unanswered checklists.","example":"2023-05-31T03:00:00.000Z"},"sync":{"type":"string","description":"When data synchronization is done via Dynamox support. Will be null for unanswered checklists.","example":"synced by support"},"assets":{"type":"array","description":"List of assets hierarchically in which the checklist is associated. The first item of the array is the _machine_, and the last index of the array is where the checklist is _directly associated_. If the checklist is associated directly on a machine, there will be only one item in this array, the machine","items":{"type":"object","properties":{"routeItemId":{"type":"string","description":"Unique identifier of the item on the route","example":"63b3fdfa-81af-230c-add5-448b01daffcb"},"name":{"type":"string","description":"Asset Name","example":"Machine 01"},"parentId":{"type":"string","description":"Route item id of its parent hierarchically. If the item is the top of the hierarchy (machine) the parent id will be null","example":null},"type":{"type":"string","description":"Asset Type","enum":["machine","subset","component"],"example":"machine"}}}}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"}}}},"/v1/workspaces/{workspaceId}/routes/{versionId}/cycles/{cycleId}/checklist-answers/{checklistAnswerId}":{"get":{"summary":"Get Checklist Answer by ID","description":"### Retrieve a specific Checklist Answer by its ID. \n\n This endpoint allows you to retrieve the answers provided for a checklist associated with a specific route and/or route cycle, providing the workspace ID, the route version ID, cycle ID, and the checklist answer ID.\n\n You can also specify the fields to be included in the response using the **fields** query parameter.\n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 03/04/2025","tags":["Checklist Answers"],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"versionId","description":"This is a required path parameter that specifies the Route Version ID. It is used to identify the specific route to retrieve. The value should be a string that uniquely identifies the route.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"cycleId","description":"This is a required path parameter that specifies the Cycle ID. It is used to identify the specific cycle to retrieve. The value should be a string that uniquely identifies the cycle.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"checklistAnswerId","description":"This is a required path parameter that specifies the Checklist Answer ID. It is used to identify the specific Checklist Answer to retrieve. The value should be a string that uniquely identifies the Checklist Answer.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows for a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: all fields. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","quizId","checklistId","checklistTitle","checklistType","routeVersionId","routeId","inspectorId","hash","answers","cycle","answeredStartAt","answeredAt","answerLevel","answerLevelId","duration","latitude","longitude","justified","agent","criticality","alerts","quizAlertConfig","levelAlert","totalAlerts","attachments","totalAttachments","reason","note","sync","assets","createdAt","updatedAt","deletedAt"]}}}],"responses":{"200":{"description":"The request was successful, and the response contains the records that match the specified filters and criteria. The response body is in JSON format and provides a record based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique Checklist Answer Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistId":{"type":"string","description":"Unique Checklist Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistTitle":{"type":"string","description":"Checklist Title","example":"Example Checklist Title"},"quizId":{"type":"string","description":"Unique Quiz Identifier","example":"123e4567-e89b-12d3-a456-426614174000"},"checklistType":{"type":"string","enum":["default","rolls","manualMeasurement","beltThickness"],"description":"This field specifies the type of the checklist, which can be one of the following values: \n\n - 'default': Represents a default customizable checklist, without questions limit. \n\n - 'rolls': Represents a checklist to inspect conveyor belt components. \n\n- 'manualMeasurement': Represents a checklist to instrumented inspections with configured alerts. \n\n- 'beltThickness': Represents a checklist to conveyor belt thickness inspection.","default":"default","example":null},"inspectorId":{"type":"string","description":"Unique identifier of the inspector assigned to the route.","example":"123e4567-e89b-12d3-a456-426614174000"},"routeVersionId":{"type":"string","description":"Unique route version identifier.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"routeId":{"type":"string","description":"This is the unique id of the route that is generated when creating a route. It does not change between route versions. It is considered a route grouper, so it groups all versions of this route.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycle":{"type":"object","description":"Basic route cycle info","properties":{"cycleId":{"type":"string","description":"Unique cycle identifier.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"cycleStartAt":{"type":"string","format":"date-time","description":"The start date and time of the cycle (ISO_8061).","default":null,"example":"2023-07-06T00:00:00.000Z"},"cycleAt":{"type":"string","format":"date-time","description":"Which cycle the route is currently in (ISO_8061)","default":null,"example":"2023-07-09T12:00:00.000Z"},"cycleEndAt":{"type":"string","format":"date-time","description":"The end date  and time  of the cycle (ISO_8061).","default":null,"example":"2023-07-13T00:00:00.000Z"}}},"justified":{"type":"boolean","description":"This boolean field represents whether the cycle was justified or not, taking into account both checklistJustified and spotJustified. If the value is true, it indicates that the cycle has been justified.","example":false},"answeredAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"answerLevel":{"type":"string","description":"Stage in which the no-anomaly command was used by the user while answering the checklist.","enum":["machine","checklist","subset","route"]},"answerLevelId":{"type":"string","description":"Identifier of the stage in which the no-anomaly command was used by the user while answering the checklist.","example":"5d8e5c8b-9d9a-4a8b-867d-4e8db9c65fea"},"criticality":{"type":"object","description":"The checklist answer criticality counts. Will contain either specialist/maintenance values (p0-p8), operation values (op0-op3), or default values (danger, warning, normal)","properties":{"p0":{"type":"integer","example":1},"p1":{"type":"integer","example":0},"p2":{"type":"integer","example":0},"p3":{"type":"integer","example":0},"p4":{"type":"integer","example":0},"p5":{"type":"integer","example":0},"p6":{"type":"integer","example":0},"p7":{"type":"integer","example":0},"p8":{"type":"integer","example":0},"op0":{"type":"integer","example":1},"op1":{"type":"integer","example":0},"op2":{"type":"integer","example":0},"op3":{"type":"integer","example":0},"danger":{"type":"integer","example":1},"warning":{"type":"integer","example":0},"normal":{"type":"integer","example":0}}},"alerts":{"type":"object","description":"The checklist answer alerts.","properties":{"a1":{"example":1},"a2":{"example":2},"total":{"example":3}}},"quizAlertConfig":{"type":"object","description":"The alerts configuration.","properties":{"unit":{"example":"mm"},"a1min":{"example":12},"a2min":{"example":16}}},"levelAlert":{"type":"integer","description":"Criticality level of the answer.","example":"3"},"totalAlerts":{"type":"integer","description":"The checklist answer total alerts.","example":"2"},"attachments":{"type":"object","description":"Object containing arrays of attachment IDs grouped by type.","properties":{"images":{"type":"array","description":"List of image attachment IDs.","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}},"audios":{"type":"array","description":"List of audio attachment IDs.","items":{"type":"string","example":"98765432-10fe-dcba-4321-09876543210f"}},"all":{"type":"array","description":"List of all attachment IDs (both images and audios).","items":{"type":"string","example":"a1b2c3d4-e5f6-7890-1234-567890abcdef"}}}},"totalAttachments":{"type":"integer","description":"The checklist answer total attachments.","example":"5"},"duration":{"type":"number","format":"double","description":"The checklist answer duration.","example":"1.5"},"latitude":{"type":"number","format":"double","description":"The checklist answer latitude coordinate.","example":"-00.0000"},"longitude":{"type":"number","description":"The checklist answer longitude coordinate.","example":"-00.0000"},"createdAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer creation in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer update in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"deletedAt":{"type":"string","format":"date-time","description":"The date and time of the checklist answer deletion in UTC+0 format (ISO 8601).","example":"2023-05-31T03:00:00.000Z"},"sync":{"type":"string","description":"When data synchronization is done via Dynamox support","example":"synced by support"},"answers":{"type":"array","description":"List of answers provided for the checklist. Will be null for justified checklists.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the answer.","example":"75c821cf-21c4-4952-89fa-c0d966514090"},"alternativeId":{"type":"string","description":"Unique identifier of the selected alternative for the question.","example":"ca83593e-7e52-4d11-9a18-42f371f77dea"},"alternativeTitle":{"type":"string","description":"Alternative Title","example":"Example Alternative Title"},"questionId":{"type":"string","description":"Unique identifier of the question.","example":"faebb189-e13f-4967-b1db-78aa3f4678a9"},"questionTitle":{"type":"string","description":"Question Title","example":"Example Question Title"},"quizId":{"type":"string","description":"Unique identifier of the quiz.","example":"36171921-5a01-4900-b8a0-c6fe30e4931b"},"inspectorId":{"type":"string","description":"Unique identifier of the inspector.","example":"4f41986a-7cf9-41e3-a755-de4dd13b5306"},"checklistId":{"type":"string","description":"Unique identifier of the checklist.","example":"c608aa15-a7a6-4d49-a6a3-3d9a53d512f2"},"routeVersionId":{"type":"string","description":"Unique identifier of the route version.","example":"951614c8-a0df-48fd-9d5e-0d1fdc6e759f"},"hash":{"type":"string","description":"Unique hash identifier for the answer.","example":"a23e95f0-e367-11ec-8c61-b5591c026250"},"latitude":{"type":"number","format":"double","description":"Latitude coordinate of the answer location.","example":"-00.0000"},"longitude":{"type":"number","description":"Longitude coordinate of the answer location.","example":"-00.0000"},"answeredStartAt":{"type":"string","format":"date-time","description":"Date and time when the answer was started (ISO 8601).","example":"2024-06-03T18:01:26+00:00"},"answeredAt":{"type":"string","format":"date-time","description":"Date and time when the answer was submitted (ISO 8601).","example":"2024-06-03T18:03:26+00:00"},"manualMeasurementValue":{"type":"number","description":"Value of the manual measurement, if applicable.","example":44},"manualMeasurementUnit":{"type":"string","description":"Unit of the manual measurement, if applicable.","example":"mm"},"roll":{"type":"integer","description":"Roll number, if applicable.","example":5},"rollerFailureMode":{"type":"string","description":"Roller failure mode, if applicable.","example":"broken bearing"},"criticality":{"type":"string","description":"Criticality level of the answer.","example":"p0"},"alert":{"type":"string","description":"Alert type, if applicable.","example":"a2"},"note":{"type":"string","description":"Note added to the answer.","example":"example note description"},"otherNote":{"type":"string","description":"Additional note, if applicable.","example":"example other note description"},"images":{"type":"array","description":"List of images associated with the answer.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the image.","example":"7a46c320-8f27-4414-8c7b-58240cd6d459"},"title":{"type":"string","description":"Title of the image.","example":"Imagem em 03-06-2022 15:02.jpg"},"path":{"type":"string","description":"Path to the image file.","example":"1654279465653_Image03-06-202215:02.jpg"},"size":{"type":"integer","description":"Size of the image file in bytes.","example":5893},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the image was created (ISO 8601).","example":"2024-06-03T18:04:26.121+00:00"},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the image was last updated (ISO 8601).","example":"2024-06-03T18:04:26.121+00:00"},"deleted_at":{"type":"string","description":"Date and time when the image was deleted (ISO 8601), if applicable.","example":"2024-06-03T18:04:26.121+00:00"},"publicPath":{"type":"string","description":"Public URL of the image.","example":"https://storage.googleapis.com/api-bucket/image.jpg?..."}}}},"audios":{"type":"array","description":"List of audios associated with the answer.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the audio.","example":"7345646e-5d11-444d-8eb4-6353a01cccc3"},"title":{"type":"string","description":"Title of the audio.","example":"Áudio em 03-06-2022 15:02.mp3"},"path":{"type":"string","description":"Path to the audio file.","example":"1654279464710_Áudioem03-06-202215:02.mp3"},"size":{"type":"integer","description":"Size of the audio file in bytes.","example":497494},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the audio was created (ISO 8601).","example":"2022-06-03T18:04:24.888+00:00"},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the audio was last updated (ISO 8601).","example":"2022-06-03T18:04:24.888+00:00"},"deleted_at":{"type":"string","nullable":true,"description":"Date and time when the audio was deleted (ISO 8601), if applicable.","example":"2022-06-03T18:04:24.888+00:00"},"publicPath":{"type":"string","description":"Public URL of the audio.","example":"https://storage.googleapis.com/api-bucket/audio.mp3?..."}}}},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the answer was created (ISO 8601).","example":"2022-06-03T18:04:38.587+00:00"},"updatedAt":{"type":"string","format":"date-time","description":"Date and time when the answer was last updated (ISO 8601).","example":"2022-06-03T18:04:38.587+00:00"},"deletedAt":{"type":"string","format":"date-time","description":"Date and time when the answer was deleted (ISO 8601), if applicable.","example":"2022-06-03T18:04:38.587+00:00"}}}},"hash":{"type":"string","description":"Unique hash identifier for the answer.","example":"a23e95f0-e367-11ec-8c61-b5591c026250"},"note":{"type":"string","description":"Note added to the answer.","example":"example note description"},"reason":{"type":"string","description":"Reason for the answer.","example":"example reason description"},"assets":{"type":"array","description":"List of assets hierarchically in which the checklist is associated. The first item of the array is the _machine_, and the last index of the array is where the checklist is _directly associated_. If the checklist is associated directly on a machine, there will be only one item in this array, the machine","items":{"type":"object","properties":{"routeItemId":{"type":"string","description":"Unique identifier of the item on the route","example":"63b3fdfa-81af-230c-add5-448b01daffcb"},"name":{"type":"string","description":"Asset Name","example":"Machine 01"},"parentId":{"type":"string","description":"Route item id of its parent hierarchically. If the item is the top of the hierarchy (machine) the parent id will be null","example":null},"type":{"type":"string","description":"Asset Type","enum":["machine","subset","component"],"example":"machine"}}}}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"}}}},"/v1/workspaces/{workspaceId}/inspectors/{inspectorId}":{"get":{"summary":"Get Inspector by ID","description":"### Retrieves detailed information about a specific inspector within a workspace, identified by their unique ID. \n\n You can optionally specify which fields to include in the response using the **fields** query parameter. \n\n To use this endpoint you may have one of the following permissions: Owner, Admin, Editor, Reader \n\n ##### Last Updated: 03/04/2025","tags":["Inspectors"],"parameters":[{"name":"workspaceId","description":"This is a required path parameter that specifies the Workspace ID. It is used to identify the workspace to which the route belongs. The value should be a string that uniquely identifies the workspace.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"inspectorId","description":"This is a required path parameter that specifies the Inspector ID. It is used to identify the inspector to retrieve. The value should be a string that uniquely identifies the inspector.","required":true,"in":"path","style":"simple","explode":false,"schema":{"type":"string"}},{"name":"fields[]","description":"An optional query parameter that specifies a list of fields to include in the response. This allows for a partial response, where only the selected fields are returned, reducing the payload size. Each field should be the name of a property in the response schema. \n\n _Default return_: all fields. \n\n **_Example_**: ?fields[]=id&fields[]=type","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","uid","name","email","image","roles","createdAt","updatedAt","deletedAt"]}}}],"responses":{"200":{"description":"The request was successful, and the response contains the records that match the specified filters and criteria. The response body is in JSON format and provides a record based on the query parameters provided.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier used to identify the inspector who is assigned to the route","example":"132e4567-e89b-12d3-b456-426614174020"},"uid":{"type":"string","description":"This is a unique identifier provided by our authentication service. It is used for user authentication and authorization.","example":"7v31IQpVEgYcySE7KNnF320Pv5u3"},"email":{"type":"string","description":"This field represents the user's email address. It is used for communication and identification purposes.","example":"jhon.doe@email.com"},"roles":{"type":"array","description":"This field represents the roles assigned to the user. Each role grants specific permissions and access levels within the system.","items":{"type":"string","enum":["electricalInspector","mechanicalInspector","lubricator"]},"example":["mechanicalInspector","lubricator"]},"createdAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061 in UTC-0) when the inspector record was created in the system. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-06-13T12:14:40.261Z"},"updatedAt":{"type":"string","format":"date-time","description":"The date and time (ISO_8061 in UTC-0) when any of the inspector fields were last updated. This field indicates the most recent date and time when any changes or modifications were made to the route's properties. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":"2023-07-03T18:22:31.501Z"},"deletedAt":{"type":"string","format":"date-time","description":"This field denotes the exact date and time (ISO_8061 in UTC-0) when the inspector was deleted from the system. It serves as a timestamp marking the moment of the inspector's removal. \n\n **Important:** This service operates exclusively in UTC+0, clients are responsible for converting to their local date time","example":null}}}}}},"400":{"description":"The request is malformed or missing required parameters."},"401":{"description":"Not Authorized"},"403":{"description":"Forbidden"}}}},"/v1/telemetry/metric-descriptor":{"get":{"tags":["Telemetry"],"summary":"Get Metric Descriptors","description":"### Show a list of all Metric Descriptors existents for a resource.\n\n⚠️Important:\n- Ensure that you've already created any Metric Descriptor before, otherwise it will return **HTTP 404** status code.\n- If there is no Metric Descriptor for the specified `resourceId`, a **HTTP 404** status code will be returned.\n- If there is no Metric Descriptor for the specified `resourceId` and `search` query parameters, **HTTP 404** status code will be returned.","operationId":"list_v1_telemetry_metric_descriptor_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resourceId","in":"query","required":true,"schema":{"type":"string","description":"Resource ID","title":"Resourceid"},"description":"Resource ID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to get Metric Descriptor by display name.","title":"Search"},"description":"Filter to get Metric Descriptor by display name."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"properties":{"metricDescriptorId":{"type":"string","title":"Metricdescriptorid","examples":["67890abcdef1234567890abc"]},"resourceId":{"type":"string","title":"Resourceid","examples":["56789abcdef1234567890abc"]},"displayName":{"additionalProperties":{"type":"string"},"type":"object","title":"Displayname","examples":[{"en":"Metric Name","es":"Nombre de la métrica","fr":"Nom de la métrique","pt":"Nome da métrica"}]},"attributes":{"type":"object","title":"Attributes","examples":[{"axis":"x","physicalQuantity":"acceleration"}]},"unit":{"type":"string","title":"Unit","examples":["g","m/s"]}},"type":"object","required":["metricDescriptorId","resourceId","displayName","attributes","unit"],"title":"MetricDescriptorPublicResponseV1","description":"Public v1 metric descriptor object."},"type":"array","title":"MetricDescriptorsPublicResponseV1","description":"Public v1 metric descriptor response model"}}}},"404":{"description":"The resource id was not found.","content":{"application/json":{"examples":{"default":{"value":{"message":"Resource id not found."}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/telemetry/data-points/aggregation":{"get":{"tags":["Telemetry"],"summary":"Get Aggregated Data Points","description":"### Returns aggregated Data Points for a specific Metric Descriptor within a time period.\n\nℹ️ ***Note***:\n*The resolution in the `auto` mode follows the condition rule below*:\n\n| Time between `from_time` and `to_time` | Aggregation Time Window |\n|----------------------------------------|-------------------------|\n| [0 hours, 6 hours) | 1 minute |\n| [6 hours, 1 days) | 5 minutes |\n| [1 days, 7 days) | 30 minutes |\n| [7 days, 15 days) | 1 hour |\n| [15 days, 30 days) | 2 hours |\n| [30 days, 60 days) | 4 hours |\n| [60 days, 120 days) | 8 hours |\n| [120 days, 360 days) | 1 day |\n| [360 days, 720 days) | 2 days |\n\n*Thus if you want to get the data in the maximum resolution available, be sure to paginate your requests using the smallest time period accordantly to the table above.*\n\n⚠️Important:\n- Ensure that you've already created any Metric Descriptor and added data points before, otherwise it will return **HTTP 404** status code.\n- Currently ,the `resolution` query parameter has only one option: `auto`. In the future, more resolution options will be available, enabling the user to select which resolution the aggregated data points will be returned.","operationId":"aggregation_v1_telemetry_data_points_aggregation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metricDescriptorId","in":"query","required":true,"schema":{"type":"string","description":"Metric Descriptor ID","title":"Metricdescriptorid"},"description":"Metric Descriptor ID"},{"name":"fromTime","in":"query","required":true,"schema":{"type":"string","description":"Time format must match YYYY-MM-DDTHH:MM:SS.mmmZ.","examples":["2022-12-05T12:33:11.123Z"],"title":"Fromtime"},"description":"Time format must match YYYY-MM-DDTHH:MM:SS.mmmZ."},{"name":"toTime","in":"query","required":true,"schema":{"type":"string","description":"Time format must match YYYY-MM-DDTHH:MM:SS.mmmZ.","examples":["2022-12-05T12:33:11.123Z"],"title":"Totime"},"description":"Time format must match YYYY-MM-DDTHH:MM:SS.mmmZ."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"metricDescriptorId":{"type":"string","title":"Metricdescriptorid","examples":["67890abcdef1234567890abc"]},"aggregation":{"items":{"properties":{"datetime":{"type":"string","format":"date-time","title":"Datetime","examples":["2020-02-02T10:09:08.007Z"]},"max":{"type":"number","title":"Max","examples":[12.3456789]},"avg":{"type":"number","title":"Avg","examples":[9.8765432]},"min":{"type":"number","title":"Min","examples":[5.6789012]},"count":{"type":"integer","title":"Count","examples":[12]}},"type":"object","required":["datetime","max","avg","min","count"],"title":"Aggregation","description":"Aggregation model representation."},"type":"array","title":"Aggregation"}},"type":"object","required":["metricDescriptorId","aggregation"],"title":"AggregatedDataPointsPublicResponseV1","description":"Public v1 aggregated data points response model."}}}},"404":{"description":"Metric descriptor not found.","content":{"application/json":{"example":{"message":"Metric Descriptor not found."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1beta/telemetry/data-points/raw":{"get":{"tags":["Telemetry"],"summary":"Get Raw Data Points","description":"### Returns raw Data Points for a specific Resource or Metric Descriptor within a time period.\n\nYou can query raw data points by providing a `resourceId` or a `metricDescriptorId`. If a `resourceId` is provided, the query will fetch raw data points for all its Metric Descriptors.\n\nA time range can be provided to filter the data points. The time range parameters can either refer to the datetime of the data points (`fromTime` and `toTime`) or the datetime in which the data points were inserted into the database (`insertedFromTime` and `insertedToTime`).\n\n⚠️**Important**:\n\n- For fetching data points, either a `resourceId` or `metricDescriptorId` must be provided, not both.\n- When providing a time range filter, either `fromTime` and `toTime` or `insertedFromTime` and `insertedToTime` must be provided, not both. Note that filtering by time range is optional.\n\n📄**Pagination**:\n\n- The response is paginated. For fetching the next page, make a request to the URL returned in the `next` field of the response. If the `next` field is `null`, it means that there are no more pages to fetch.","operationId":"raw_data_points_v1beta_telemetry_data_points_raw_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metricDescriptorId","in":"query","required":false,"schema":{"type":"string","description":"Filter results by Metric Descriptor ID.","examples":["63e3de2377e71f6b12fec203"],"title":"Metricdescriptorid"},"description":"Filter results by Metric Descriptor ID."},{"name":"resourceId","in":"query","required":false,"schema":{"type":"string","description":"Filter results by Resource ID.","examples":["637ee4b15d7b9532ba2b34cc"],"title":"Resourceid"},"description":"Filter results by Resource ID."},{"name":"fromTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Filter results by the datetime of the data.","examples":["2022-12-04T12:33:11.123Z"],"title":"Fromtime"},"description":"Filter results by the datetime of the data."},{"name":"toTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Filter results by the datetime of the data.","examples":["2022-12-05T12:33:11.123Z"],"title":"Totime"},"description":"Filter results by the datetime of the data."},{"name":"insertedFromTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Filter results by the date the data was inserted.","examples":["2022-12-04T12:33:11.123Z"],"title":"Insertedfromtime"},"description":"Filter results by the date the data was inserted."},{"name":"insertedToTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Filter results by the date the data was inserted.","examples":["2022-12-05T12:33:11.123Z"],"title":"Insertedtotime"},"description":"Filter results by the date the data was inserted."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":15000,"exclusiveMinimum":0,"description":"Number of results to return.","examples":[1000],"default":15000,"title":"Limit"},"description":"Number of results to return."},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","description":"Token for fetching the next page.","examples":["64da85b633d2c129d934fec1"],"title":"Pagetoken"},"description":"Token for fetching the next page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"metricDescriptorId":{"type":"string","title":"Metricdescriptorid","examples":["67890abcdef1234567890abc"]},"resourceId":{"type":"string","title":"Resourceid","examples":["56789abcdef1234567890abc"]},"displayName":{"additionalProperties":{"type":"string"},"type":"object","title":"Displayname","examples":[{"en":"Metric Name","es":"Nombre de la métrica","fr":"Nom de la métrique","pt":"Nome da métrica"}]},"attributes":{"type":"object","title":"Attributes","examples":[{"axis":"x","physicalQuantity":"acceleration"}]},"unit":{"type":"string","title":"Unit","examples":["g","m/s"]},"dataPoints":{"items":{"properties":{"datetime":{"type":"string","format":"date-time","title":"Datetime","description":"The data acquisition datetime. It must be in the **ISO8601** format             with the timezone."},"value":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"}],"title":"Value","description":"Metric descriptor data point value. Its type must match the type             configured in the metric descriptor.","examples":[1.23]}},"type":"object","required":["datetime","value"],"title":"DataPoint","description":"Telemetry Data Points model representation."},"type":"array","title":"Datapoints"}},"type":"object","required":["metricDescriptorId","resourceId","displayName","attributes","unit","dataPoints"],"title":"Telemetry","description":"Raw telemetry data points model representation.\nThe model includes the metric descriptor information and the data points."},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next","description":"Token for fetching the next page.","examples":["https://api.dynamox.solutions/v1/telemetry/data-points/raw?resourceId=637ee4b15d7b9532ba2b34cc&fromTime=2024-04-16T00%3A00%3A00.000Z&toTime=2024-04-20T00%3A00%3A00.000Z&pageToken=64fb25ccaf1d9d42563163bb"]}},"type":"object","required":["data","next"],"title":"RawDataPointsResponse","description":"Model for the raw data points endpoint response."}}}},"404":{"description":"Metric descriptor(s) not found.","content":{"application/json":{"examples":{"Not Found Metric Descriptor":{"value":{"message":"Metric Descriptor(s) not found."}},"Not Found Data Points":{"value":{"message":"There are no data points for the specified query parameters."}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/vibrating-screen/metric-groups":{"get":{"tags":["Asset Pro"],"summary":"List Metric Groups Id","description":"This endpoint retrieves the metric group ids from a machine within a time range. It returns up to 1500 ids in descending order of the timestamp.","operationId":"list_metric_groups_id_v1_vibrating_screen_metric_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assetId","in":"query","required":true,"schema":{"type":"string","description":"The vibrating screen id.","title":"Assetid"},"description":"The vibrating screen id."},{"name":"fromTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Specifies the earliest time from which the data should be considered. The format shoud be yyyy-mm-ddTHH:MM:SS.000Z.","examples":["2021-02-25T16:19:00.000Z"],"title":"Fromtime"},"description":"Specifies the earliest time from which the data should be considered. The format shoud be yyyy-mm-ddTHH:MM:SS.000Z."},{"name":"toTime","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Specifies the latest time up to which the data should be considered. The format shoud be yyyy-mm-ddTHH:MM:SS.000Z.","examples":["2021-02-25T16:19:00.000Z"],"title":"Totime"},"description":"Specifies the latest time up to which the data should be considered. The format shoud be yyyy-mm-ddTHH:MM:SS.000Z."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"metricGroupId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","title":"Metricgroupid","description":"Unique identification of the metric group.","examples":["633bba53903024a2ef940d41"]},"timestamp":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3}Z|\\+00:00)$","title":"Timestamp","description":"Timestamp for the metric group.","examples":["2021-02-25T16:19:00.000Z"]}},"type":"object","required":["metricGroupId","timestamp"],"title":"GetMetricGroupIdsResponse","description":"Base model of metric group id response."},"title":"Response 200 List Metric Groups Id V1 Vibrating Screen Metric Groups Get"},"example":[{"metricGroupId":"66c8dd319b726bb5b79ac4a3","timestamp":"2024-08-23T19:07:22.000Z"},{"metricGroupId":"66c8cda29b726bb5b79ac49a","timestamp":"2024-08-23T17:58:03.000Z"},{"metricGroupId":"66c8cca29b726bb5b79ac499","timestamp":"2024-08-23T17:53:54.000Z"},{"metricGroupId":"66c8ca4d9b726bb5b79ac498","timestamp":"2024-08-23T17:52:17.000Z"}]}}},"401":{"content":{"application/json":{"example":{"detail":"Not Authenticated."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"examples":{"default":{"value":{"detail":"Not Found."}}},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Not Found"},"403":{"content":{"application/json":{"example":{"detail":"User Not Authorized."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Forbidden"},"422":{"content":{"application/json":{"example":{"detail":"Unprocessable Entity."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unprocessable Entity"}}}},"/v1/vibrating-screen/metric-groups/{metricGroupId}/metrics":{"get":{"tags":["Asset Pro"],"summary":"List Metrics","description":"This endpoint retrieves the machine and spot metrics from a given machine group id.","operationId":"list_metrics_v1_vibrating_screen_metric_groups__metricGroupId__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metricGroupId","in":"path","required":true,"schema":{"type":"string","description":"The metric group id.","examples":["633bb698ff554b14a56f8c10"],"title":"Metricgroupid"},"description":"The metric group id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"anyOf":[{"properties":{"metricType":{"type":"string","enum":["spot","machine"],"title":"MetricType","description":"Metric types."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Value of the metric."},"attributes":{"properties":{"comparison":{"type":"string","enum":["leftRight","feedDischarge"],"title":"MachineComparison","description":"Machine comparison."},"metric":{"type":"string","enum":["angle","stroke","gForce","diagonalAngle","maxAcceleration","maxDisplacement","rpm"],"title":"MetricsName","description":"Machine Metrics Names."},"position":{"type":"string","enum":["feed","discharge","left","right"],"title":"Position","description":"Position in the machine."}},"type":"object","required":["metric"],"title":"MachineMetricsAttributes","description":"Machine metrics attributes structure."}},"type":"object","required":["metricType","value","attributes"],"title":"MachineMetricStructure","description":"Structure of the machine metrics."},{"properties":{"metricType":{"type":"string","enum":["spot","machine"],"title":"MetricType","description":"Metric types."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Value of the metric."},"attributes":{"properties":{"reference":{"type":"string","enum":["axial","horizontalVertical"],"title":"SpotReferences","description":"Spot references class."},"metric":{"type":"string","enum":["angle","stroke","gForce","diagonalAngle","maxAcceleration","maxDisplacement","rpm"],"title":"MetricsName","description":"Machine Metrics Names."}},"type":"object","required":["reference","metric"],"title":"SpotMetricsAttributes","description":"Spot metrics attributes structure."},"waveformId":{"type":"string","title":"Waveformid","description":"Id of the waveform related to the given spot id","examples":["633bb698ff554b14a56f8c10"]},"spotId":{"type":"string","title":"Spotid","description":"Id of the spot","examples":["633bb698ff554b14a56f8c10"]},"spotType":{"type":"string","enum":["leftHandDischargeEnd","rightHandDischargeEnd","rightHandFeedEnd","leftHandFeedEnd"],"title":"SpotTypeCamel","description":"Camelized spot types."}},"type":"object","required":["metricType","value","attributes","waveformId","spotId","spotType"],"title":"SpotMetricStructure","description":"Structure of the spot metrics."}]},"type":"array","title":"MetricsPublicAPIResponse","description":"Response from metrics endpoint from public endpoint api."},"example":[{"metricType":"machine","value":0.1310856335917301,"attributes":{"comparison":"leftRight","metric":"stroke","position":"feed"}},{"metricType":"machine","value":5.329005947744278,"attributes":{"comparison":"leftRight","metric":"angle","position":"feed"}},{"metricType":"machine","value":0.08853145399217285,"attributes":{"comparison":"leftRight","metric":"stroke","position":"discharge"}},{"metricType":"machine","value":2.0950340679904613,"attributes":{"comparison":"leftRight","metric":"angle","position":"discharge"}},{"metricType":"machine","value":0.1310856335917301,"attributes":{"comparison":"feedDischarge","metric":"stroke","position":"left"}},{"metricType":"machine","value":0.08853145399217285,"attributes":{"comparison":"feedDischarge","metric":"stroke","position":"right"}},{"metricType":"machine","value":5.329005947744278,"attributes":{"comparison":"feedDischarge","metric":"angle","position":"left"}},{"metricType":"machine","value":2.0950340679904613,"attributes":{"comparison":"feedDischarge","metric":"angle","position":"right"}},{"metricType":"machine","value":1.616985939876912,"attributes":{"metric":"diagonalAngle"}},{"metricType":"machine","value":840.7425000000001,"attributes":{"metric":"rpm"}},{"metricType":"spot","value":0.12723238156570396,"attributes":{"reference":"axial","metric":"maxAcceleration"},"waveformId":"66c5dca419cce10c88a01bfe","spotId":"661041798880519cd68ff5d8","spotType":"rightHandDischargeEnd"},{"metricType":"spot","value":0.1596347425263049,"attributes":{"reference":"axial","metric":"maxDisplacement"},"waveformId":"66c5dca419cce10c88a01bfe","spotId":"661041798880519cd68ff5d8","spotType":"rightHandDischargeEnd"},{"metricType":"spot","value":3.617323184564887,"attributes":{"reference":"horizontalVertical","metric":"gForce"},"waveformId":"66c5dca419cce10c88a01bfe","spotId":"661041798880519cd68ff5d8","spotType":"rightHandDischargeEnd"},{"metricType":"spot","value":9.14606211819598,"attributes":{"reference":"horizontalVertical","metric":"stroke"},"waveformId":"66c5dca419cce10c88a01bfe","spotId":"661041798880519cd68ff5d8","spotType":"rightHandDischargeEnd"},{"metricType":"spot","value":41.96351136028019,"attributes":{"reference":"horizontalVertical","metric":"angle"},"waveformId":"66c5dca419cce10c88a01bfe","spotId":"661041798880519cd68ff5d8","spotType":"rightHandDischargeEnd"},{"metricType":"spot","value":0.08922619467101209,"attributes":{"reference":"axial","metric":"maxAcceleration"},"waveformId":"66c5dcaaac3e1ae4c498d7b3","spotId":"6610433b888051030a9012fd","spotType":"rightHandFeedEnd"},{"metricType":"spot","value":0.11468163382812555,"attributes":{"reference":"axial","metric":"maxDisplacement"},"waveformId":"66c5dcaaac3e1ae4c498d7b3","spotId":"6610433b888051030a9012fd","spotType":"rightHandFeedEnd"},{"metricType":"spot","value":3.9383543670327184,"attributes":{"reference":"horizontalVertical","metric":"gForce"},"waveformId":"66c5dcaaac3e1ae4c498d7b3","spotId":"6610433b888051030a9012fd","spotType":"rightHandFeedEnd"},{"metricType":"spot","value":9.955776295822602,"attributes":{"reference":"horizontalVertical","metric":"stroke"},"waveformId":"66c5dcaaac3e1ae4c498d7b3","spotId":"6610433b888051030a9012fd","spotType":"rightHandFeedEnd"},{"metricType":"spot","value":44.05854542827065,"attributes":{"reference":"horizontalVertical","metric":"angle"},"waveformId":"66c5dcaaac3e1ae4c498d7b3","spotId":"6610433b888051030a9012fd","spotType":"rightHandFeedEnd"},{"metricType":"spot","value":0.08922619467101209,"attributes":{"reference":"axial","metric":"maxAcceleration"},"waveformId":"66c5dcbc19cce139cda01c00","spotId":"66104faff488b30d2ed7c9f3","spotType":"leftHandDischargeEnd"},{"metricType":"spot","value":0.11468163382812555,"attributes":{"reference":"axial","metric":"maxDisplacement"},"waveformId":"66c5dcbc19cce139cda01c00","spotId":"66104faff488b30d2ed7c9f3","spotType":"leftHandDischargeEnd"},{"metricType":"spot","value":3.9383543670327184,"attributes":{"reference":"horizontalVertical","metric":"gForce"},"waveformId":"66c5dcbc19cce139cda01c00","spotId":"66104faff488b30d2ed7c9f3","spotType":"leftHandDischargeEnd"},{"metricType":"spot","value":9.955776295822602,"attributes":{"reference":"horizontalVertical","metric":"stroke"},"waveformId":"66c5dcbc19cce139cda01c00","spotId":"66104faff488b30d2ed7c9f3","spotType":"leftHandDischargeEnd"},{"metricType":"spot","value":44.05854542827065,"attributes":{"reference":"horizontalVertical","metric":"angle"},"waveformId":"66c5dcbc19cce139cda01c00","spotId":"66104faff488b30d2ed7c9f3","spotType":"leftHandDischargeEnd"},{"metricType":"spot","value":0.09993707887711517,"attributes":{"reference":"axial","metric":"maxAcceleration"},"waveformId":"66c5dcc30e4e4f81f9843d99","spotId":"661053611b4c0cc61480184b","spotType":"leftHandFeedEnd"},{"metricType":"spot","value":0.12546471654429242,"attributes":{"reference":"axial","metric":"maxDisplacement"},"waveformId":"66c5dcc30e4e4f81f9843d99","spotId":"661053611b4c0cc61480184b","spotType":"leftHandFeedEnd"},{"metricType":"spot","value":4.457876290478246,"attributes":{"reference":"horizontalVertical","metric":"gForce"},"waveformId":"66c5dcc30e4e4f81f9843d99","spotId":"661053611b4c0cc61480184b","spotType":"leftHandFeedEnd"},{"metricType":"spot","value":11.260835539458036,"attributes":{"reference":"horizontalVertical","metric":"stroke"},"waveformId":"66c5dcc30e4e4f81f9843d99","spotId":"661053611b4c0cc61480184b","spotType":"leftHandFeedEnd"},{"metricType":"spot","value":49.387551376014926,"attributes":{"reference":"horizontalVertical","metric":"angle"},"waveformId":"66c5dcc30e4e4f81f9843d99","spotId":"661053611b4c0cc61480184b","spotType":"leftHandFeedEnd"}]}}},"401":{"content":{"application/json":{"example":{"detail":"Not Authenticated."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"examples":{"default":{"value":{"detail":"Not Found."}}},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Not Found"},"403":{"content":{"application/json":{"example":{"detail":"User Not Authorized."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Forbidden"},"422":{"content":{"application/json":{"example":{"detail":"Unprocessable Entity."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unprocessable Entity"}}}},"/v1/vibrating-screen/metric-groups/{metricGroupId}/orbits":{"get":{"tags":["Asset Pro"],"summary":"Get Orbits From Metric Group Id","description":"Get orbits from a metric group id.","operationId":"get_orbits_from_metric_group_id_v1_vibrating_screen_metric_groups__metricGroupId__orbits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metricGroupId","in":"path","required":true,"schema":{"type":"string","description":"The metric group id.","examples":["633bb698ff554b14a56f8c10"],"title":"Metricgroupid"},"description":"The metric group id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"leftHandDischargeEnd":{"properties":{"horizontal":{"items":{"type":"number"},"type":"array","title":"Horizontal","description":"Orbit horizontal signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]},"vertical":{"items":{"type":"number"},"type":"array","title":"Vertical","description":"Orbit vertical signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]}},"type":"object","required":["horizontal","vertical"],"title":"SpotOrbitPublic","description":"Request model for the get orbit endpoint."},"rightHandDischargeEnd":{"properties":{"horizontal":{"items":{"type":"number"},"type":"array","title":"Horizontal","description":"Orbit horizontal signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]},"vertical":{"items":{"type":"number"},"type":"array","title":"Vertical","description":"Orbit vertical signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]}},"type":"object","required":["horizontal","vertical"],"title":"SpotOrbitPublic","description":"Request model for the get orbit endpoint."},"rightHandFeedEnd":{"properties":{"horizontal":{"items":{"type":"number"},"type":"array","title":"Horizontal","description":"Orbit horizontal signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]},"vertical":{"items":{"type":"number"},"type":"array","title":"Vertical","description":"Orbit vertical signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]}},"type":"object","required":["horizontal","vertical"],"title":"SpotOrbitPublic","description":"Request model for the get orbit endpoint."},"leftHandFeedEnd":{"properties":{"horizontal":{"items":{"type":"number"},"type":"array","title":"Horizontal","description":"Orbit horizontal signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]},"vertical":{"items":{"type":"number"},"type":"array","title":"Vertical","description":"Orbit vertical signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]}},"type":"object","required":["horizontal","vertical"],"title":"SpotOrbitPublic","description":"Request model for the get orbit endpoint."}},"type":"object","required":["leftHandDischargeEnd","rightHandDischargeEnd","rightHandFeedEnd","leftHandFeedEnd"],"title":"PublicOrbitResponse","description":"Response model for the public get orbit endpoint."}}}},"401":{"content":{"application/json":{"example":{"detail":"Not Authenticated."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"examples":{"default":{"value":{"detail":"Not Found."}}},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Not Found"},"403":{"content":{"application/json":{"example":{"detail":"User Not Authorized."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Forbidden"},"422":{"content":{"application/json":{"example":{"detail":"Unprocessable Entity."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unprocessable Entity"}}}},"/v1/vibrating-screen/waveforms/{waveformId}/orbit-analysis":{"get":{"tags":["Asset Pro"],"summary":"Get Metrics And Orbit From Waveform Id","description":"Get metrics and orbit from a waveform id.\n\nThis endpoint will check the sanity of waveform, and will check if the spot,\nvibrating screen and suspension exist. If any of these checks fail, an error will be returned.","operationId":"get_metrics_and_orbit_from_waveform_id_v1_vibrating_screen_waveforms__waveformId__orbit_analysis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"waveformId","in":"path","required":true,"schema":{"type":"string","description":"The waveform id.","examples":["633bb698ff554b14a56f8c10"],"title":"Waveformid"},"description":"The waveform id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"orbit":{"properties":{"horizontal":{"items":{"type":"number"},"type":"array","title":"Horizontal","description":"Orbit horizontal signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]},"vertical":{"items":{"type":"number"},"type":"array","title":"Vertical","description":"Orbit vertical signal.","examples":[[0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0]]}},"type":"object","required":["horizontal","vertical"],"title":"SpotOrbitPublic","description":"Request model for the get orbit endpoint."},"metrics":{"items":{"properties":{"metricType":{"type":"string","enum":["spot","machine"],"title":"MetricType","description":"Metric types."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Value of the metric."},"attributes":{"properties":{"reference":{"type":"string","enum":["axial","horizontalVertical"],"title":"SpotReferences","description":"Spot references class."},"metric":{"type":"string","enum":["angle","stroke","gForce","diagonalAngle","maxAcceleration","maxDisplacement","rpm"],"title":"MetricsName","description":"Machine Metrics Names."}},"type":"object","required":["reference","metric"],"title":"SpotMetricsAttributes","description":"Spot metrics attributes structure."},"waveformId":{"type":"string","title":"Waveformid","description":"Id of the waveform related to the given spot id","examples":["633bb698ff554b14a56f8c10"]},"spotId":{"type":"string","title":"Spotid","description":"Id of the spot","examples":["633bb698ff554b14a56f8c10"]},"spotType":{"type":"string","enum":["leftHandDischargeEnd","rightHandDischargeEnd","rightHandFeedEnd","leftHandFeedEnd"],"title":"SpotTypeCamel","description":"Camelized spot types."}},"type":"object","required":["metricType","value","attributes","waveformId","spotId","spotType"],"title":"SpotMetricStructure","description":"Structure of the spot metrics."},"type":"array","title":"Metrics"}},"type":"object","required":["orbit","metrics"],"title":"MetricsAndOrbitFromWaveformPublic","description":"Orbit by waveform public adapter.","examples":[{"metrics":[{"attributes":{"metric":"maxAcceleration","reference":"axial"},"metricType":"spot","spotId":"6413403bc0461c1a476bfbb7","spotType":"rightHandFeedEnd","value":0.08266244653045277,"waveformId":"664fa2fdf2860e024bb566f5"},{"attributes":{"metric":"maxDisplacement","reference":"axial"},"metricType":"spot","spotId":"6413403bc0461c1a476bfbb7","spotType":"rightHandFeedEnd","value":0.0001798212516405929,"waveformId":"664fa2fdf2860e024bb566f5"},{"attributes":{"metric":"gForce","reference":"horizontalVertical"},"metricType":"spot","spotId":"6413403bc0461c1a476bfbb7","spotType":"rightHandFeedEnd","value":0.06346606980215673,"waveformId":"664fa2fdf2860e024bb566f5"},{"attributes":{"metric":"stroke","reference":"horizontalVertical"},"metricType":"spot","spotId":"6413403bc0461c1a476bfbb7","spotType":"rightHandFeedEnd","value":0.00033528771636135053,"waveformId":"664fa2fdf2860e024bb566f5"},{"attributes":{"metric":"angle","reference":"horizontalVertical"},"metricType":"spot","spotId":"6413403bc0461c1a476bfbb7","spotType":"rightHandFeedEnd","value":90.0,"waveformId":"664fa2fdf2860e024bb566f5"}],"orbit":{"horizontal":[7.715164761737457e-05,3.3822193110115595e-05,-4.035846055814473e-05,-9.393950216939279e-05,-8.633796836700434e-05,-1.748468925555884e-05,7.000983235203559e-05,0.00011830465265964757],"vertical":[7.715164761737457e-05,3.3822193110115595e-05,-4.035846055814473e-05,-9.393950216939279e-05,-8.633796836700434e-05,-1.748468925555884e-05,7.000983235203559e-05,0.00011830465265964757]}}]}}}},"400":{"content":{"application/json":{"example":{"detail":"Bad Request."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Bad Request"},"401":{"content":{"application/json":{"example":{"detail":"Not Authenticated."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"examples":{"default":{"value":{"detail":"User Not Authorized."}},"machineUnauthorized":{"value":{"detail":"Vibrating screen not activated or not active on AssetPro."}}},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Forbidden"},"422":{"content":{"application/json":{"example":{"detail":"Unprocessable Entity."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"examples":{"default":{"value":{"detail":"Not Found."}},"spotNotFound":{"value":{"detail":"The spot associated with the spectral does not exist or is incorrectly configured. Check if spot exists, then if monitoring point is one of [left-hand-feed-end, right-hand-feed-end, left-hand-discharge-end, right-hand-discharge-end], and if its axes are horizontal, vertical and axial."}},"invalidSpotAxis":{"value":{"detail":"The spot associated with the spectral has invalid axes. Check if spot's axes are: 'horizontal', 'vertical' and 'axial'."}},"notTriaxialSimultaneous":{"value":{"detail":"Data is not triaxial and simultaneous."}},"vibratingScreenNotFound":{"value":{"detail":"The machine associated with the spectral does not exist or is incorrectly configured. Check if machine exists, then if it is configured as vibrating screen and if it has no module associated with it."}},"suspensionNotFound":{"value":{"detail":"The suspension subset or component associated with the spectral does not exist or is incorrectly configured. Check if subset or component exists, then if it is configured as vibrating screen suspension and if it has no module associated with it."}},"clippedWaveform":{"value":{"detail":"Waveform sanity error: waveform is clipped. Check spot's dynamic range."}},"idleMachine":{"value":{"detail":"Waveform sanity error: waveform is from an idle machine."}}},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"_ResponseErrorModel","description":"Base model for response errors."}}},"description":"Not Found"}}}},"/v1/workspaces/{id}/spots-connectivity":{"get":{"tags":["Spots And Gateways Connectivity"],"summary":"Get Spots Connectivity","description":"List spots connectivity status by workspace :id","operationId":"index_v1_spots_connectivity_get","security":[{"HTTPBearer":[]}],"parameters":[{"required":true,"schema":{"type":"string","title":"id","description":"Workspace ID"},"name":"id","in":"path"},{"required":false,"schema":{"type":"string","title":"limit","description":"Limit of spots to return"},"name":"limit","in":"query"},{"required":false,"schema":{"type":"string","title":"pageToken","description":"Next page of spots to return"},"name":"pageToken","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"id"},"name":{"type":"string","title":"name"},"breadcrumb":{"items":{"properties":{"resourceId":{"type":"string","title":"resourceId"},"resourceName":{"type":"string","title":"resourceName"},"resourceType":{"type":"string","title":"resource_type"}},"type":"object","required":["resourceId","resourceName","resourceType"],"title":"Resource Breadcrumb","description":"Definition model to resource breadcrumb response","examples":[{"resourceId":11111111111,"resourceName":"Spot 1","resourceType":"spot"}]},"type":"array","title":"breadcrumb"},"gatewayAssociated":{"type":"string","title":"Gateway Associated"},"lastCollectionInfo":{"properties":{"collectedAt":{"type":"string","title":"Collected at"},"collectionAgent":{"type":"string","title":"Collection Agent"}},"type":"object","required":["collectedAt","collectionAgent"],"title":"Spot Last Collection Info","description":"Definition model to Spot Last Collection Info"},"rssi":{"type":"number","title":"rssi"}},"type":"array","title":"Spots Connectivity","description":"Definition model to spots connectivity response","examples":[{"data":[{"id":11111111111,"name":"Spot 1","breadcrumb":[{"resourceId":11111111111,"resourceName":"Spot 1","resourceType":"spot"}],"gatewayAssociated":"Gateway 1","lastCollectionInfo":{"collectedAt":"2021-01-01T00:00:00Z","collectionAgent":"Gateway 1"},"rssi":-80.0}],"pageToken":"https://api.dynamox.solutions/v1/workspaces/11111111111111/spots-connectivity?limit=10&pageToken=4444444444444"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/workspaces/{id}/gateways-connectivity":{"get":{"tags":["Spots And Gateways Connectivity"],"summary":"Get Gateways Connectivity","description":"Get gateways connectivity status by worskpace :id","operationId":"index_v1_gateways_connectivity_get","security":[{"HTTPBearer":[]}],"parameters":[{"required":true,"schema":{"type":"string","title":"id","description":"Workspace ID"},"name":"id","in":"path"},{"required":false,"schema":{"type":"string","title":"limit","description":"Limit of gateways to return"},"name":"limit","in":"query"},{"required":false,"schema":{"type":"string","title":"pageToken","description":"Next page of spots to return"},"name":"pageToken","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"id"},"name":{"type":"string","title":"name"},"breadcrumb":{"items":{"properties":{"resourceId":{"type":"string","title":"resourceId"},"resourceName":{"type":"string","title":"resourceName"},"resourceType":{"type":"string","title":"resource_type"}},"type":"object","required":["resourceId","resourceName","resourceType"],"title":"Resource Breadcrumb","description":"Definition model to resource breadcrumb response","examples":[{"resourceId":11111111111,"resourceName":"Spot 1","resourceType":"spot"}]},"type":"array","title":"breadcrumb"},"spotsAssociatedQuantity":{"type":"integer","title":"Spots Associated Quantity"},"lastOnlineStatus":{"type":"string","title":"Last Online Status date"},"lastCollection":{"type":"string","title":"Last Collection date"}},"type":"array","title":"Gateways Connectivity","description":"Definition model to Gateways Connectivity","examples":[{"data":[{"id":"22222222","name":"Gateway 1","breadcrumb":[{"resourceId":11111111111,"resourceName":"resource 1","resourceType":"resource_type 1"},{"resourceId":22222222222,"resourceName":"resource 2","resourceType":"resource_type 2"}],"spotsAssociatedQuantity":10,"lastOnlineStatus":"2020-01-01T00:00:00Z","lastCollection":"2020-01-01T00:00:00Z"}],"pageToken":"https://api.dynamox.solutions/v1/workspaces/11111111111111/gateways-connectivity?limit=10&pageToken=5555555555555"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/workspaces/{id}/gateways-status":{"get":{"tags":["Spots And Gateways Connectivity"],"summary":"Get Gateways Status Summary","description":"Get gateways connectivity online/offline by worskpace :id","operationId":"index_v1_gateways_status_summary_get","parameters":[{"required":true,"schema":{"type":"string","title":"id","description":"Workspace ID"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"online":{"type":"integer","title":"Online"},"offline":{"type":"integer","title":"Offline"}},"type":"object","required":["online","offline"],"title":"Gateways ConnectivityStatus","description":"Quantity of online and offline gateways","examples":[{"online":10,"offline":0}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/workspaces/{workspaceId}":{"get":{"tags":["Workspace"],"summary":"Get Workspace","description":"This endpoint returns workspace data given its `workspaceId`.","operationId":"get_workspace_v1_workspaces__workspaceId__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","description":"Workspace unique identifier","title":"Workspaceid"},"description":"Workspace unique identifier"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"_id":{"type":"string","title":" Id","description":"Workspace unique identifier.","examples":["66f55f587ace5494d77bd505","66f55f587ace5494d77bp41n"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Workspace friendly name.","examples":["South Plant","North Corridor"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Workspace description.","examples":["Power Generation A","Mining Area B"]},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentid","description":"Parent identifier.","examples":[null,"637f473bfd389629e664f71e"]}},"type":"object","required":["_id","name","description","parentId"],"title":"Workspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/workspaces":{"get":{"tags":["Workspace"],"summary":"List Workspaces","description":"This endpoint returns the list of direct children workspaces given its `parentId`","operationId":"list_workspaces_v1_workspaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parentId","in":"query","required":true,"schema":{"type":"string","description":"Parent unique identifier","title":"Parentid"},"description":"Parent unique identifier"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination token","title":"Pagetoken"},"description":"Pagination token"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"description":"Limit of results per consultion","default":20,"title":"Limit"},"description":"Limit of results per consultion"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"docs":{"items":{"properties":{"_id":{"type":"string","title":" Id","description":"Workspace unique identifier.","examples":["66f55f587ace5494d77bd505","66f55f587ace5494d77bp41n"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Workspace friendly name.","examples":["South Plant","North Corridor"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Workspace description.","examples":["Power Generation A","Mining Area B"]},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentid","description":"Parent identifier.","examples":[null,"637f473bfd389629e664f71e"]}},"type":"object","required":["_id","name","description","parentId"],"title":"Workspace"},"type":"array","title":"Docs"},"items":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"maxSupportedTotalCount":{"type":"integer","title":"Maxsupportedtotalcount"},"nextPageToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextpagetoken"}},"type":"object","required":["total","limit","maxSupportedTotalCount","nextPageToken"],"title":"PaginatedItems"}},"type":"object","required":["docs","items"],"title":"PaginatedResponse[Workspace]"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/pims/{workspaceId}/tags":{"get":{"tags":["PIMS"],"summary":"List tags","description":"### Returns a paginated list of tags for a specific workspace\n\nThis endpoint provides access to all tags that have been mapped and configured for data integration with the Dynamox platform. It supports advanced filtering, searching, and sorting capabilities to help you efficiently navigate through large TAG datasets.\n\n**Key Features:**\n- Pagination support for handling large TAG lists\n- Status-based filtering (connected, disconnected, etc.)\n- Partial name search with case-insensitive matching\n- Flexible sorting by tag, status, or last sync time\n\n**Usage Tips:**\n- Use the `status` filter to find TAGs in specific states\n- Combine `search` with `status` for precise TAG discovery\n- Adjust `limit` based on your application's pagination needs","operationId":"list_pi_tags_paginated_v1_pims__workspaceId__tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{24}$","title":"Workspace ID","description":"Unique identifier of the client's workspace on the Dynamox platform","examples":["688a665e4dd0ef01db8605cb"]},"description":"Unique identifier of the client's workspace on the Dynamox platform"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["connected","disconnected","failure","noConfiguration","processing"],"title":"MappingStatus","description":"Model for mapping status."},{"type":"null"}],"title":"Syncronization Status","description":"Optional filter by TAG mapping status. Use to find TAGs in specific states.","examples":["connected","noConfiguration","failure"]},"description":"Optional filter by TAG mapping status. Use to find TAGs in specific states."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search by Tag","description":"Partial search by TAG (case-insensitive). Useful for finding specific TAGs when you know part of the name.","examples":["TI-401"]},"description":"Partial search by TAG (case-insensitive). Useful for finding specific TAGs when you know part of the name."},{"name":"sortField","in":"query","required":false,"schema":{"type":"string","enum":["tag","status","lastSync"],"title":"Sort Field","description":"Field used for sorting the TAG list. Allows organizing results by different criteria.","examples":["tag","status","lastSync"],"default":"tag"},"description":"Field used for sorting the TAG list. Allows organizing results by different criteria."},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":-1,"title":"Sort Direction","description":"Sort direction: 1 for ascending (A-Z), -1 for descending (Z-A).","default":1},"description":"Sort direction: 1 for ascending (A-Z), -1 for descending (Z-A)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"title":"Page","description":"Page number, starting from 1. Use to navigate through paginated results.","default":1},"description":"Page number, starting from 1. Use to navigate through paginated results."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"title":"Limit per Page","description":"Number of items per page. Controls how many TAGs are returned in each request.","default":20},"description":"Number of items per page. Controls how many TAGs are returned in each request."}],"responses":{"200":{"description":"TAG list returned successfully. Contains pagination information and available TAG data.","content":{"application/json":{"schema":{"properties":{"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Link","description":"Link to the next page of results, if available. Use this URL to navigate to the next set of TAGs."},"previous":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Page Link","description":"Link to the previous page of results, if available. Use this URL to navigate to the previous set of TAGs."},"values":{"items":{"properties":{"mappingId":{"type":"string","title":"Mapping ID","description":"Unique identifier of the tag mapping, representing the internal object used to associate a tag from the client with a measurement source in the Dynamox platform."},"tag":{"type":"string","title":"Tag","description":"Tag in the external system. This is the identifier used to reference the tag when sending telemetry data."},"status":{"type":"string","enum":["connected","disconnected","failure","noConfiguration","processing"],"title":"Mapping Status","description":"Current synchronization status of the tag mapping."},"lastSync":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync Timestamp","description":"Timestamp of the last successful data synchronization with the external system."}},"type":"object","required":["mappingId","tag","status"],"title":"PITagListingItem","description":"Public model representing a simplified tag mapping.\nThis model is used specifically for listing available tags through the public PIMS API."},"type":"array","title":"TAG Mappings","description":"List of TAG mappings for the current page. Contains detailed information about each tag."}},"type":"object","title":"PaginatedPITagResponse","description":"Model for paginated response of TAG mappings.\nIncludes navigation between pages and list of TAGs from current page.","example":{"next":"https://testserver/v1/pims/688a424a9ba0af114f92010d/tags?page=3","previous":"https://testserver/v1/pims/688a424a9ba0af114f92010d/tags?page=1","values":[{"lastSync":"2025-06-30T13:46:06.857Z","mappingId":"688a424a9ba0af114f92010c","status":"connected","tag":"TAG1"},{"lastSync":"2025-06-30T13:46:06.857Z","mappingId":"688a424a9ba0af114f92011c","status":"connected","tag":"TAG2"}]}}}}},"400":{"description":"Invalid filter or pagination parameters. Check if values are within allowed limits.","content":{"application/json":{"example":{"detail":"Invalid filter or pagination parameters. Check if values are within allowed limits."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"403":{"description":"User does not have permission to access this workspace. Check your credentials and permissions.","content":{"application/json":{"example":{"detail":"User does not have permission to access this workspace. Check your credentials and permissions."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"404":{"description":"No TAGs found for the specified workspace. Check if the workspace_id is correct and if there are configured TAGs.","content":{"application/json":{"example":{"detail":"No TAGs found for the specified workspace. Check if the workspace_id is correct and if there are configured TAGs."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"422":{"description":"Validation error in provided parameters. Check the format and values of request parameters.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"500":{"description":"Internal server error while fetching TAG mappings. Try again later or contact support.","content":{"application/json":{"example":{"detail":"An unexpected error occurred"},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}}}}},"/v1/pims/{workspaceId}/data-points":{"post":{"tags":["PIMS"],"summary":"Ingest tag data points","description":"### Receives and processes telemetry data for a specific tag\n\nThis endpoint allows sending telemetry data points collected from the client's tag to the Dynamox platform. Data is processed asynchronously and integrated into monitoring and analysis systems.\n\n**Features:**\n- Asynchronous processing of received data\n- Automatic data quality validation\n- Support for multiple data points in a single request\n- Preservation of tag quality flags\n\n**Processing Flow:**\n1. Tag validation and workspace permissions\n2. Data structure and quality verification\n3. Queuing for asynchronous processing\n4. Integration with Dynamox analysis systems\n\n⚠️ **Requirements:**\n- Timestamps must be in ISO 8601 format\n\n💡 **Tip:** Use the GET endpoint to check if the tag is available before sending data.","operationId":"ingest_pi_tag_data_points_v1_pims__workspaceId__data_points_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{24}$","title":"Workspace ID","description":"Unique identifier of the client's workspace on the Dynamox platform","examples":["workspace-abc123"]},"description":"Unique identifier of the client's workspace on the Dynamox platform"},{"name":"tag","in":"query","required":true,"schema":{"type":"string","title":"Tag","description":"Tag in the client's system. This is the identifier used to reference the tag when sending telemetry data.","examples":["TI-401A.PV"]},"description":"Tag in the client's system. This is the identifier used to reference the tag when sending telemetry data."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"properties":{"Timestamp":{"type":"string","title":"Timestamp","description":"Timestamp representing when the measurement was collected."},"Value":{"type":"number","title":"Value","description":"Numeric measurement value recorded for the specified tag."},"UnitsAbbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unitsabbreviation","description":"Abbreviation of the unit in which the value is measured (e.g., °C, mm/s)."},"Good":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Good","description":"Indicates whether the data point was marked as valid ('good') by the tag."},"Questionable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Questionable","description":"Indicates whether the value was flagged as questionable due to potential data issues."},"Substituted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Substituted","description":"Indicates whether the data point was automatically substituted by the tag."},"Annotated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Annotated","description":"Indicates whether the data point contains annotations (comments or metadata)."}},"type":"object","required":["Timestamp","Value"],"title":"PITag","description":"Represents a telemetry data point received from an external tag.\n\nThis model is used to ingest raw tag data into the Dynamox platform through\nthe PIMS integration. Each data point corresponds to a specific measurement\nvalue at a given timestamp, along with optional metadata regarding data quality.","example":{"Annotated":false,"Good":true,"Questionable":false,"Substituted":false,"Timestamp":"1970-01-01T00:00:00Z","UnitsAbbreviation":"kW","Value":753305.84}},"title":"Telemetry Data Points","description":"List of telemetry data points to be ingested. Each item must follow the tag format with timestamp, value and quality flags."}}}},"responses":{"202":{"description":"Data points were successfully integrated into the Dynamox platform. Returns confirmation message with tag information and data points count.","content":{"application/json":{"schema":{"properties":{"message":{"type":"string","title":"Success Message","description":"Confirmation message indicating that the tag data points were successfully received and integrated into the Dynamox platform."},"tag":{"type":"string","title":"Tag","description":"The tag identifier for which data was ingested."},"dataPointsCount":{"type":"integer","title":"Data Points Count","description":"Number of telemetry data points that were successfully received.","default":0}},"type":"object","required":["message","tag"],"title":"TagIngestionResponse","description":"Response model for successful tag data ingestion.","example":{"dataPointsCount":10,"message":"Data points ingested successfully.","tag":"TAG1"}}}}},"403":{"description":"User does not have permission to access this workspace or send data to this TAG. Check your credentials and permissions.","content":{"application/json":{"example":{"detail":"User does not have permission to access this workspace or send data to this TAG. Check your credentials and permissions."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"404":{"description":"Mapping not found for the specified TAG. Check if the TAG is correctly configured and mapped in the workspace.","content":{"application/json":{"example":{"detail":"Mapping not found for the specified TAG. Check if the TAG is correctly configured and mapped in the workspace."},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"422":{"description":"Invalid mapping data or malformed payload. Check if data is in correct tag format and all required fields are present.","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}},"500":{"description":"Internal server error during data processing. Try again later or contact support if the problem persists.","content":{"application/json":{"example":{"detail":"An unexpected error occurred"},"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Response for unauthorized access."}}}}}}},"/v1/technical-reports":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Reports","description":"List technical reports","operationId":"index_v1_technical_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"required":true,"schema":{"type":"string","title":"Contextid","description":"Workspace ID"},"name":"contextId","in":"query"},{"required":true,"schema":{"type":"string","format":"date-time","title":"startAt","description":"Datetime in format yyyy-mm-ddTHH:MM:SS.000Z"},"name":"startAt","in":"query"},{"required":true,"schema":{"type":"string","format":"date-time","title":"endAt","description":"Datetime in format yyyy-mm-ddTHH:MM:SS.000Z"},"name":"endAt","in":"query"},{"required":false,"schema":{"items":{"type":"string","enum":["a1","a2","no-alert"],"title":"TechnicalReportAlertLevel","description":"Definition enum alert level"},"type":"array"},"name":"alertLevel","in":"query"},{"required":false,"schema":{"items":{"type":"string","enum":["p0","p1","p2","p3","p4","p5","p6","p7","p8"],"title":"TechnicalReportCriticality","description":"Definition enum criticality"},"type":"array"},"name":"criticality","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Failures"},"name":"failures","in":"query"},{"required":false,"schema":{"items":{"type":"string","enum":["closed","in_progress","open"],"title":"TechnicalReportStatus","description":"Definition enum status"},"type":"array"},"name":"status","in":"query"},{"required":false,"schema":{"items":{"type":"string","enum":["predictive","sensitive"],"title":"TechnicalReportType","description":"Definition enum type"},"type":"array"},"name":"types","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Users"},"name":"users","in":"query"},{"required":false,"schema":{"allOf":[{"type":"string","enum":["alertLevel","createdAt","criticality","deadline","diagnostic","failures","reportedAt","resource.name","status","type","user.email"],"title":"TechnicalReportSort","description":"Definition enum sort"}],"default":"reportedAt"},"name":"sort","in":"query"},{"required":false,"schema":{"type":"integer","title":"Direction","default":1},"name":"direction","in":"query"},{"required":false,"schema":{"type":"integer","minimum":1,"title":"Page","default":1},"name":"page","in":"query"},{"required":false,"schema":{"type":"integer","minimum":1,"title":"Limit","default":50},"name":"limit","in":"query"},{"required":false,"schema":{"type":"string","title":"Search"},"example":"user name or email","name":"search","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Workspaces"},"name":"workspaces","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Machines"},"name":"machines","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Subsets"},"name":"subsets","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Components"},"name":"components","in":"query"},{"required":false,"schema":{"items":{"type":"string"},"type":"array","title":"Spots"},"name":"spots","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"filter":{"properties":{"alertLevel":{"items":{"type":"string","enum":["a1","a2","no-alert"],"title":"TechnicalReportAlertLevel","description":"Definition enum alert level"},"type":"array"},"components":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Components"},"criticality":{"items":{"type":"string","enum":["p0","p1","p2","p3","p4","p5","p6","p7","p8"],"title":"TechnicalReportCriticality","description":"Definition enum criticality"},"type":"array"},"endAt":{"type":"string","format":"date-time","title":"Endat"},"failures":{"items":{},"type":"array","title":"Failures"},"machines":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Machines"},"search":{"type":"string","title":"Search"},"spots":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Spots"},"startAt":{"type":"string","format":"date-time","title":"Startat"},"status":{"items":{"type":"string","enum":["closed","in_progress","open"],"title":"TechnicalReportStatus","description":"Definition enum status"},"type":"array"},"subsets":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Subsets"},"types":{"items":{"type":"string","enum":["predictive","sensitive"],"title":"TechnicalReportType","description":"Definition enum type"},"type":"array"},"users":{"items":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"type":"array","title":"Users"},"workspaces":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Workspaces"}},"type":"object","required":["users"],"title":"PaginatedTechnicalReportFilter","description":"Definition model PaginatedTechnicalReportFilter"},"items":{"type":"object","title":"Items"},"docs":{"items":{"anyOf":[{"properties":{"_id":{"type":"string","title":" Id"},"accelerationChartComment":{"type":"string","title":"Accelerationchartcomment"},"action":{"type":"string","title":"Action"},"alertLevel":{"type":"string","enum":["a1","a2","no-alert"],"title":"TechnicalReportAlertLevel","description":"Definition enum alert level"},"alertLevelIndex":{"type":"integer","title":"Alertlevelindex"},"breadcrumb":{"items":{"properties":{"resourceId":{"type":"string","title":"Resourceid"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"}},"type":"object","required":["resourceId","name","type"],"title":"Breadcrumb","description":"Definition attribute model breadcrumb"},"type":"array","title":"Breadcrumb"},"chart":{"properties":{"visualizationOptions":{"items":{},"type":"array","title":"Visualizationoptions"},"acelerationRMS":{"type":"boolean","title":"Acelerationrms","default":false},"temperature":{"type":"boolean","title":"Temperature","default":false},"velocityRMS":{"type":"boolean","title":"Velocityrms","default":false},"startedAt":{"type":"string","format":"date-time","title":"Startedat"},"finishedAt":{"type":"string","format":"date-time","title":"Finishedat"}},"type":"object","required":["visualizationOptions","startedAt","finishedAt"],"title":"Chart","description":"Definition attribute model chart"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"criticality":{"type":"string","enum":["p0","p1","p2","p3","p4","p5","p6","p7","p8"],"title":"TechnicalReportCriticality","description":"Definition enum criticality"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"deleted":{"type":"boolean","title":"Deleted","default":false},"deletedAt":{"type":"string","format":"date-time","title":"Deletedat"},"detected":{"type":"string","format":"date-time","title":"Detected"},"diagnostic":{"type":"string","title":"Diagnostic"},"failureOtherNote":{"type":"string","title":"Failureothernote"},"failures":{"items":{"type":"string"},"type":"array","title":"Failures"},"history":{"items":{"properties":{"changes":{"items":{"properties":{"attribute":{"type":"string","title":"Attribute"},"previous":{"anyOf":[{"type":"string"},{"type":"object"}],"title":"Previous"},"current":{"anyOf":[{"type":"string"},{"type":"object"}],"title":"Current"}},"type":"object","title":"Change","description":"Definition attribute model change"},"type":"array","title":"Changes","default":[]},"client":{"type":"string","title":"Client"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"method":{"type":"string","title":"Method"},"service":{"type":"string","title":"Service"},"user":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"version":{"type":"string","title":"Version"}},"type":"object","required":["client","createdAt","method","service","user","version"],"title":"Revision","description":"Definition attribute model revision."},"type":"array","title":"History","default":[]},"images":{"items":{},"type":"array","title":"Images","default":[]},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"note":{"type":"string","title":"Note"},"noteNumber":{"type":"string","title":"Notenumber"},"reportedAt":{"type":"string","format":"date-time","title":"Reportedat"},"resource":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"resourceId":{"type":"string","title":"Resourceid"},"resourceType":{"type":"string","title":"Resourcetype"},"spectrals":{"items":{},"type":"array","title":"Spectrals","default":[]},"status":{"type":"string","enum":["closed","in_progress","open"],"title":"TechnicalReportStatus","description":"Definition enum status"},"statusNote":{"type":"string","title":"Statusnote"},"temperatureChartComment":{"type":"string","title":"Temperaturechartcomment"},"type":{"type":"string","enum":["predictive","sensitive"],"title":"TechnicalReportType","description":"Definition enum type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"user":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"velocityChartComment":{"type":"string","title":"Velocitychartcomment"},"attachments":{"items":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"size":{"type":"number","title":"Size"},"url":{"type":"string","title":"Url"},"note":{"type":"string","title":"Note"},"signedUrl":{"type":"string","title":"Signedurl"}},"type":"object","required":["name","type","size","url","signedUrl"],"title":"AttachmentOut","description":"Definition attribute model attachment out"},"type":"array","title":"Attachments","default":[]}},"type":"object","required":["breadcrumb","failures","reportedAt","resource","resourceId","resourceType","type","user"],"title":"TechnicalReportOut","description":"Definition model TechnicalReportOut","example":{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"chart":{"acelerationRMS":false,"finishedAt":"2022-01-24T10:46:36.000Z","startedAt":"2021-10-26T10:46:36.000Z","temperature":false,"velocityRMS":false,"visualizationOptions":["alerts","area","statistics","grid"]},"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"44444d80363c9b4e90444444","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"predictive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}}},{"properties":{"report_id":{"type":"string","title":"Report Id"},"report_action":{"type":"string","title":"Report Action"},"alert_level":{"type":"string","title":"Alert Level"},"report_criticality":{"type":"string","title":"Report Criticality"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"note":{"type":"string","title":"Note"},"note_number":{"type":"string","title":"Note Number"},"reported_at":{"type":"string","format":"date-time","title":"Reported At"},"report_deleted":{"type":"boolean","title":"Report Deleted"},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"},"detected_at":{"type":"string","format":"date-time","title":"Detected At"},"report_diagostic":{"type":"string","title":"Report Diagostic"},"report_failures":{"items":{"type":"string"},"type":"array","title":"Report Failures"},"report_status":{"type":"string","title":"Report Status"},"report_type":{"type":"string","title":"Report Type"},"resource_id":{"type":"string","title":"Resource Id"},"resource_type":{"type":"string","title":"Resource Type"},"user_id":{"type":"string","title":"User Id"},"user_name":{"type":"string","title":"User Name"},"spot_id":{"type":"string","title":"Spot Id"},"spot_name":{"type":"string","title":"Spot Name"},"machine_id":{"type":"string","title":"Machine Id"},"machine_name":{"type":"string","title":"Machine Name"},"subset_id":{"type":"string","title":"Subset Id"},"subset_name":{"type":"string","title":"Subset Name"},"component_id":{"type":"string","title":"Component Id"},"component_name":{"type":"string","title":"Component Name"}},"type":"object","title":"TechnicalReportIntegrationGisOut","description":"Definition model TechnicalReportIntegrationGisOut"}]},"type":"array","title":"Docs","default":[]},"pages":{"type":"object","title":"Pages"}},"type":"object","required":["filter","items","pages"],"title":"PaginatedTechnicalReport","description":"Definition model to paginated TechnicalReport\nexample: {\n    \"filter\": {\n        \"startAt\": \"2022-01-15T10:36:13.000Z\",\n        \"endAt\": \"2022-01-15T21:36:13.000Z\",\n        \"search\": null,\n        \"alertLevel\": [\"a1\", \"no-alert\"],\n        \"criticality\": null,\n        \"failures\": null,\n        \"status\": null,\n        \"types\": null,\n        \"users\": [],\n        \"workspaces\": [],\n        \"machines\": [],\n        \"subsets\": [],\n        \"components\": [],\n        \"spots\": []\n    },\n    \"items\": {\n        \"limit\": 20,\n        \"total\": 1\n    }\n    \"docs\": [],\n    \"pages\": {\n        \"current\": 1,\n        \"prev\": 0,\n        \"hasNext\": false,\n        \"hasPrev\": false,\n        \"next\": 2,\n        \"total\": 2,\n    },\n}","example":{"filter":{"startAt":"2022-01-15T10:36:13.000Z","endAt":"2022-01-15T21:36:13.000Z","alertLevel":["a1","no-alert"],"failures":["none"],"users":[{"email":"email@test.com","name":"Lorem ipsum dolor sit amet","uid":"5e9f8f8f8f8f8f8f8f8f8f8f8f8f8f8f"}],"workspaces":[{"_id":"5e9f8f8f8f8f8f8f8f8f8f8f8f8f8f8f","name":"Lorem ipsum dolor sit amet","metadata":{"email":"email@test.com"},"type":"workspace","tree":{"parentId":"5e9f8562652757628f8f8f8f8f8f","path":"/closed-sock-tow-60/heartbreaking-grape-punch-88"}}],"machines":[],"subsets":[],"components":[],"spots":[]},"items":{"limit":20,"total":1},"docs":[{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"chart":{"acelerationRMS":false,"finishedAt":"2022-01-24T10:46:36.000Z","startedAt":"2021-10-26T10:46:36.000Z","temperature":false,"velocityRMS":false,"visualizationOptions":["alerts","area","statistics","grid"]},"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"44444d80363c9b4e90444444","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"predictive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}},{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failureOtherNote":"other note","failures":["adapter-sleeve-looseness","other"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"5d794d80363c9b4e9044d1c4","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"sensitive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}},{"_id":"627526d46b00bb4c10001775","action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":55832,"url":"https://storage.cloud.google.com/ptrs-staging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg","signedUrl":"https://storage.cloud.google.com/ptrs-staging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg?GoogleAccessId=predict-production-platform%40appspot.gserviceaccount.com&Expires=1625765277&Signature=R1yfEj%2FIE3dvXKyD9ssGxVn4P6CDf57oDkrLNGl%2BIm1aH8NByQoGroctJ4MyckhoxKTlwNGvyemg%2B%2FFAQLa3xIR16zqGTZuMgVazcz8L8NzB70tb574luAZEIGrTG8%2FGUO%2FtNZ%2Fb4%2Bu%2B0u%2BxS1w%2FYYeFRbiydsJ7kP1GgUvrkjVVRuxuodQ9ZhJ5tQgWB1C0lLAgs6V7Oh4obw%2F4K%2F%2BUYN9BD%2BaZYlUNcdz9G6SN1k7oNxClqAtcFIwlqQqA8%2BUP4uFZHEh9530omH6%2Fuoi5Fik4%2F7TXyXcMMr48OBmW2oXJKMpCdVU4TqHfe7Wut%2BzpA5621gCxTZyTahh31To1%2Bw%3D%3D"}],"breadcrumb":[],"createdAt":"2022-01-24T13:48:03.000Z","criticality":"p2","deadline":"2022-01-31T15:00:00.000Z","deleted":false,"detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.000Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"images":[],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"5d713ebebbfaf61c5ec132a7","metadata":{"provider":{}},"name":"21EM021800","tree":{"parentId":"5d7113e9bbfaf60dd6c13269","path":"/southern-jellyfish-dispense-30/tan-hydrant-emphasize-70/tasteful-recording-long-69/raspy-caption-peck-79/married-summer-arise-84"},"type":"workspace"},"resourceId":"5d713ebebbfaf61c5ec132a7","resourceType":"workspace","spectrals":[],"status":"open","type":"sensitive","updatedAt":"2022-01-24T13:48:03.000Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}}],"pages":{"current":1,"prev":0,"hasNext":false,"hasPrev":false,"next":2,"total":1}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}},"/v1/technical-reports/{technical_report_id}":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Report by Id","description":"Get technical report by :id","operationId":"get_v1_technical_reports__technical_report_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Technical Report Id"},"name":"technical_report_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"filter":{"properties":{"alertLevel":{"items":{"type":"string","enum":["a1","a2","no-alert"],"title":"TechnicalReportAlertLevel","description":"Definition enum alert level"},"type":"array"},"components":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Components"},"criticality":{"items":{"type":"string","enum":["p0","p1","p2","p3","p4","p5","p6","p7","p8"],"title":"TechnicalReportCriticality","description":"Definition enum criticality"},"type":"array"},"endAt":{"type":"string","format":"date-time","title":"Endat"},"failures":{"items":{},"type":"array","title":"Failures"},"machines":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Machines"},"search":{"type":"string","title":"Search"},"spots":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Spots"},"startAt":{"type":"string","format":"date-time","title":"Startat"},"status":{"items":{"type":"string","enum":["closed","in_progress","open"],"title":"TechnicalReportStatus","description":"Definition enum status"},"type":"array"},"subsets":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Subsets"},"types":{"items":{"type":"string","enum":["predictive","sensitive"],"title":"TechnicalReportType","description":"Definition enum type"},"type":"array"},"users":{"items":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"type":"array","title":"Users"},"workspaces":{"items":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"type":"array","title":"Workspaces"}},"type":"object","required":["users"],"title":"PaginatedTechnicalReportFilter","description":"Definition model PaginatedTechnicalReportFilter"},"items":{"type":"object","title":"Items"},"docs":{"items":{"anyOf":[{"properties":{"_id":{"type":"string","title":" Id"},"accelerationChartComment":{"type":"string","title":"Accelerationchartcomment"},"action":{"type":"string","title":"Action"},"alertLevel":{"type":"string","enum":["a1","a2","no-alert"],"title":"TechnicalReportAlertLevel","description":"Definition enum alert level"},"alertLevelIndex":{"type":"integer","title":"Alertlevelindex"},"breadcrumb":{"items":{"properties":{"resourceId":{"type":"string","title":"Resourceid"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"}},"type":"object","required":["resourceId","name","type"],"title":"Breadcrumb","description":"Definition attribute model breadcrumb"},"type":"array","title":"Breadcrumb"},"chart":{"properties":{"visualizationOptions":{"items":{},"type":"array","title":"Visualizationoptions"},"acelerationRMS":{"type":"boolean","title":"Acelerationrms","default":false},"temperature":{"type":"boolean","title":"Temperature","default":false},"velocityRMS":{"type":"boolean","title":"Velocityrms","default":false},"startedAt":{"type":"string","format":"date-time","title":"Startedat"},"finishedAt":{"type":"string","format":"date-time","title":"Finishedat"}},"type":"object","required":["visualizationOptions","startedAt","finishedAt"],"title":"Chart","description":"Definition attribute model chart"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"criticality":{"type":"string","enum":["p0","p1","p2","p3","p4","p5","p6","p7","p8"],"title":"TechnicalReportCriticality","description":"Definition enum criticality"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"deleted":{"type":"boolean","title":"Deleted","default":false},"deletedAt":{"type":"string","format":"date-time","title":"Deletedat"},"detected":{"type":"string","format":"date-time","title":"Detected"},"diagnostic":{"type":"string","title":"Diagnostic"},"failureOtherNote":{"type":"string","title":"Failureothernote"},"failures":{"items":{"type":"string"},"type":"array","title":"Failures"},"history":{"items":{"properties":{"changes":{"items":{"properties":{"attribute":{"type":"string","title":"Attribute"},"previous":{"anyOf":[{"type":"string"},{"type":"object"}],"title":"Previous"},"current":{"anyOf":[{"type":"string"},{"type":"object"}],"title":"Current"}},"type":"object","title":"Change","description":"Definition attribute model change"},"type":"array","title":"Changes","default":[]},"client":{"type":"string","title":"Client"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"method":{"type":"string","title":"Method"},"service":{"type":"string","title":"Service"},"user":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"version":{"type":"string","title":"Version"}},"type":"object","required":["client","createdAt","method","service","user","version"],"title":"Revision","description":"Definition attribute model revision."},"type":"array","title":"History","default":[]},"images":{"items":{},"type":"array","title":"Images","default":[]},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"note":{"type":"string","title":"Note"},"noteNumber":{"type":"string","title":"Notenumber"},"reportedAt":{"type":"string","format":"date-time","title":"Reportedat"},"resource":{"properties":{"_id":{"type":"string","title":" Id"},"dyid":{"type":"string","title":"Dyid"},"metadata":{"type":"object","title":"Metadata"},"name":{"type":"string","title":"Name"},"settings":{"type":"object","title":"Settings"},"tree":{"properties":{"parentId":{"type":"string","title":"Parentid"},"path":{"type":"string","title":"Path"}},"type":"object","required":["parentId","path"],"title":"Tree","description":"Definition attribute model tree"},"type":{"type":"string","title":"Type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["name","tree","type"],"title":"TechnicalReportResource","description":"Definition model Resource embeded in Technical Report"},"resourceId":{"type":"string","title":"Resourceid"},"resourceType":{"type":"string","title":"Resourcetype"},"spectrals":{"items":{},"type":"array","title":"Spectrals","default":[]},"status":{"type":"string","enum":["closed","in_progress","open"],"title":"TechnicalReportStatus","description":"Definition enum status"},"statusNote":{"type":"string","title":"Statusnote"},"temperatureChartComment":{"type":"string","title":"Temperaturechartcomment"},"type":{"type":"string","enum":["predictive","sensitive"],"title":"TechnicalReportType","description":"Definition enum type"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"user":{"properties":{"email":{"type":"string","title":"Email"},"image":{"type":"string","title":"Image"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"User","description":"Definition attribute model user"},"velocityChartComment":{"type":"string","title":"Velocitychartcomment"},"attachments":{"items":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"size":{"type":"number","title":"Size"},"url":{"type":"string","title":"Url"},"note":{"type":"string","title":"Note"},"signedUrl":{"type":"string","title":"Signedurl"}},"type":"object","required":["name","type","size","url","signedUrl"],"title":"AttachmentOut","description":"Definition attribute model attachment out"},"type":"array","title":"Attachments","default":[]}},"type":"object","required":["breadcrumb","failures","reportedAt","resource","resourceId","resourceType","type","user"],"title":"TechnicalReportOut","description":"Definition model TechnicalReportOut","example":{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"chart":{"acelerationRMS":false,"finishedAt":"2022-01-24T10:46:36.000Z","startedAt":"2021-10-26T10:46:36.000Z","temperature":false,"velocityRMS":false,"visualizationOptions":["alerts","area","statistics","grid"]},"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"44444d80363c9b4e90444444","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"predictive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}}},{"properties":{"report_id":{"type":"string","title":"Report Id"},"report_action":{"type":"string","title":"Report Action"},"alert_level":{"type":"string","title":"Alert Level"},"report_criticality":{"type":"string","title":"Report Criticality"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"note":{"type":"string","title":"Note"},"note_number":{"type":"string","title":"Note Number"},"reported_at":{"type":"string","format":"date-time","title":"Reported At"},"report_deleted":{"type":"boolean","title":"Report Deleted"},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"},"detected_at":{"type":"string","format":"date-time","title":"Detected At"},"report_diagostic":{"type":"string","title":"Report Diagostic"},"report_failures":{"items":{"type":"string"},"type":"array","title":"Report Failures"},"report_status":{"type":"string","title":"Report Status"},"report_type":{"type":"string","title":"Report Type"},"resource_id":{"type":"string","title":"Resource Id"},"resource_type":{"type":"string","title":"Resource Type"},"user_id":{"type":"string","title":"User Id"},"user_name":{"type":"string","title":"User Name"},"spot_id":{"type":"string","title":"Spot Id"},"spot_name":{"type":"string","title":"Spot Name"},"machine_id":{"type":"string","title":"Machine Id"},"machine_name":{"type":"string","title":"Machine Name"},"subset_id":{"type":"string","title":"Subset Id"},"subset_name":{"type":"string","title":"Subset Name"},"component_id":{"type":"string","title":"Component Id"},"component_name":{"type":"string","title":"Component Name"}},"type":"object","title":"TechnicalReportIntegrationGisOut","description":"Definition model TechnicalReportIntegrationGisOut"}]},"type":"array","title":"Docs","default":[]},"pages":{"type":"object","title":"Pages"}},"type":"object","required":["filter","items","pages"],"title":"PaginatedTechnicalReport","description":"Definition model to paginated TechnicalReport\nexample: {\n    \"filter\": {\n        \"startAt\": \"2022-01-15T10:36:13.000Z\",\n        \"endAt\": \"2022-01-15T21:36:13.000Z\",\n        \"search\": null,\n        \"alertLevel\": [\"a1\", \"no-alert\"],\n        \"criticality\": null,\n        \"failures\": null,\n        \"status\": null,\n        \"types\": null,\n        \"users\": [],\n        \"workspaces\": [],\n        \"machines\": [],\n        \"subsets\": [],\n        \"components\": [],\n        \"spots\": []\n    },\n    \"items\": {\n        \"limit\": 20,\n        \"total\": 1\n    }\n    \"docs\": [],\n    \"pages\": {\n        \"current\": 1,\n        \"prev\": 0,\n        \"hasNext\": false,\n        \"hasPrev\": false,\n        \"next\": 2,\n        \"total\": 2,\n    },\n}","example":{"filter":{"startAt":"2022-01-15T10:36:13.000Z","endAt":"2022-01-15T21:36:13.000Z","alertLevel":["a1","no-alert"],"failures":["none"],"users":[{"email":"email@test.com","name":"Lorem ipsum dolor sit amet","uid":"5e9f8f8f8f8f8f8f8f8f8f8f8f8f8f8f"}],"workspaces":[{"_id":"5e9f8f8f8f8f8f8f8f8f8f8f8f8f8f8f","name":"Lorem ipsum dolor sit amet","metadata":{"email":"email@test.com"},"type":"workspace","tree":{"parentId":"5e9f8562652757628f8f8f8f8f8f","path":"/closed-sock-tow-60/heartbreaking-grape-punch-88"}}],"machines":[],"subsets":[],"components":[],"spots":[]},"items":{"limit":20,"total":1},"docs":[{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"chart":{"acelerationRMS":false,"finishedAt":"2022-01-24T10:46:36.000Z","startedAt":"2021-10-26T10:46:36.000Z","temperature":false,"velocityRMS":false,"visualizationOptions":["alerts","area","statistics","grid"]},"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"44444d80363c9b4e90444444","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"predictive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}},{"action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":0.2,"url":"https://storage.cloud.google.com/ptrs-stagging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg"}],"breadcrumb":[{"name":"Dynamox","type":"workspace"},{"name":"Teste App","type":"workspace"},{"name":"Mapa de Rolos","type":"machine"}],"createdAt":"2022-01-24T13:48:03.825Z","criticality":"p1","deadline":"2022-01-31T15:00:00.000Z","detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failureOtherNote":"other note","failures":["adapter-sleeve-looseness","other"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.825Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"44444d8165736af3d4204444","name":"AGMO08","tree":{"depth":2,"depthAsset":0,"parentId":"5d794d80363c9b4e9044d1c4","path":"/ordinary-science-4444/profuse-sticks-4444/devilish-help-4444","type":"asset"}},"resourceId":"44444d8165736af3d4204444","resourceType":"machine","status":"open","type":"sensitive","updatedAt":"2022-01-24T13:48:03.825Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}},{"_id":"627526d46b00bb4c10001775","action":"Ação teste","alertLevel":"a1","attachments":[{"name":"b8c3012101cb443cb4ec202d0dca8ec1.jpeg","type":"image/jpeg","size":55832,"url":"https://storage.cloud.google.com/ptrs-staging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg","signedUrl":"https://storage.cloud.google.com/ptrs-staging-bucket/b8c3012101cb443cb4ec202d0dca8ec1.jpeg?GoogleAccessId=predict-production-platform%40appspot.gserviceaccount.com&Expires=1625765277&Signature=R1yfEj%2FIE3dvXKyD9ssGxVn4P6CDf57oDkrLNGl%2BIm1aH8NByQoGroctJ4MyckhoxKTlwNGvyemg%2B%2FFAQLa3xIR16zqGTZuMgVazcz8L8NzB70tb574luAZEIGrTG8%2FGUO%2FtNZ%2Fb4%2Bu%2B0u%2BxS1w%2FYYeFRbiydsJ7kP1GgUvrkjVVRuxuodQ9ZhJ5tQgWB1C0lLAgs6V7Oh4obw%2F4K%2F%2BUYN9BD%2BaZYlUNcdz9G6SN1k7oNxClqAtcFIwlqQqA8%2BUP4uFZHEh9530omH6%2Fuoi5Fik4%2F7TXyXcMMr48OBmW2oXJKMpCdVU4TqHfe7Wut%2BzpA5621gCxTZyTahh31To1%2Bw%3D%3D"}],"breadcrumb":[],"createdAt":"2022-01-24T13:48:03.000Z","criticality":"p2","deadline":"2022-01-31T15:00:00.000Z","deleted":false,"detected":"2022-01-15T15:00:00.000Z","diagnostic":"teste julia - post 2 - 200","failures":["adapter-sleeve-looseness"],"history":[{"changes":[],"client":"client","createdAt":"2022-01-24T13:48:03.000Z","method":"POST","service":"Create","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"},"version":"version"}],"images":[],"note":"Isso é um teste para post 2.","reportedAt":"2022-01-15T15:00:00.000Z","resource":{"_id":"5d713ebebbfaf61c5ec132a7","metadata":{"provider":{}},"name":"21EM021800","tree":{"parentId":"5d7113e9bbfaf60dd6c13269","path":"/southern-jellyfish-dispense-30/tan-hydrant-emphasize-70/tasteful-recording-long-69/raspy-caption-peck-79/married-summer-arise-84"},"type":"workspace"},"resourceId":"5d713ebebbfaf61c5ec132a7","resourceType":"workspace","spectrals":[],"status":"open","type":"sensitive","updatedAt":"2022-01-24T13:48:03.000Z","user":{"email":"email@host.path","uid":"4444QDET8JW5AcsfWOOCOVSv4444"}}],"pages":{"current":1,"prev":0,"hasNext":false,"hasPrev":false,"next":2,"total":1}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail","default":"Document not found"}},"type":"object","title":"TechnicalReportNotFound","description":"Definition model TechnicalReportNotFound"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}}},"tags":[{"name":"Token","description":"The API supports two authentication methods. Use the one that best fits your integration:\n\n| Method | Header | Best for |\n|---|---|---|\n| **Bearer Token** (JWT RS256) | `Authorization: Bearer <token>` | Programmatic integrations that allow generation, refresh and management of JWT tokens |\n| **Static API Key** | `x-api-key: <key>` | Integrations to software platforms that do not support dynamic token generation |\n\nBoth methods grant the same level of access.\n\n---\n\n## Bearer Token\n\nThe Token endpoint exchanges a signed JWT (created from your application key) for a short-lived access token used to authenticate API calls.\n\n## Important: Token Generation Requirements\n\n**Token generation must be implemented programmatically in your application code.** This process cannot be done manually or through the documentation interface because it requires:\n\n- **JWT Library**: You need a JWT (JSON Web Token) library to create and sign tokens with the RS256 algorithm\n- **Cryptographic Operations**: The token must be digitally signed using your private key\n- **Dynamic Values**: Each token requires a current timestamp (`iat`) and proper payload structure\n\n**Supported Languages**: We provide code examples for Python, Node.js, and cURL. You can use any programming language that supports JWT libraries and RS256 signing.\n\n**Testing Flow**: After implementing token generation in your code, you can use the generated token in the documentation interface or external tools like Postman for API testing.\n\n---\n\n### Application key (JSON) — expected format\n\nSave the application key exactly as provided by the platform. Example:\n\n```json\n{\n  \"_id\": \"$KEY_ID\",\n  \"expiresAt\": \"$KEY_EXPIRES_AT\",\n  \"applicationId\": \"$APPLICATION_ID\",\n  \"email\": \"$APPLICATION_EMAIL\",\n  \"publicKey\": \"$PUBLIC_KEY\",\n  \"privateKey\": \"$PRIVATE_KEY\"\n}\n```\n\nNotes:\n\n- privateKey must be a valid PEM RSA private key (convert escaped \\n to newlines if necessary).\n- expiresAt indicates when the application key expires — you cannot exchange an expired key.\n\nCheck [IANA - JSON Web Token (JWT)](https://www.iana.org/assignments/jwt/jwt.xhtml) for more details.\n\n---\n\n### JWT requirements\n\n#### Header\n\n```json\n{\n  \"kid\": \"$KEY_ID\",\n  \"alg\": \"RS256\",\n  \"typ\": \"JWT\"\n}\n```\n\n- kid must match \\_id from your application key.\n- alg must be RS256.\n- typ should be JWT.\n\n#### Payload\n\n```json\n{\n  \"iat\": 1700000000,\n  \"email\": \"app@example.com\"\n}\n```\n\n- iat — issued-at time, UTC timestamp in seconds.\n- email — the email value from your application key.\n\n---\n\n### Step-by-step\n\nThe public API requires a short-lived access token issued by the Token endpoint. To obtain that access token:\n\n- Use your **Application Key** (JSON) provided by the platform.\n- Build a **JWT (RS256)** signed with the **privateKey** from the Application Key.\n- Send the signed JWT to the Token endpoint (HTTP `POST`).\n- Receive the **access token** to use in API calls.\n\n---\n\n## Code examples\n\n### Python (PyJWT)\n\n```python\nimport json\nfrom datetime import datetime, timezone\nfrom time import sleep\n\nimport jwt  # pip install pyjwt\nimport requests  # pip install requests\n\nTOKEN_URL = \"https://api.dynamox.solutions/v1/token\"\n\nAPPLICATION_KEY_PATH = \"your_key.json\"\n\ndef generate_jwt(application_key_path: str) -> str:\n    with open(application_key_path) as file:\n        key = json.load(file)\n\n    return jwt.encode(\n      headers={\n        \"kid\": key[\"_id\"],\n        \"alg\": \"RS256\",\n        \"typ\": \"JWT\",\n      },\n      payload={\n        \"iat\": datetime.now(timezone.utc).timestamp(),\n        \"email\": key[\"email\"],\n      },\n      key=key[\"privateKey\"].encode(\"utf-8\"),\n    )\n\ndef main() -> None:\n    encoded_jwt = generate_jwt(APPLICATION_KEY_PATH)\n    sleep(2)\n    response = requests.post(\n        url=TOKEN_URL,\n        headers={\"Authorization\": f\"Bearer {encoded_jwt}\"},\n        timeout=10,\n    )\n    print(response.json())\n    access_token = response.json().get(\"access_token\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n### Node.js (jsonwebtoken)\n\n```javascript\nconst fs = require(\"fs\");\nconst jwt = require(\"jsonwebtoken\"); // npm install jsonwebtoken\n\nconst TOKEN_URL = \"https://api.dynamox.solutions/v1/token\";\nconst APPLICATION_KEY_PATH = \"your_key.json\";\n\nfunction generateJwt(applicationKeyPath) {\n  const key = JSON.parse(fs.readFileSync(applicationKeyPath, \"utf8\"));\n  return jwt.sign(\n    {\n      email: key.email,\n      iat: Math.floor(Date.now() / 1000),\n    },\n    key.privateKey,\n    {\n      algorithm: \"RS256\",\n      keyid: key._id,\n      header: { typ: \"JWT\" },\n    },\n  );\n}\n\nfunction sleep(ms) {\n  return new Promise((resolve) => setTimeout(resolve, ms));\n}\n\nasync function getAccessToken() {\n  try {\n    const encodedJwt = generateJwt(APPLICATION_KEY_PATH);\n    await sleep(2000);\n    const response = await fetch(TOKEN_URL, {\n      method: \"POST\",\n      headers: { Authorization: `Bearer ${encodedJwt}` },\n    });\n    const data = await response.json();\n    console.log(data);\n    return data.accessToken;\n  } catch (error) {\n    console.error(\"Error:\", error.message);\n  }\n}\n\ngetAccessToken();\n```\n\n### cURL\n\nUse the JWT generated from the Python or Node.js examples above:\n\n```bash\ncurl -X POST \"https://api.dynamox.solutions/v1/token\" \\\n  -H \"Authorization: Bearer <YOUR_JWT_HERE>\"\n```\n\n---\n\n## OAuth 2.0 client credentials\n\nClients that can only authenticate with a client id and a client secret, such as the Microsoft Entra ID\nprovisioning service, get the access token from `POST /oauth2/token` instead:\n\n- `client_id` — the application id.\n- `client_secret` — an API key (`dyp_...`) of that application.\n\nSend `grant_type=client_credentials` as `application/x-www-form-urlencoded`, with the credentials in the body\nor in the `Authorization: Basic` header. Every call issues a new access token; use it as `Bearer <token>`\nuntil `expires_in` elapses, then request another one.\n\nInvalid credentials return `401` with `invalid_client`. When the token cannot be issued for a reason unrelated\nto the credentials, the response is `503` with `temporarily_unavailable` and `Retry-After`; retry later.\n\n```bash\ncurl -X POST \"https://api.dynamox.solutions/oauth2/token\" \\\n  -d grant_type=client_credentials \\\n  -d client_id=<APPLICATION_ID> \\\n  -d client_secret=<API_KEY>\n```\n\n---\n\n## Common errors\n\n- **401 Unauthorized (invalid signature):** check the private key and `kid`.\n- **400 Bad Request (invalid `iat`):** ensure it is in seconds.\n- **403 Forbidden (email mismatch):** check the email in the payload.\n- **403 Forbidden (expired key):** verify `expiresAt`.\n\n---\n\n## Best practices\n\n- Keep `privateKey` secret and never expose it.\n- Use short-lived JWTs and tokens.\n- Rotate Application Keys periodically.\n- Always use TLS for requests.\n"},{"name":"API Key","description":"A static API Key is an opaque credential linked to a specific Application. Key characteristics:\n\n- **Generated once, never recoverable**: the full key value is shown only at creation time — store it securely immediately.\n- **Format**: keys always start with the prefix `dyp_` (e.g. `dyp_Abc123...`).\n- **Limit**: up to 25 active keys per Application.\n- **Expiration**: configurable at creation; maximum (and default) is 365 days. A key can be in one of three states: `ACTIVE`, `EXPIRED`, or `REVOKED`. Keys are automatically set to `EXPIRED` when the expiration date is reached.\n- **Revocation**: keys can be manually revoked at any time through Dynamox web platform, by setting their state to `REVOKED`.\n\n### How to obtain an API Key\n\nAPI Keys are managed through the Dynamox Platform. To create one, navigate to:\n\n**Connectors → API Dynamox → Select Contract → Select Application → Create Key**\n\n> **Important:** You need administrator permissions to create/manage API Keys.\n> **Important:** Copy and store the full key (`dyp_...`) immediately after creation. It will not be displayed again.\n\n### Using the key in requests\n\nInclude the key in every request via the `x-api-key` header:\n\n```http\nGET /v1/<endpoint> HTTP/1.1\nHost: api.dynamox.solutions\nx-api-key: dyp_YOUR_API_KEY_HERE\n```\n"},{"name":"DynaDetect","description":"This API provides access to automatic fault detection by Dynamox's AI engine. Each waveform measured from a supported asset is analyzed and an automatic fault detection diagnosis is provided.\n\nEach fault can have one of the following statuses:\n\n- `detected`: The fault was evaluated and detected.\n- `notEvaluated`: The configuration of the monitoring point does not contain the necessary information to evaluate the fault or the measured waveform is not suitable for analysis.\n- `notDetected`: The fault was evaluated and was **not** detected.\n"},{"name":"Alert Policies","description":"This API allows you to **retrieve a single alert policy** or **list all alert policies** associated with a resource (spot) or **get alert history** by policy id. Alert policies define the rules and thresholds for generating alerts based on telemetry or spectral metrics.\n\n### Supported Policy Types\n- `telemetry`: For alerts based on telemetry metrics (requires a metric descriptor ID).\n- `spectralMetrics`: For alerts based on spectral metrics (uses axis, physical quantity, processing, and frequency range).\n\n### Possible Status Values\nThe `currentStatus` field can have the following values:\n- `no-alert`: The policy has not been alarmed.\n- `a1`: The policy has been alarmed at level A1.\n- `a2`: The policy has been alarmed at level A2.\n"},{"name":"Waveform","description":"This API provides access to waveform data and related metrics. Users can retrieve raw waveforms (time-domain), spectra (frequency-domain), and computed scalar metrics derived from the waveforms or their spectral analysis. \n\n### Key concepts\n\n- **Waveform**: A waveform is a time series of data points, collected by a sensor with a high sampling rate.\n- **Spectrum**: The spectrum is a representation of the waveform in the frequency domain. It is uniquely identified by its `waveformId`.\n- **Spectral metrics**: These are metrics computed based on the waveform and its spectrum. They are very useful for monitoring the health of rotating machinery and can be interpreted for identifying failure modes. Each spectral metric has attributes such as `physicalQuantity` (e.g. `acceleration`, `velocity`, `displacement`), `statisticalProcessing` (e.g. `rms`, `crest`, `kurtosis`), and `band` (e.g. `global`, `100-200`, `2000-6200`).\n"},{"name":"Checklist Answers","description":"Checklist Answers represent the completed inspection forms submitted by inspectors during route execution. They capture the state and condition of equipment at a specific point in time. Key features include:\n\n- **Inspection Data**: Records when (answeredAt), where (latitude/longitude), and by whom (inspectorId) the inspection was performed\n- **Alert Classification**: Categorizes findings by severity level (levelAlert) to highlight critical issues\n- **Attachments**: Supports documentation with images, audio recordings, and other files\n- **Justifications**: Allows for explanations when inspections cannot be completed as planned\n- **Geolocation**: Records the physical location where the inspection was performed\n- **Synchronization**: Supports offline data collection with subsequent synchronization\n\nChecklist Answers provide the foundation for condition monitoring, enabling trend analysis and predictive maintenance strategies based on historical inspection data."},{"name":"Cycles","description":"Cycles represent execution instances of a route in a specific period. They are automatically created based on the route's periodicity configuration and control the inspection flow. Key features include:\n\n- **Execution Period**: Defined by cycleStartAt and cycleEndAt, determining the valid time window for performing inspections\n- **Status**: Can be open (opened=true) or closed (opened=false), indicating whether they still accept inspections\n- **Inspector**: User designated as responsible for performing inspections in that cycle\n- **Adherence Metrics**: Calculation of adherence and adherenceReal based on the proportion of inspections performed vs. scheduled\n- **Counters**: Tracking of checklists, spots, machines, subsets, and components inspected\n- **Justifications**: Possibility to justify cycles not fully completed\n- **Alerts**: Classification of alerts (a1, a2, noAlert) based on inspection responses\n\n Cycles are essential for monitoring route execution over time, allowing trend analysis and identification of recurring equipment problems."},{"name":"Inspectors","description":"Inspectors are users responsible for executing route inspections in the field. They interact directly with equipment and record observations through the system.\n\nInspectors serve as the critical human element in the condition monitoring process, providing expert assessment and documentation of equipment status during route execution."},{"name":"Route Items","description":"Route Items represent the hierarchical structure of assets within a route that need to be inspected. They organize inspection points in a logical structure. Key features include:\n\n- **Hierarchical Organization**: Structured in three levels - machines, subsets, and components\n- **Asset Identification**: Each item has a unique externalId linking to the physical asset\n- **Inspection Requirements**: Items may have associated checklists, quizzes, or spectral analysis requirements\n- **Sorting Order**: Items can be arranged in a specific sequence for optimal inspection flow\n- **Custom Periodicity**: Individual items can have multipliers that adjust their inspection frequency\n- **Parent-Child Relationships**: Items maintain references to their parent items, creating a tree structure\n- **Type Classification**: Items are categorized by type (machine, subset, component) for filtering and reporting\n\nRoute Items provide the structural framework for organizing inspections, ensuring comprehensive coverage of all equipment parts that require monitoring."},{"name":"Routes","description":"Routes are configurable inspection plans that define a set of items (machines, subsets, components) and checklists to be inspected with a specific frequency. Each route has a lifecycle that includes creation, activation, inspection execution, and possible deactivation. Key features include:\n\n- **Versioning**: Routes maintain a version history when significant changes are made, especially when there are existing associated responses\n- **Periodicity**: Defined by frequency and frequencyUnit (hours, days, months, years)\n- **Tolerance**: Configurable periods before (toleranceBefore) and after (toleranceAfter) the ideal deadline for inspection\n- **Asset Hierarchy**: Organization into machines, subsets, and components through route items\n- **Checklists and Spots**: Inspection points associated with route items\n- **Cycles**: Execution instances of the route in specific periods\n- **Responsibilities**: Users can be designated as responsible for executing inspections\n- **Categorization**: Routes can be organized into categories for better management\n\nRoutes are the foundation for predictive and preventive maintenance planning, allowing systematic monitoring of equipment condition."},{"name":"Asset Pro","description":"This API provides specialist metrics for assets.\n\n## Vibrating screen\n\nThere are important concepts for the Asset Pro's vibrating screen endpoints. Users can retrieve metrics or orbits from a given metric group. First they shall request the metric group ids with the vibrating screen id. Users may request metrics and orbits with the metric group id.\n\n- **Metric group**: A metric group is a grouping of the 4 evaluated measurement events (feed-right, feed-left, discharge-right, discharge-left) at a give time range. It is uniquely identified by its `metricGroupId`.\n\n- **Metrics**: The specialized metrics calculated. They can be either from a spot (e.g. `stroke`, `angle`, `gForce`, `rpm`, `maxAcceleration`, `maxDisplacement`) or from the machine  (e.g. `diagonalAngle`, `rpm` or comparison of spot metrics relative to feed-discharge or right-left references).\n\n- **Orbits**: The orbits are the processed waveforms that, when plotted, resemble the vibrating screen movement.\n"},{"name":"Workspace","description":"<!-- markdownlint-disable MD041 -->\n\nThis API provides access to workspace data.\n"}],"x-tagGroups":[{"name":"Authentication","tags":["Token","API Key"]},{"name":"Endpoints","tags":["Assets","Waveform","Monitoring Points","Measuring Systems","Configuration Slots","Telemetry Cycles","Signals","Telemetry","Checklist Answers","Routes","Route Items","Cycles","Inspectors","PIMS","DynaDetect","Alert Policies","Technical Reports","Workspace","Asset Pro","Spots And Gateways Connectivity"]}],"components":{"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}