Datavolumes
Bearer authentication
Which datavolumes to return in the GET datavolumes response. Originated - datavolumes that are originated in the permitted scopes of the caller. UsableInProject - datavolumes that can be used in a specific project; if you use this value, you must also provide the project ID in the "usableInProjectId" query param.
OriginatedPossible values: Only when using "UsableInProject" requestType; Filter results for only datavolumes that are shared with - or originated in - the project.
5The offset of the first item returned in the collection.
100The maximum number of entries to return.
50Sort results by a parameters.
Sort results in descending or ascending order.
ascPossible values: Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.
["name!=some-datavolume-name"]Filter results by a free text search.
test projectExecuted successfully.
1Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/datavolumes?requestType=Originated HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"next": 1,
"datavolumes": [
{
"id": "71f69d83-ba66-4822-adf5-55ce55efd210",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"updatedBy": "user@run.ai",
"name": "datavolume-a",
"description": "Results of experiment X",
"originPvcName": "pvc-a",
"projectId": "5",
"shouldDeleteOriginalVolume": false,
"useOriginalVolume": true,
"projectName": "project-a",
"departmentId": "department-a",
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210"
},
{
"status": {
"phase": "Ready",
"phaseMessage": "Failed to copy pvc to project 'project-a'",
"conditions": [
{
"type": "PvcsCreated",
"status": "False",
"message": "Failed to create pvc in namespace 'runai-proj1'",
"reason": "ErrorCreatingPvc",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"datavolumePvcName": "datavolume-pvc-1",
"datavolumePvName": "datavolume-pv-1"
}
}
]
}Bearer authentication
The name of the new data volume.
datavolume-aPattern: ^[a-z][-a-z0-9]{0,62}$A brief description of the data volume and its purpose.
Results of experiment XThe name of the existing PVC that the new data volume is based on.
pvc-aThe ID of the project whose namespace contains the origin PVC.
5True is not supported. This parameter will be removed in a future release.
falseExample: falseIf true, the original storage volume will be used together with the data volume. Default true as long as "shouldDeleteOriginalVolume" is false.
trueExample: trueCreated
71f69d83-ba66-4822-adf5-55ce55efd210user@run.aiuser@run.aiThe name of the new data volume.
datavolume-aPattern: ^[a-z][-a-z0-9]{0,62}$A brief description of the data volume and its purpose.
Results of experiment XThe name of the existing PVC that the new data volume is based on.
pvc-aThe ID of the project whose namespace contains the origin PVC.
5True is not supported. This parameter will be removed in a future release.
falseExample: falseIf true, the original storage volume will be used together with the data volume. Default true as long as "shouldDeleteOriginalVolume" is false.
trueExample: trueproject-adepartment-aThe id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
POST /api/v1/datavolumes HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"name": "datavolume-a",
"description": "Results of experiment X",
"originPvcName": "pvc-a",
"projectId": "5",
"shouldDeleteOriginalVolume": false,
"useOriginalVolume": true
}{
"id": "71f69d83-ba66-4822-adf5-55ce55efd210",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"updatedBy": "user@run.ai",
"name": "datavolume-a",
"description": "Results of experiment X",
"originPvcName": "pvc-a",
"projectId": "5",
"shouldDeleteOriginalVolume": false,
"useOriginalVolume": true,
"projectName": "project-a",
"departmentId": "department-a",
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
"sharedScopes": [
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
"scopeName": "project-a",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai"
}
],
"status": {
"phase": "Ready",
"phaseMessage": "Failed to copy pvc to project 'project-a'",
"conditions": [
{
"type": "PvcsCreated",
"status": "False",
"message": "Failed to create pvc in namespace 'runai-proj1'",
"reason": "ErrorCreatingPvc",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"datavolumePvcName": "datavolume-pvc-1",
"datavolumePvName": "datavolume-pv-1"
}
}Bearer authentication
The id of the datavolume to retrieve
71f69d83-ba66-4822-adf5-55ce55efd210Executed successfully.
71f69d83-ba66-4822-adf5-55ce55efd210user@run.aiuser@run.aiThe name of the new data volume.
datavolume-aPattern: ^[a-z][-a-z0-9]{0,62}$A brief description of the data volume and its purpose.
Results of experiment XThe name of the existing PVC that the new data volume is based on.
pvc-aThe ID of the project whose namespace contains the origin PVC.
5True is not supported. This parameter will be removed in a future release.
falseExample: falseIf true, the original storage volume will be used together with the data volume. Default true as long as "shouldDeleteOriginalVolume" is false.
trueExample: trueproject-adepartment-aThe id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/datavolumes/{datavolumeId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "71f69d83-ba66-4822-adf5-55ce55efd210",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"updatedBy": "user@run.ai",
"name": "datavolume-a",
"description": "Results of experiment X",
"originPvcName": "pvc-a",
"projectId": "5",
"shouldDeleteOriginalVolume": false,
"useOriginalVolume": true,
"projectName": "project-a",
"departmentId": "department-a",
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
"sharedScopes": [
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
"scopeName": "project-a",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai"
}
],
"status": {
"phase": "Ready",
"phaseMessage": "Failed to copy pvc to project 'project-a'",
"conditions": [
{
"type": "PvcsCreated",
"status": "False",
"message": "Failed to create pvc in namespace 'runai-proj1'",
"reason": "ErrorCreatingPvc",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"datavolumePvcName": "datavolume-pvc-1",
"datavolumePvName": "datavolume-pv-1"
}
}Bearer authentication
The id of the datavolume to retrieve
71f69d83-ba66-4822-adf5-55ce55efd210Accepted.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/datavolumes/{datavolumeId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 202,
"message": "Request has been accepted."
}Bearer authentication
The id of the datavolume to retrieve
71f69d83-ba66-4822-adf5-55ce55efd210Results of experiment XExecuted successfully.
71f69d83-ba66-4822-adf5-55ce55efd210user@run.aiuser@run.aiThe name of the new data volume.
datavolume-aPattern: ^[a-z][-a-z0-9]{0,62}$A brief description of the data volume and its purpose.
Results of experiment XThe name of the existing PVC that the new data volume is based on.
pvc-aThe ID of the project whose namespace contains the origin PVC.
5True is not supported. This parameter will be removed in a future release.
falseExample: falseIf true, the original storage volume will be used together with the data volume. Default true as long as "shouldDeleteOriginalVolume" is false.
trueExample: trueproject-adepartment-aThe id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PATCH /api/v1/datavolumes/{datavolumeId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"description": "Results of experiment X"
}{
"id": "71f69d83-ba66-4822-adf5-55ce55efd210",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"updatedBy": "user@run.ai",
"name": "datavolume-a",
"description": "Results of experiment X",
"originPvcName": "pvc-a",
"projectId": "5",
"shouldDeleteOriginalVolume": false,
"useOriginalVolume": true,
"projectName": "project-a",
"departmentId": "department-a",
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
"status": {
"phase": "Ready",
"phaseMessage": "Failed to copy pvc to project 'project-a'",
"conditions": [
{
"type": "PvcsCreated",
"status": "False",
"message": "Failed to create pvc in namespace 'runai-proj1'",
"reason": "ErrorCreatingPvc",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"datavolumePvcName": "datavolume-pvc-1",
"datavolumePvName": "datavolume-pv-1"
}
}Bearer authentication
the name of the datavolume
The id of the cluster
d73a738f-fab3-430a-8fa3-5241493d7128The name is available to use
No content
Unauthorized
Forbidden
The specified resource already exists
unexpected error
GET /api/v1/datavolumes/name-availability?dataName=text&clusterId=d73a738f-fab3-430a-8fa3-5241493d7128 HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Bearer authentication
Which datavolumes to return in the GET datavolumes response. Originated - datavolumes that are originated in the permitted scopes of the caller. UsableInProject - datavolumes that can be used in a specific project; if you use this value, you must also provide the project ID in the "usableInProjectId" query param.
OriginatedPossible values: Only when using "UsableInProject" requestType; Filter results for only datavolumes that are shared with - or originated in - the project.
5Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.
["name!=some-datavolume-name"]Filter results by a free text search.
test projectExecuted successfully.
1Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/datavolumes/count?requestType=Originated HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1
}Bearer authentication
The id of the datavolume to retrieve
71f69d83-ba66-4822-adf5-55ce55efd210Executed successfully.
a418ed33-9399-48c0-a890-122cadd13bfdThe name of the scope
project-auser@run.aiUnauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/datavolumes/{datavolumeId}/sharedScopes HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
"scopeName": "project-a",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai"
}
]Bearer authentication
The id of the datavolume to retrieve
71f69d83-ba66-4822-adf5-55ce55efd210Executed successfully.
a418ed33-9399-48c0-a890-122cadd13bfdThe name of the scope
project-auser@run.aiBad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PATCH /api/v1/datavolumes/{datavolumeId}/sharedScopes HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 166
{
"add": [
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd"
}
],
"remove": [
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd"
}
]
}[
{
"scopeType": "cluster",
"scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
"scopeName": "project-a",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai"
}
]Last updated