curl --request GET \
--url https://api.example.com/v2/{entity}/{project}/ops/{object_id}/versions/{digest} \
--header 'Authorization: Basic <encoded-value>'{
"object_id": "<string>",
"digest": "<string>",
"version_index": 123,
"created_at": "2023-11-07T05:31:56Z",
"code": "<string>"
}Get an op object.
curl --request GET \
--url https://api.example.com/v2/{entity}/{project}/ops/{object_id}/versions/{digest} \
--header 'Authorization: Basic <encoded-value>'{
"object_id": "<string>",
"digest": "<string>",
"version_index": 123,
"created_at": "2023-11-07T05:31:56Z",
"code": "<string>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Whether to eagerly load the op code
Successful Response
Response model for reading an Op object.
The code field contains the actual source code of the op.
Was this page helpful?