POST api/Storage/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

None.

Body Parameters

StorageFileViewModel
NameDescriptionTypeAdditional information
UniqueId

globally unique identifier

None.

FileName

string

None.

Area

StorageAreaEnum

None.

File

HttpPostedFile

None.

InputStream

MemoryStream

None.

CompanyName

string

None.

FolderType

string

None.

StorageCategoryId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "uniqueId": "47f86ac8-df05-47b6-808e-cd33c7c94282",
  "fileName": "sample string 2",
  "area": 1,
  "file": null,
  "inputStream": null,
  "companyName": "sample string 3",
  "folderType": "sample string 4",
  "storageCategoryId": 1
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of StorageViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

CompanyUniqueId

globally unique identifier

None.

UniqueId

globally unique identifier

None.

JobUid

globally unique identifier

None.

ClientUid

globally unique identifier

None.

ProjectKeyUid

globally unique identifier

None.

StorageCategoryId

integer

None.

FileName

string

None.

Filesize

integer

None.

UniqueFileName

string

None.

Description

string

None.

IsExist

boolean

None.

FolderId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "companyId": 2,
    "companyUniqueId": "312857a8-8af3-4c7f-a727-9dac1ee94824",
    "uniqueId": "7049d827-9a29-4d27-92eb-a48368a36033",
    "jobUid": "8fceb5d6-c0ac-4263-a44f-e95b059f60ad",
    "clientUid": "cff46ab4-edd1-48e7-8228-ffdfd22fd103",
    "projectKeyUid": "70649211-4c0e-4af5-a585-8fa69a1633eb",
    "storageCategoryId": 1,
    "fileName": "sample string 5",
    "filesize": 6,
    "uniqueFileName": "sample string 7",
    "description": "sample string 8",
    "isExist": true,
    "folderId": 1
  },
  {
    "id": 1,
    "companyId": 2,
    "companyUniqueId": "312857a8-8af3-4c7f-a727-9dac1ee94824",
    "uniqueId": "7049d827-9a29-4d27-92eb-a48368a36033",
    "jobUid": "8fceb5d6-c0ac-4263-a44f-e95b059f60ad",
    "clientUid": "cff46ab4-edd1-48e7-8228-ffdfd22fd103",
    "projectKeyUid": "70649211-4c0e-4af5-a585-8fa69a1633eb",
    "storageCategoryId": 1,
    "fileName": "sample string 5",
    "filesize": 6,
    "uniqueFileName": "sample string 7",
    "description": "sample string 8",
    "isExist": true,
    "folderId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfStorageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
  <StorageViewModel>
    <ClientUid>cff46ab4-edd1-48e7-8228-ffdfd22fd103</ClientUid>
    <CompanyId>2</CompanyId>
    <CompanyUniqueId>312857a8-8af3-4c7f-a727-9dac1ee94824</CompanyUniqueId>
    <Description>sample string 8</Description>
    <FileName>sample string 5</FileName>
    <Filesize>6</Filesize>
    <FolderId>1</FolderId>
    <Id>1</Id>
    <IsExist>true</IsExist>
    <JobUid>8fceb5d6-c0ac-4263-a44f-e95b059f60ad</JobUid>
    <ProjectKeyUid>70649211-4c0e-4af5-a585-8fa69a1633eb</ProjectKeyUid>
    <StorageCategoryId>1</StorageCategoryId>
    <UniqueFileName>sample string 7</UniqueFileName>
    <UniqueId>7049d827-9a29-4d27-92eb-a48368a36033</UniqueId>
  </StorageViewModel>
  <StorageViewModel>
    <ClientUid>cff46ab4-edd1-48e7-8228-ffdfd22fd103</ClientUid>
    <CompanyId>2</CompanyId>
    <CompanyUniqueId>312857a8-8af3-4c7f-a727-9dac1ee94824</CompanyUniqueId>
    <Description>sample string 8</Description>
    <FileName>sample string 5</FileName>
    <Filesize>6</Filesize>
    <FolderId>1</FolderId>
    <Id>1</Id>
    <IsExist>true</IsExist>
    <JobUid>8fceb5d6-c0ac-4263-a44f-e95b059f60ad</JobUid>
    <ProjectKeyUid>70649211-4c0e-4af5-a585-8fa69a1633eb</ProjectKeyUid>
    <StorageCategoryId>1</StorageCategoryId>
    <UniqueFileName>sample string 7</UniqueFileName>
    <UniqueId>7049d827-9a29-4d27-92eb-a48368a36033</UniqueId>
  </StorageViewModel>
</ArrayOfStorageViewModel>