Volumes
Update a volume
Update an existing volume's configuration or contents
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Volume ID or name.
Request Body
application/json
Updated volume configuration
content?
Content specifies the new content to preload to this volume.
name?string
Name is the new unique identifier for the volume within the project
type?"readOnly"
Type is the new volume type (currently only "readOnly" is supported)
Value in
- "readOnly"
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/deployments/storage/volumes/string" \ -H "Content-Type: application/json" \ -d '{}'{ "content": { "files": [ { "last_modified": "string", "name": "string", "size": 0 } ], "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "created_at": "string", "current_version": 0, "id": "string", "mounted_by": [ "string" ], "name": "string", "object": "string", "status": "ready", "status_message": "string", "type": "readOnly", "updated_at": "string", "version_history": { "property1": { "content": { "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "mounted_by": [ "string" ], "status": "ready", "status_message": "string", "version": 0 }, "property2": { "content": { "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "mounted_by": [ "string" ], "status": "ready", "status_message": "string", "version": 0 } }}