Drive

Update Drive

Update Drive from a Drive identifier

put/2/drive/{drive_id}

Path parameters

drive_idinteger required

Drive identifier

Request body

bill_referencestring nullable
customer_namestring
descriptionstring nullable

Description of the resource {name}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "maintenance_reason": "demo_end",
    "account": {
      "name": "Secret Organization",
      "phone": "+41790000000",
      "website": "https://www.infomaniak.com"
    },
    "role": "admin",
    "rewind": {
      "status": "canceled",
      "mode": "directory",
      "archiving": "all",
      "directory": {
        "name": "Directory V3",
        "path": "/full/path/Directory V3",
        "type": "file",
        "status": "locked",
        "drive_id": 1111,
        "depth": 3,
        "shared_root_id": 1,
        "sharelink": {
          "url": "https://kdrive.infomaniak.com/app/share/xxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
          "right": "inherit"
        },
        "lock": {
          "description": "365",
          "token": "onlyoffice:123456"
        },
        "categories": [
          {
            "user_validation": "TO_VALIDATE",
            "category": {
              "color": "#FF1493"
            }
          }
        ],
        "color": "#0098ff",
        "external_import": {
          "application": "dropbox",
          "status": "canceled"
        }
      }
    },
    "categories": [
      {
        "color": "#FF1493"
      }
    ],
    "tags": [
      {
        "id": 1234,
        "name": "My tag name",
        "color": 4,
        "product_count": 2
      }
    ],
    "capabilities": {
      "search": "content"
    },
    "settings": {
      "office": {
        "presentation": "365",
        "spreadsheet": "365",
        "text": "365",
        "default_mode": "desktop"
      },
      "report": {
        "storage_report": {
          "frequency": "monthly"
        }
      }
    },
    "pack": {
      "name": "team",
      "display_name": "Team"
    }
  }
}

Changes