DELETE v1/Owners/{ownerId}/JobOrders/{jobId}/Pictures
This will give the ability to delete pictures of a job order To delete picture just pass picture current ID in form body as -[{"Id":103351},{"Id":103352}]
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ownerId | string |
Required |
|
| jobId | string |
Required |
Body Parameters
PictureEntities
Collection of PictureEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
None. |
|
| StorageKey | string |
None. |
|
| FileID | string |
None. |
|
| FileSize | integer |
None. |
|
| Title | string |
None. |
|
| ContextID | string |
None. |
|
| UserID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": "sample string 1",
"Name": "sample string 2",
"StorageKey": "sample string 3",
"FileID": "sample string 4",
"FileSize": 5,
"Title": "sample string 6",
"ContextID": "sample string 7",
"UserID": "245b84ab-0d47-4ef0-b956-e3839e09b663"
},
{
"Id": "sample string 1",
"Name": "sample string 2",
"StorageKey": "sample string 3",
"FileID": "sample string 4",
"FileSize": 5,
"Title": "sample string 6",
"ContextID": "sample string 7",
"UserID": "245b84ab-0d47-4ef0-b956-e3839e09b663"
}
]
application/xml, text/xml
Sample:
<ArrayOfPictureEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TGG.JOCService.Core.Models.JobOrder">
<PictureEntity>
<ContextID>sample string 7</ContextID>
<FileID>sample string 4</FileID>
<FileSize>5</FileSize>
<Id>sample string 1</Id>
<Name>sample string 2</Name>
<StorageKey>sample string 3</StorageKey>
<Title>sample string 6</Title>
<UserID>245b84ab-0d47-4ef0-b956-e3839e09b663</UserID>
</PictureEntity>
<PictureEntity>
<ContextID>sample string 7</ContextID>
<FileID>sample string 4</FileID>
<FileSize>5</FileSize>
<Id>sample string 1</Id>
<Name>sample string 2</Name>
<StorageKey>sample string 3</StorageKey>
<Title>sample string 6</Title>
<UserID>245b84ab-0d47-4ef0-b956-e3839e09b663</UserID>
</PictureEntity>
</ArrayOfPictureEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.