POST api/Storage/DeleteFile
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. |
|
| IsRelatedFile | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"uniqueId": "0280c530-4986-431c-b6b3-bc9614b0384f",
"fileName": "sample string 2",
"area": 1,
"file": null,
"inputStream": null,
"companyName": "sample string 3",
"folderType": "sample string 4",
"storageCategoryId": 1,
"isRelatedFile": true
}
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": "2c3fa8f9-40fe-4b47-b4d7-80236f6fd886",
"uniqueId": "585123a1-b7b3-4543-98b7-f7525fb35f0a",
"jobUid": "5c0dea8c-c0d2-4908-9fd2-9672d6e856e0",
"clientUid": "4b095992-fe83-4d1e-8a64-448b7770a152",
"projectKeyUid": "0e78b848-c32d-4a03-a589-26a001c09f16",
"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": "2c3fa8f9-40fe-4b47-b4d7-80236f6fd886",
"uniqueId": "585123a1-b7b3-4543-98b7-f7525fb35f0a",
"jobUid": "5c0dea8c-c0d2-4908-9fd2-9672d6e856e0",
"clientUid": "4b095992-fe83-4d1e-8a64-448b7770a152",
"projectKeyUid": "0e78b848-c32d-4a03-a589-26a001c09f16",
"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>4b095992-fe83-4d1e-8a64-448b7770a152</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>2c3fa8f9-40fe-4b47-b4d7-80236f6fd886</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>5c0dea8c-c0d2-4908-9fd2-9672d6e856e0</JobUid>
<ProjectKeyUid>0e78b848-c32d-4a03-a589-26a001c09f16</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>585123a1-b7b3-4543-98b7-f7525fb35f0a</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>4b095992-fe83-4d1e-8a64-448b7770a152</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>2c3fa8f9-40fe-4b47-b4d7-80236f6fd886</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>5c0dea8c-c0d2-4908-9fd2-9672d6e856e0</JobUid>
<ProjectKeyUid>0e78b848-c32d-4a03-a589-26a001c09f16</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>585123a1-b7b3-4543-98b7-f7525fb35f0a</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>