Microsoft Azure Evaluations20220901 Preview API
Manages evaluations operations.
Operations 4
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Manages evaluations operations.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-evaluations20220901preview-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: 2022-09-01-preview
title: Microsoft Azure Personalizer Client 2022-09-01-preview…
description: Personalizer Service is an Azure Cognitive Service that makes it easy to target content and experiences without complex pre-analysis or cleanup of past data. Given a context and featurized content, the Personalizer Service returns which content item to show to users in rewardActionId. As rewards are sent in response to the use of rewardActionId, the reinforcement learning algorithm will improve the model and improve performance of future rank calls.
servers:
- url: /personalizer
security:
- {}
tags:
- name: Evaluations20220901Preview
description: Manages evaluations operations.
paths:
/evaluations/{evaluationId}:
get:
tags:
- Evaluations20220901Preview
summary: Microsoft Azure Get Evaluation
description: Get the Offline Evaluation associated with the Id.
operationId: microsoftAzureEvaluationsGet
parameters:
- name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
- name: evaluationId
in: path
description: Id of the Offline Evaluation.
required: true
schema:
type: string
maxLength: 256
- in: query
name: intervalInMinutes
description: '"Time interval for aggregation of events in minutes. Allowed intervals: 5 minutes, 60 minutes, 360 minutes, 720 minutes and 1440 minutes. Defaults to 5 minutes.'
schema:
type: integer
format: int32
- in: query
name: startTime
description: Start of aggregation time interval.
required: true
schema:
type: string
format: date-time
- in: query
name: endTime
description: End of aggregation time interval.
required: true
schema:
type: string
format: date-time
- in: query
name: window
description: Rolling or Expanding time. Rolling compatible with 60 minutes, 360 minutes, 720 minutes and 1440 minutes intervals. Expanding compatible with 5 minute time interval only. Defaults to Expanding.
x-ms-enum:
name: Window
modelAsString: true
schema:
type: string
enum:
- Expanding
- Rolling
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluation'
default:
description: Offline Evaluation not found.
headers:
x-ms-error-code:
description: Error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-examples:
Successful Evaluations_Get request:
$ref: ./examples/Evaluations_Get.json
delete:
tags:
- Evaluations20220901Preview
summary: Microsoft Azure Delete Evaluation
description: Delete the Offline Evaluation associated with the Id.
operationId: microsoftAzureEvaluationsDelete
parameters:
- name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
- name: evaluationId
in: path
description: Id of the Offline Evaluation to delete.
required: true
schema:
type: string
maxLength: 256
responses:
'204':
description: No Content
default:
description: Offline Evaluation not found.
headers:
x-ms-error-code:
description: Error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-examples:
Successful Evaluations_Delete request:
$ref: ./examples/Evaluations_Delete.json
put:
tags:
- Evaluations20220901Preview
summary: Microsoft Azure Create Offline Evaluation
description: Submit a new Offline Evaluation job.
operationId: microsoftAzureEvaluationsCreate
parameters:
- name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
- in: path
name: evaluationId
description: Id of the Offline Evaluation to create.
required: true
schema:
type: string
maxLength: 256
responses:
'200':
description: Success
default:
description: Invalid contract.
headers:
x-ms-error-code:
description: Error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-examples:
Successful Evaluations_Create request:
$ref: ./examples/Evaluations_Create.json
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationContract'
description: The Offline Evaluation job definition.
required: true
/evaluations:
get:
tags:
- Evaluations20220901Preview
summary: Microsoft Azure List Offline Evaluations
description: List of all Offline Evaluations.
operationId: microsoftAzureEvaluationsList
parameters:
- name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
- in: query
name: filter
description: 'An expression to filter the evaluations against evaluation metadata. Only evaluations where the expression evaluates to true are included in the response.
Here is an example, metadata=evaluationType eq ''Manual''.'
schema:
type: string
- in: query
name: top
description: The maximum number of resources to return from the collection. Defaults to maximum value of integer.
schema:
type: integer
format: int32
- in: query
name: skip
description: An offset into the collection of the first resource to be returned. Defaults to 0.
schema:
type: integer
format: int32
default: 0
- in: query
name: maxpagesize
description: The maximum number of resources to include in a single response. Defaults to 100.
schema:
type: integer
format: int32
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluations'
default:
description: A generic error has occurred on the server.
headers:
x-ms-error-code:
description: Error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-examples:
Successful Evaluations_List request:
$ref: ./examples/Evaluations_List.json
components:
schemas:
EvaluationDetails:
type: object
properties:
id:
description: The ID of the evaluation.
maxLength: 256
type: string
readOnly: true
name:
description: The name of the evaluation.
maxLength: 256
type: string
readOnly: true
startTime:
format: date-time
description: The start time of the evaluation.
type: string
readOnly: true
endTime:
format: date-time
description: The end time of the evaluation.
type: string
readOnly: true
creationTime:
format: date-time
description: The creation time of the evaluation.
type: string
readOnly: true
status:
description: The status of the job processing the evaluation.
enum:
- Succeeded
- Running
- Failed
- NotSubmitted
- Timeout
- OptimalPolicyApplied
- OnlinePolicyRetained
- Canceled
type: string
readOnly: true
x-ms-enum:
name: EvaluationJobStatus
modelAsString: true
evaluationType:
description: Type of evaluation.
enum:
- Manual
- Auto
type: string
readOnly: true
x-ms-enum:
name: EvaluationType
modelAsString: true
Evaluations:
description: Evaluations
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/EvaluationDetails'
nextLink:
type: string
TimeSeries:
type: object
properties:
data:
description: Time series.
type: array
items:
$ref: '#/components/schemas/Data'
readOnly: true
ErrorResponse:
description: Used to return an error to the client
required:
- error
type: object
properties:
error:
$ref: '#/components/schemas/PersonalizerError'
PersonalizerError:
description: The error object.
required:
- code
- message
type: object
properties:
code:
description: Error Codes returned by Personalizer
enum:
- BadRequest
- InvalidServiceConfiguration
- InvalidLearningModeServiceConfiguration
- InvalidPolicyConfiguration
- InvalidPolicyContract
- InvalidEvaluationContract
- InvalidContract
- DuplicateCustomPolicyNames
- NoLogsExistInDateRange
- LogsSizeExceedAllowedLimit
- InvalidRewardRequest
- InvalidEventIdToActivate
- InvalidRankRequest
- InvalidExportLogsRequest
- InvalidRequest
- InvalidSasUri
- InvalidModelMetadata
- ApprenticeModeNeverTurnedOn
- MissingAppId
- InvalidRewardWaitTime
- InvalidLogRetentionDays
- InvalidMultiSlotApiAccess
- PayloadSizeExceeded
- InvalidModelImportSignature
- InvalidModelImportFormat
- FeatureImportanceAlreadyExists
- EvaluationAlreadyExists
- InvalidModelRetrainDays
- InvalidApiAccess
- ModelFileAccessDenied
- ProblemTypeIncompatibleWithAutoOptimization
- ResourceNotFound
- FrontEndNotFound
- EvaluationNotFound
- FeatureImportanceNotFound
- LearningSettingsNotFound
- EvaluationModelNotFound
- LogsPropertiesNotFound
- RequestTimeout
- ModelRankingError
- InternalServerError
- ModelDownloadFailed
- RankNullResponse
- UpdateConfigurationFailed
- InferenceModelUpdateFailed
- ModelResetFailed
- ModelPublishFailed
- ModelMetadataUpdateFailed
- EvaluationsGetListFailed
- OperationNotAllowed
type: string
x-ms-enum:
name: PersonalizerErrorCode
modelAsString: true
values:
- value: BadRequest
description: Request could not be understood by the server.
- value: InvalidServiceConfiguration
description: Invalid service configuration.
- value: InvalidLearningModeServiceConfiguration
description: Updating defaultReward, rewardWaitTime and rewardAggregation when changing learning mode from Online to Apprentice mode and vice versa is not allowed. Make the mode change and then change the additional settings with an additional API call.
- value: InvalidPolicyConfiguration
description: Invalid policy configuration.
- value: InvalidPolicyContract
description: Invalid policy contract.
- value: InvalidEvaluationContract
description: Invalid evaluation contract.
- value: InvalidContract
description: Invalid contract.
- value: DuplicateCustomPolicyNames
description: Custom policy names should be unique.
- value: NoLogsExistInDateRange
description: No logs exist in date range.
- value: LogsSizeExceedAllowedLimit
description: Total size of logs exceed allowed limit.
- value: InvalidRewardRequest
description: Invalid reward request.
- value: InvalidEventIdToActivate
description: Invalid activate event request.
- value: InvalidRankRequest
description: Invalid request.
- value: InvalidExportLogsRequest
description: Invalid request.
- value: InvalidRequest
description: Invalid request.
- value: InvalidSasUri
description: SAS Uri must be the Uri to a container that has write permissions; Or the date in SAS Uri is not in the format of yyyy-mm-ddThh:mm:ssZ.
- value: InvalidModelMetadata
description: Invalid model metadata.
- value: ApprenticeModeNeverTurnedOn
description: Apprentice mode never turned on.
- value: MissingAppId
description: AppId is missing in the header.
- value: InvalidRewardWaitTime
description: Reward wait time should be either 10 minutes or 4 hours or 12 hours or 24 hours
- value: InvalidLogRetentionDays
description: Log Retention Days must be -1 to store indefinitely or must be at least reward wait time plus 1 day (rounded up)
- value: InvalidMultiSlotApiAccess
description: Multi-slot feature is currently disabled. Please follow multi-slot Personalizer documentation to update your loop settings to enable multi-slot functionality.
- value: PayloadSizeExceeded
description: Exceeds maximum allowed payload size.
- value: InvalidModelImportSignature
description: Given model file is not signed or does not have a valid signature.
- value: InvalidModelImportFormat
description: Given model file format is invalid.
- value: FeatureImportanceAlreadyExists
description: Feature importance with id {0} already exists.
- value: EvaluationAlreadyExists
description: Evaluation with id {0} already exists.
- value: InvalidModelRetrainDays
description: Model retrain days must be between 0 and the number of log retention days.
- value: InvalidApiAccess
description: Api is currently disabled for the instance.
- value: ModelFileAccessDenied
description: Key vault Key used for customer managed key cannot be accessed.
- value: ProblemTypeIncompatibleWithAutoOptimization
description: Auto-optimization is not compatible with multi-slot personalization.
- value: ResourceNotFound
description: Requested resource does not exist on the server.
- value: FrontEndNotFound
description: Front end not found.
- value: EvaluationNotFound
description: Offline Evaluation not found.
- value: FeatureImportanceNotFound
description: Feature importance not found.
- value: LearningSettingsNotFound
description: Learning Settings not found in evaluation.
- value: EvaluationModelNotFound
description: Model not found in evaluation.
- value: LogsPropertiesNotFound
description: Log properties not found.
- value: RequestTimeout
description: The task was canceled.
- value: ModelRankingError
description: Error while ranking actions using model. Please verify the learning settings are valid.
- value: InternalServerError
description: A generic error has occurred on the server.
- value: ModelDownloadFailed
description: Failed to download model.
- value: RankNullResponse
description: Rank call returned null response.
- value: UpdateConfigurationFailed
description: Failed to update configuration.
- value: InferenceModelUpdateFailed
description: Failed to update inference model.
- value: ModelResetFailed
description: Model reset failed.
- value: ModelPublishFailed
description: Model publish failed.
- value: ModelMetadataUpdateFailed
description: Model metadata update failed.
- value: EvaluationsGetListFailed
description: Failed to get evaluations list.
- value: OperationNotAllowed
description: This operation is not allowed at this time.
message:
description: A message explaining the error reported by the service.
type: string
target:
description: Error source element.
type: string
readOnly: true
details:
description: An array of details about specific errors that led to this reported error.
type: array
items:
$ref: '#/components/schemas/PersonalizerError'
readOnly: true
innerError:
$ref: '#/components/schemas/InternalError'
Summary:
type: object
properties:
expectedReward:
format: float
description: Average reward.
type: number
readOnly: true
confidenceInterval:
description: Confidence interval.
type: array
items:
format: float
type: number
readOnly: true
EvaluationContract:
description: A counterfactual evaluation.
required:
- endTime
- name
- policies
- startTime
type: object
properties:
enablePolicyOptimization:
description: True if the evaluation should explore for a more optimal learning settings.
type: boolean
name:
description: The name of the evaluation.
maxLength: 256
type: string
startTime:
format: date-time
description: The start time of the evaluation.
type: string
endTime:
format: date-time
description: The end time of the evaluation.
type: string
policies:
description: Additional learning settings to evaluate.
type: array
items:
$ref: '#/components/schemas/PolicyContract'
Evaluation:
description: A counterfactual evaluation.
type: object
properties:
id:
description: The ID of the evaluation.
maxLength: 256
type: string
readOnly: true
name:
description: The name of the evaluation.
maxLength: 256
type: string
readOnly: true
startTime:
format: date-time
description: The start time of the evaluation.
type: string
readOnly: true
endTime:
format: date-time
description: The end time of the evaluation.
type: string
readOnly: true
creationTime:
format: date-time
description: The creation time of the evaluation.
type: string
readOnly: true
status:
description: The status of the job processing the evaluation.
enum:
- Succeeded
- Running
- Failed
- NotSubmitted
- Timeout
- OptimalPolicyApplied
- OnlinePolicyRetained
- Canceled
type: string
readOnly: true
x-ms-enum:
name: EvaluationJobStatus
modelAsString: true
evaluationType:
description: The type of evaluation.
enum:
- Manual
- Auto
type: string
readOnly: true
x-ms-enum:
name: EvaluationType
modelAsString: true
optimalPolicy:
description: Optimal policy found by the evaluation job.
type: string
readOnly: true
content:
$ref: '#/components/schemas/EvaluationResult'
description:
description: Description of the evaluation job.
type: string
readOnly: true
InternalError:
description: An object containing more specific information than the parent object about the error.
type: object
properties:
code:
description: Detailed error code.
type: string
innererror:
$ref: '#/components/schemas/InternalError'
Data:
type: object
properties:
timeStamp:
format: date-time
description: Timestamp of the aggregation.
type: string
readOnly: true
expectedReward:
format: float
description: Average reward.
type: number
readOnly: true
confidenceInterval:
description: Confidence interval.
type: array
items:
format: float
type: number
readOnly: true
PolicyResult:
type: object
properties:
name:
description: The name of the Learning Settings.
type: string
readOnly: true
slotId:
description: Slot id. Empty for overall results and single slot results.
type: string
readOnly: true
arguments:
description: The arguments of the Learning Settings.
type: string
readOnly: true
policySource:
description: The source of the Learning Settings.
enum:
- Online
- Baseline
- Random
- Custom
- OfflineExperimentation
type: string
readOnly: true
x-ms-enum:
name: PolicySource
modelAsString: true
summary:
$ref: '#/components/schemas/Summary'
readOnly: true
timeseries:
$ref: '#/components/schemas/TimeSeries'
readOnly: true
PolicyContract:
description: Learning settings specifying how to train the model.
required:
- arguments
- name
type: object
properties:
name:
description: Name of the learning settings.
maxLength: 256
type: string
arguments:
description: Arguments of the learning settings.
maxLength: 1024
type: string
EvaluationResult:
type: object
properties:
startTime:
format: date-time
description: Start time of the time series.
type: string
readOnly: true
endTime:
format: date-time
description: End time of the time series.
type: string
readOnly: true
intervalInMinutes:
format: int32
description: Aggregation window.
type: integer
readOnly: true
value:
description: Time series of the learning settings results.
type: array
items:
$ref: '#/components/schemas/PolicyResult'
securitySchemes:
apim_key:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
x-ms-parameterized-host:
hostTemplate: '{Endpoint}'
useSchemePrefix: false
parameters:
- $ref: '#/components/parameters/Endpoint'