POST api/Storage
Request Information
URI Parameters
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": "73cd5f7a-d977-4efe-8929-ec6b2bd06cb2",
"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": "37e73f77-98d8-48ce-bc32-dfbd52bf13ee",
"uniqueId": "1614b8a8-8404-4c72-9b2b-afafa067da00",
"jobUid": "a4533c00-51d8-4d15-a89e-7f3e0c2b5357",
"clientUid": "5a924f3b-6a7d-450b-9954-fa18b958e7b9",
"projectKeyUid": "8c1cba09-b503-447e-8b63-a9c0b211eb81",
"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": "37e73f77-98d8-48ce-bc32-dfbd52bf13ee",
"uniqueId": "1614b8a8-8404-4c72-9b2b-afafa067da00",
"jobUid": "a4533c00-51d8-4d15-a89e-7f3e0c2b5357",
"clientUid": "5a924f3b-6a7d-450b-9954-fa18b958e7b9",
"projectKeyUid": "8c1cba09-b503-447e-8b63-a9c0b211eb81",
"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>5a924f3b-6a7d-450b-9954-fa18b958e7b9</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>37e73f77-98d8-48ce-bc32-dfbd52bf13ee</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>a4533c00-51d8-4d15-a89e-7f3e0c2b5357</JobUid>
<ProjectKeyUid>8c1cba09-b503-447e-8b63-a9c0b211eb81</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>1614b8a8-8404-4c72-9b2b-afafa067da00</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>5a924f3b-6a7d-450b-9954-fa18b958e7b9</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>37e73f77-98d8-48ce-bc32-dfbd52bf13ee</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>a4533c00-51d8-4d15-a89e-7f3e0c2b5357</JobUid>
<ProjectKeyUid>8c1cba09-b503-447e-8b63-a9c0b211eb81</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>1614b8a8-8404-4c72-9b2b-afafa067da00</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>