POST v1/Owners/{ownerId}/JobOrders/{jobId}/Pictures

This will give the ability to move pictures from a job order to another Joborder To move picture just pass picture current ID in form body as -[{"Id":103351},{"Id":103352}] and JObid in Url

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ownerId

string

Required

jobId

string

Required

Body Parameters

PictureEntities

Collection of PictureEntity
NameDescriptionTypeAdditional 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": "a4b3d02b-ca7f-48e6-b7fb-ab81dd671aba"
  },
  {
    "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": "a4b3d02b-ca7f-48e6-b7fb-ab81dd671aba"
  }
]

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>a4b3d02b-ca7f-48e6-b7fb-ab81dd671aba</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>a4b3d02b-ca7f-48e6-b7fb-ab81dd671aba</UserID>
  </PictureEntity>
</ArrayOfPictureEntity>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.