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": "d21bb9bb-5d67-421f-9bea-1e05a9a635af",
"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": "68ec5a1f-4c85-4ee9-a54c-31f68ee19f30",
"uniqueId": "990243a8-9573-4fbd-8881-9af183eed06d",
"jobUid": "295381c6-a619-41b6-866d-fbd5d8d57f02",
"clientUid": "59c97388-a588-4d99-b0a7-13e3b061bdb8",
"projectKeyUid": "f6b55ebf-02bf-456e-9ec9-8acd25e04d09",
"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": "68ec5a1f-4c85-4ee9-a54c-31f68ee19f30",
"uniqueId": "990243a8-9573-4fbd-8881-9af183eed06d",
"jobUid": "295381c6-a619-41b6-866d-fbd5d8d57f02",
"clientUid": "59c97388-a588-4d99-b0a7-13e3b061bdb8",
"projectKeyUid": "f6b55ebf-02bf-456e-9ec9-8acd25e04d09",
"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>59c97388-a588-4d99-b0a7-13e3b061bdb8</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>68ec5a1f-4c85-4ee9-a54c-31f68ee19f30</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>295381c6-a619-41b6-866d-fbd5d8d57f02</JobUid>
<ProjectKeyUid>f6b55ebf-02bf-456e-9ec9-8acd25e04d09</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>990243a8-9573-4fbd-8881-9af183eed06d</UniqueId>
</StorageViewModel>
<StorageViewModel>
<ClientUid>59c97388-a588-4d99-b0a7-13e3b061bdb8</ClientUid>
<CompanyId>2</CompanyId>
<CompanyUniqueId>68ec5a1f-4c85-4ee9-a54c-31f68ee19f30</CompanyUniqueId>
<Description>sample string 8</Description>
<FileName>sample string 5</FileName>
<Filesize>6</Filesize>
<FolderId>1</FolderId>
<Id>1</Id>
<IsExist>true</IsExist>
<JobUid>295381c6-a619-41b6-866d-fbd5d8d57f02</JobUid>
<ProjectKeyUid>f6b55ebf-02bf-456e-9ec9-8acd25e04d09</ProjectKeyUid>
<StorageCategoryId>1</StorageCategoryId>
<UniqueFileName>sample string 7</UniqueFileName>
<UniqueId>990243a8-9573-4fbd-8881-9af183eed06d</UniqueId>
</StorageViewModel>
</ArrayOfStorageViewModel>