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": "9a1a212c-57de-4373-b8aa-3760f674fba4",
"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": "eaea917c-1abc-4404-a69b-6c9e518ed33b",
"uniqueId": "fab0390b-1f91-45f1-9965-4b43dbfb0944",
"jobUid": "0688f776-8a6a-401e-9c95-e72d94cea75c",
"clientUid": "5b34062f-3f55-442e-b4bb-f235a2337d7a",
"projectKeyUid": "91456b36-7dac-4b56-9e38-49d1baab05e4",
"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": "eaea917c-1abc-4404-a69b-6c9e518ed33b",
"uniqueId": "fab0390b-1f91-45f1-9965-4b43dbfb0944",
"jobUid": "0688f776-8a6a-401e-9c95-e72d94cea75c",
"clientUid": "5b34062f-3f55-442e-b4bb-f235a2337d7a",
"projectKeyUid": "91456b36-7dac-4b56-9e38-49d1baab05e4",
"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>5b34062f-3f55-442e-b4bb-f235a2337d7a</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>eaea917c-1abc-4404-a69b-6c9e518ed33b</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>0688f776-8a6a-401e-9c95-e72d94cea75c</JobUid>
<ProjectKeyUid>91456b36-7dac-4b56-9e38-49d1baab05e4</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>fab0390b-1f91-45f1-9965-4b43dbfb0944</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>5b34062f-3f55-442e-b4bb-f235a2337d7a</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>eaea917c-1abc-4404-a69b-6c9e518ed33b</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>0688f776-8a6a-401e-9c95-e72d94cea75c</JobUid>
<ProjectKeyUid>91456b36-7dac-4b56-9e38-49d1baab05e4</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>fab0390b-1f91-45f1-9965-4b43dbfb0944</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>