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": "9cb7e6c1-3d4f-42fa-86ed-007232e635b0",
"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": "b034655a-4b23-4c6d-af6d-711fc89aeb1e",
"uniqueId": "9d5fef9b-17c1-4900-a1d5-89a46c282bd7",
"jobUid": "d2013d45-651a-4b9a-bd11-7d3b5724ae9c",
"clientUid": "8d7822bd-2f7b-403f-865c-0b292a2cb979",
"projectKeyUid": "21ee60cf-efb8-4697-a3ed-87b413e6456b",
"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": "b034655a-4b23-4c6d-af6d-711fc89aeb1e",
"uniqueId": "9d5fef9b-17c1-4900-a1d5-89a46c282bd7",
"jobUid": "d2013d45-651a-4b9a-bd11-7d3b5724ae9c",
"clientUid": "8d7822bd-2f7b-403f-865c-0b292a2cb979",
"projectKeyUid": "21ee60cf-efb8-4697-a3ed-87b413e6456b",
"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>8d7822bd-2f7b-403f-865c-0b292a2cb979</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>b034655a-4b23-4c6d-af6d-711fc89aeb1e</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>d2013d45-651a-4b9a-bd11-7d3b5724ae9c</JobUid>
<ProjectKeyUid>21ee60cf-efb8-4697-a3ed-87b413e6456b</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>9d5fef9b-17c1-4900-a1d5-89a46c282bd7</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>8d7822bd-2f7b-403f-865c-0b292a2cb979</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>b034655a-4b23-4c6d-af6d-711fc89aeb1e</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>d2013d45-651a-4b9a-bd11-7d3b5724ae9c</JobUid>
<ProjectKeyUid>21ee60cf-efb8-4697-a3ed-87b413e6456b</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>9d5fef9b-17c1-4900-a1d5-89a46c282bd7</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>