{"openapi":"3.0.1","info":{"title":"Public","description":"Import from \"func-asset-api-prod-ae-01\" Function App","version":"v3"},"servers":[{"url":"https://talk.perspio.io/public/v3","description":"AU Region"},{"url":"https://us-talk.perspio.io/public/v3","description":"US Region"}],"paths":{"/assets/{token}":{"get":{"tags":["Public"],"summary":"Get Shared Assets","description":"Return the assets shared via a public share token.","operationId":"getSharedAssets","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The shared assets.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Asset id."},"assetName":{"type":"string","description":"Asset name."},"customerAssetId":{"type":"string","description":"Customer-assigned asset id."},"assetTypeId":{"type":"string","description":"Asset type id."}}}},"example":[{"id":"A-1","assetName":"Excavator 12","customerAssetId":"EX-12","assetTypeId":"AT-1"}]}}},"400":{"description":"Invalid Request"},"401":{"description":"Invalid API Key provided or Invalid Access token"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerspioError"},"example":{"functionName":"Perspio.API.AssetData.AssetPublicApi.GetSharedAssets","errorType":"NullReferenceException","statusCode":500,"request":"GET /api/sharedassets/in-000052","tenantId":"in-93b1a4c6-1234-4c1c-9d2a-1f2e3d4c5b6a","message":"Internal Server Error: Object reference not set to an instance of an object."}}}}}}}},"components":{"schemas":{"PerspioError":{"type":"object","properties":{"functionName":{"type":"string","description":"Name of the backend function that raised the error."},"errorType":{"type":"string","description":"Exception/error type name."},"statusCode":{"type":"integer","description":"HTTP status code of the error.","format":"int32"},"request":{"type":"string","description":"Method and URL of the failing request."},"tenantId":{"type":"string","description":"Tenant the request was executed for."},"message":{"type":"string","description":"Human-readable error message."}},"description":"Standard Perspio backend error body (ErrorResultObject emitted by the error-handling middleware)."}},"securitySchemes":{"apiKeyHeader":{"type":"apiKey","name":"Ocp-Apim-Subscription-Key","in":"header"},"apiKeyQuery":{"type":"apiKey","name":"subscription-key","in":"query"}}},"security":[{"apiKeyHeader":[]},{"apiKeyQuery":[]}],"tags":[{"name":"Public","description":"Public token-authenticated endpoints."}]}