POST api/Storage/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
Body Parameters
StorageFileViewModel| Name | Description | Type | Additional 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": "0bc71f56-ca64-4973-8113-8ea2d0fbf957",
"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| Name | Description | Type | Additional 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": "d812164c-5f23-45a3-9eed-9b7ba311b64f",
"uniqueId": "5a179092-eb64-4e49-95d9-d595c359582d",
"jobUid": "3148b895-f167-4a52-8cdd-c41118e8ef4f",
"clientUid": "898aeb20-524b-4811-bec5-3d5a800a39e8",
"projectKeyUid": "fb3d57df-1f14-4603-ab30-798dee0fb139",
"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": "d812164c-5f23-45a3-9eed-9b7ba311b64f",
"uniqueId": "5a179092-eb64-4e49-95d9-d595c359582d",
"jobUid": "3148b895-f167-4a52-8cdd-c41118e8ef4f",
"clientUid": "898aeb20-524b-4811-bec5-3d5a800a39e8",
"projectKeyUid": "fb3d57df-1f14-4603-ab30-798dee0fb139",
"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>898aeb20-524b-4811-bec5-3d5a800a39e8</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>d812164c-5f23-45a3-9eed-9b7ba311b64f</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>3148b895-f167-4a52-8cdd-c41118e8ef4f</JobUid>
<ProjectKeyUid>fb3d57df-1f14-4603-ab30-798dee0fb139</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>5a179092-eb64-4e49-95d9-d595c359582d</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>898aeb20-524b-4811-bec5-3d5a800a39e8</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>d812164c-5f23-45a3-9eed-9b7ba311b64f</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>3148b895-f167-4a52-8cdd-c41118e8ef4f</JobUid>
<ProjectKeyUid>fb3d57df-1f14-4603-ab30-798dee0fb139</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>5a179092-eb64-4e49-95d9-d595c359582d</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>