POST assets/{id}/vault/upload-zip

Upload DD vault as a zip archive. Request body is multipart MIME data.

Request

URL ( requires broker or seller team member authentication )

https://api.crexi.com/assets/{id}/vault/upload-zip

Parameters

id

integer

Asset Id

Required

Body Parameters

Fields

Collection of ValueString

Optional

Files

Collection of ValueFile

Optional

Example

JSON

{
  "Fields": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "Files": [
    {
      "Name": "sample string 1",
      "Value": {
        "Buffer": "QEA=",
        "FileName": "sample string 1",
        "MediaType": "sample string 2"
      }
    },
    {
      "Name": "sample string 1",
      "Value": {
        "Buffer": "QEA=",
        "FileName": "sample string 1",
        "MediaType": "sample string 2"
      }
    }
  ]
}

Response

Details

Returns an HTTP 200 OK and vault structure if upload was successfull. Returns 400 Bad Request and an error if Id or FileId parameter is invalid. Returns 401 Unauthorized if user has no access to asset's vault.

Data fields

EmptyVaultCopy

string

Tier1

VaultTierData

Tier2

VaultTierData

TotalSize

integer

UsedSize

integer

UserCanDownloadAll

boolean

VaultAccessStatus

string

Example

JSON

{
  "EmptyVaultCopy": "Some replacement for vault",
  "Tier1": {
    "AccessStatus": "Granted",
    "Files": [
      {
        "CreatedOn": "0001-01-01T00:00:00",
        "Id": 1,
        "IsNew": false,
        "IsPrivate": false,
        "Name": "Document1.pdf",
        "Size": 0,
        "Type": "File",
        "UserHasAccess": false
      },
      {
        "Children": [
          {
            "CreatedOn": "0001-01-01T00:00:00",
            "Id": 2,
            "IsNew": false,
            "IsPrivate": false,
            "Name": "Document2.pdf",
            "Size": 200,
            "Type": "File",
            "UserHasAccess": false
          },
          {
            "Children": [
              {
                "CreatedOn": "0001-01-01T00:00:00",
                "Id": 3,
                "IsNew": false,
                "IsPrivate": false,
                "Name": "Document3.pdf",
                "Size": 0,
                "Type": "File",
                "UserHasAccess": false
              }
            ],
            "CreatedOn": "0001-01-01T00:00:00",
            "Id": 0,
            "IsNew": false,
            "IsPrivate": false,
            "Name": "Folder2",
            "Type": "Folder",
            "UserHasAccess": false
          }
        ],
        "CreatedOn": "0001-01-01T00:00:00",
        "Id": 0,
        "IsNew": false,
        "IsPrivate": false,
        "Name": "Folder1",
        "Type": "Folder",
        "UserHasAccess": false
      }
    ]
  },
  "Tier2": {
    "AccessStatus": "Granted",
    "Files": [
      {
        "CreatedOn": "0001-01-01T00:00:00",
        "Id": 1,
        "IsNew": false,
        "IsPrivate": false,
        "Name": "Document1.pdf",
        "Size": 0,
        "Type": "File",
        "UserHasAccess": false
      },
      {
        "Children": [
          {
            "CreatedOn": "0001-01-01T00:00:00",
            "Id": 2,
            "IsNew": false,
            "IsPrivate": false,
            "Name": "Document2.pdf",
            "Size": 200,
            "Type": "File",
            "UserHasAccess": false
          },
          {
            "Children": [
              {
                "CreatedOn": "0001-01-01T00:00:00",
                "Id": 3,
                "IsNew": false,
                "IsPrivate": false,
                "Name": "Document3.pdf",
                "Size": 0,
                "Type": "File",
                "UserHasAccess": false
              }
            ],
            "CreatedOn": "0001-01-01T00:00:00",
            "Id": 0,
            "IsNew": false,
            "IsPrivate": false,
            "Name": "Folder2",
            "Type": "Folder",
            "UserHasAccess": false
          }
        ],
        "CreatedOn": "0001-01-01T00:00:00",
        "Id": 0,
        "IsNew": false,
        "IsPrivate": false,
        "Name": "Folder1",
        "Type": "Folder",
        "UserHasAccess": false
      }
    ]
  },
  "TotalSize": 0,
  "UsedSize": 400,
  "UserCanDownloadAll": false,
  "VaultAccessStatus": "Granted"
}