PLATINUM DOCS
ApiVolumes

PATCH /v1/volumes/{v}

PATCH
/v1/volumes/{v}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

v*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Any of name, sync_mode and durability, in one update (vol/service.ts updateVolume). With one sync mode for the organization, sync_mode is accepted and ignored. An empty body is a 400.

Properties1 <= properties

Response Body

application/json

application/json

curl -X PATCH "https://example.com/v1/volumes/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "kind": "volume",  "type": "sharedfs",  "temporary": true,  "head_commit_id": "string",  "size_limit_bytes": 0,  "logical_bytes": 0,  "unique_bytes": 0,  "file_count": 0,  "region": "string",  "forked_from": {    "volume_id": "string",    "commit_id": "string"  },  "created_at": "string",  "updated_at": "string",  "last_commit_at": "string",  "live_mounts": 0,  "mounted_by": [    {      "id": "string",      "name": "string"    }  ],  "source": {    "id": "string",    "provider": "aws",    "endpoint": "string",    "region": "string",    "bucket": "string",    "prefix": "string",    "state": "importing",    "error": {      "code": "string",      "message": "string"    },    "last_import_at": "string",    "last_export_at": "string",    "created_at": "string",    "last_run": {      "id": "string",      "direction": "import",      "state": "queued",      "created_at": "string",      "started_at": "string",      "finished_at": "string",      "copied": 0,      "copied_bytes": 0,      "unchanged": 0,      "skipped": 0,      "conflicts": 0,      "failed": 0,      "problems": [        {          "path": "string",          "reason": "string"        }      ],      "error": {        "code": "string",        "message": "string"      }    }  },  "durability": "string",  "durability_effective": "string",  "durability_fallback_reason": "string"}
Empty
{  "error": "string",  "code": "string",  "limit": "string",  "max": 0,  "used": 0,  "requested": 0,  "reason": "string"}