{"openapi":"3.0.1","info":{"title":"Autos Select API","version":"1.0"},"x-readme":{"explorer-enabled":false,"parameter-ordering":["header","path","query","body","form","cookie"],"samples-languages":["json","curl","python","java","csharp","node"],"proxy-enabled":true,"samples-enabled":true},"servers":[{"url":"https://{host}/platform/autoselect/v1","variables":{"host":{"enum":["api-euw1.rms.com","api-use1.rms.com"],"default":"api-euw1.rms.com","description":"Data center that hosts the tenant instance: api-euw1.rms.com or api-use1.rms.com."}}}],"security":[{"RMS_Auth":[]}],"paths":{"/tasks":{"post":{"tags":["Auto Select Tasks"],"summary":"Create Auto Select task","description":" ","operationId":"createAutoselectTask","parameters":[{"name":"x-rms-resource-group-id","in":"header","required":true,"description":"ID of <<glossary:resource group>>.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoselectTaskRequest"}}}},"responses":{"201":{"description":"Created.\n\nTask UUID is returned in the `Location` HTTP response header.","headers":{"Location":{"description":"URL of `AUTOSELECT` task.","schema":{"type":"string","format":"uri","example":"https://api-euw1.rms.com/platform/autoselect/v1/tasks/488ea126-66e9-47bd-85ea-e0fcebe1931f"}}}},"400":{"description":"Bad Request.\n\nReturned if specified exposure resource is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden.\n\nReturned if client does not have `RI-UNDERWRITEIQ` entitlement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/tasks/{taskUuid}":{"get":{"tags":["Auto Select Tasks"],"summary":"Get Auto Select task","description":"","operationId":"getAutoselectTask","parameters":[{"name":"taskUuid","in":"path","required":true,"description":"Unique ID of task.","schema":{"type":"string","format":"uuid","example":"488ea126-66e9-47bd-85ea-e0fcebe1931f"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoselectTaskStatus"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}}},"components":{"schemas":{"AutoselectTaskRequest":{"type":"object","required":["resourceType","resourceUri"],"properties":{"resourceType":{"type":"string","enum":["ACCOUNT"],"description":"Type of resource.","example":"ACCOUNT"},"resourceUri":{"type":"string","format":"uri","description":"URI of the account resource.","example":"/platform/riskdata/v1/exposures/123/accounts/12"},"settings":{"type":"object","nullable":true,"description":"Optional task settings","properties":{"taskName":{"type":"string","description":"Name of task.","example":"ACCOUNT_123"},"modelProfileIds":{"type":"array","description":"List of model profile IDs.\n\n- If unspecified, all model profile IDs are used.\n- If invalid IDs are provided, they will be ignored and the task will continue.","items":{"type":"integer","format":"int64"},"maxItems":100,"example":[123,456]}}}},"additionalProperties":false},"AutoselectTaskStatus":{"type":"object","properties":{"taskUuid":{"type":"string","format":"uuid","description":"Unique ID of task.","example":"488ea126-66e9-47bd-85ea-e0fcebe1931f"},"taskType":{"type":"string","enum":["AUTOSELECT"],"description":"Type of task.","example":"AUTOSELECT"},"taskName":{"type":"string","nullable":true,"description":"Name of task.","example":"ACCOUNT_123"},"status":{"type":"string","enum":["COMPLETED","FAILED","IN PROGRESS","PENDING"],"description":"Status of task.","example":"COMPLETED"},"createdAt":{"type":"string","format":"date-time","description":"Date task was created in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.","example":"2025-09-24T22:34:20.018Z"},"updatedAt":{"type":"string","format":"date-time","description":"Date task was last updated in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.","example":"2025-09-24T22:35:20.018Z"},"expiresAt":{"type":"string","format":"date-time","description":"Date task expires in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.","example":"2025-09-25T22:34:20.018Z"},"createdBy":{"type":"string","format":"email","description":"Login of <<glossary:principal>> that created  task, e.g. `user.name@company.com` or `SSO_user.name@company.com` for federated tenants. Login strings are lowercase. See [Logins](ref:principals).","example":"user.name@company.com"},"output":{"type":"object","nullable":true,"description":"Task output. \n\n- If `COMPLETED`, returns model profile IDs.\n- If `FAILED`, returns error messages.","properties":{"errors":{"type":"array","description":"List of error messages.","items":{"type":"string"},"example":[]},"log":{"type":"object","description":"Task execution log","properties":{"modelProfileIds":{"type":"array","description":"List of applicable model profile IDs. Empty if no matches found.","items":{"type":"integer","format":"int64"},"example":[123,456]}},"required":["modelProfileIds"]}},"required":["errors","log"]}},"required":["taskUuid","taskType","status","createdAt","updatedAt","expiresAt","createdBy"]},"ErrorMessage":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"logId":{"type":"string"}}}},"securitySchemes":{"RMS_Auth":{"type":"apiKey","name":"Authorization","in":"header","description":"An API key is a token that enables a client application to make requests to tenant applications running on Intelligent Risk Platform.","x-default":"XXXXXXXXXX"}}}}