Reference
SDKs
- Overview
- Openlayer SDKs
CLI
- Overview
- CLI global options
- Commands
REST API
- Overview
- Workspaces
- Invites and API keys
- Projects
- Tests
- Development
- Monitoring
Development
Retrieve project commit
Retrieve a project version (commit) by its id.
from openlayer import Openlayer
client = Openlayer()
client.commits.retrieve(project_version_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"status": "completed",
"statusMessage": "Commit successfully processed.",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"commit": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"dateCreated": "2024-03-22T11:31:01.185Z",
"fileSize": 1024,
"message": "Updated the prompt.",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"storageUri": "s3://...",
"gitCommitSha": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gitCommitRef": "main",
"gitCommitUrl": "<string>"
},
"deploymentStatus": "Deployed",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"archived": false,
"dateArchived": "2024-03-22T11:31:01.185Z",
"passingGoalCount": 5,
"failingGoalCount": 1,
"totalGoalCount": 6,
"links": {
"app": "https://app.openlayer.com/myWorkspace/3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your workspace API key. See Find your API key for more information.
Path Parameters
The project version (commit) id.
Response
200
application/json
Response OK.
The response is of type object
.
Was this page helpful?
from openlayer import Openlayer
client = Openlayer()
client.commits.retrieve(project_version_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"status": "completed",
"statusMessage": "Commit successfully processed.",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"commit": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"dateCreated": "2024-03-22T11:31:01.185Z",
"fileSize": 1024,
"message": "Updated the prompt.",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"storageUri": "s3://...",
"gitCommitSha": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gitCommitRef": "main",
"gitCommitUrl": "<string>"
},
"deploymentStatus": "Deployed",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"archived": false,
"dateArchived": "2024-03-22T11:31:01.185Z",
"passingGoalCount": 5,
"failingGoalCount": 1,
"totalGoalCount": 6,
"links": {
"app": "https://app.openlayer.com/myWorkspace/3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
Assistant
Responses are generated using AI and may contain mistakes.