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. |
Request Formats
application/json, text/json
Sample:
{
"uniqueId": "38f4c1bf-ee5f-4004-9f2b-d734ebd3313a",
"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": "677097d2-029e-4c99-bda0-d03deed8f660",
"uniqueId": "0b56b92e-829d-4fb5-9df9-7cf1d4a48c89",
"jobUid": "e7cff342-a922-4c47-bccc-d88f80c97187",
"clientUid": "c6d76bd4-bfb9-4e3f-9036-39b5522d545d",
"projectKeyUid": "bf7cd796-1a18-4dde-8394-34909bc4b000",
"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": "677097d2-029e-4c99-bda0-d03deed8f660",
"uniqueId": "0b56b92e-829d-4fb5-9df9-7cf1d4a48c89",
"jobUid": "e7cff342-a922-4c47-bccc-d88f80c97187",
"clientUid": "c6d76bd4-bfb9-4e3f-9036-39b5522d545d",
"projectKeyUid": "bf7cd796-1a18-4dde-8394-34909bc4b000",
"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>c6d76bd4-bfb9-4e3f-9036-39b5522d545d</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>677097d2-029e-4c99-bda0-d03deed8f660</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>e7cff342-a922-4c47-bccc-d88f80c97187</JobUid>
<ProjectKeyUid>bf7cd796-1a18-4dde-8394-34909bc4b000</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>0b56b92e-829d-4fb5-9df9-7cf1d4a48c89</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>c6d76bd4-bfb9-4e3f-9036-39b5522d545d</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>677097d2-029e-4c99-bda0-d03deed8f660</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>e7cff342-a922-4c47-bccc-d88f80c97187</JobUid>
<ProjectKeyUid>bf7cd796-1a18-4dde-8394-34909bc4b000</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>0b56b92e-829d-4fb5-9df9-7cf1d4a48c89</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>