curl --request PATCH \
--url https://api.fireworks.ai/v1/accounts/{account_id}/evaluators/{evaluator_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"description": "<string>",
"requirements": "<string>",
"entryPoint": "<string>",
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}
'{
"name": "<string>",
"displayName": "<string>",
"description": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updateTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"requirements": "<string>",
"entryPoint": "<string>",
"status": {
"code": "OK",
"message": "<string>"
},
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}Updates evaluator metadata (display_name, description, default_dataset).
Changing requirements or entry_point triggers a rebuild. To upload new
source code, set prepare_code_upload: true then follow the upload flow.
curl --request PATCH \
--url https://api.fireworks.ai/v1/accounts/{account_id}/evaluators/{evaluator_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"description": "<string>",
"requirements": "<string>",
"entryPoint": "<string>",
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}
'{
"name": "<string>",
"displayName": "<string>",
"description": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updateTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"requirements": "<string>",
"entryPoint": "<string>",
"status": {
"code": "OK",
"message": "<string>"
},
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
If true, prepare a new code upload/build attempt by transitioning the evaluator to BUILDING state. Can be used without update_mask.
The evaluator to update. The name must be set.
A successful response.
STATE_UNSPECIFIED, ACTIVE, BUILDING, BUILD_FAILED Show child attributes
Source information for the evaluator codebase.
Show child attributes
Was this page helpful?