POST api/JobSeeker/OpportunityDetail/UpdateDocuments

Request Information

URI Parameters

None.

Body Parameters

DocumentSubmissionInput
NameDescriptionTypeAdditional information
JobId

integer

None.

SelectedDocuments

Collection of DocumentSubmissionDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "jobId": 1,
  "selectedDocuments": [
    {
      "applicationDocumentId": 1,
      "selectedIds": [
        1,
        2
      ]
    },
    {
      "applicationDocumentId": 1,
      "selectedIds": [
        1,
        2
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<DocumentSubmissionInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIService.Models.JobSeeker">
  <JobId>1</JobId>
  <SelectedDocuments>
    <DocumentSubmissionDetails>
      <ApplicationDocumentId>1</ApplicationDocumentId>
      <SelectedIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </SelectedIds>
    </DocumentSubmissionDetails>
    <DocumentSubmissionDetails>
      <ApplicationDocumentId>1</ApplicationDocumentId>
      <SelectedIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </SelectedIds>
    </DocumentSubmissionDetails>
  </SelectedDocuments>
</DocumentSubmissionInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DocumentSubmissionOutput
NameDescriptionTypeAdditional information
Success

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": false,
  "errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DocumentSubmissionOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIService.Models.JobSeeker">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
</DocumentSubmissionOutput>