POST api/Order/{id}/Document

Upload file for a new vacancy. Note: Currently the document is stored at the order level only.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

DocumentDTO
NameDescriptionTypeAdditional information
DocumentName

string

None.

Source

string

None.

FolderName

string

None.

DocumentContent

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DocumentName": "sample string 1",
  "Source": "sample string 2",
  "FolderName": "sample string 3",
  "DocumentContent": "sample string 4"
}

text/xml

Sample:
<DocumentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <DocumentContent>sample string 4</DocumentContent>
  <DocumentName>sample string 1</DocumentName>
  <FolderName>sample string 3</FolderName>
  <Source>sample string 2</Source>
</DocumentDTO>

multipart/form-data

Sample:
<DocumentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><DocumentContent>sample string 4</DocumentContent><DocumentName>sample string 1</DocumentName><FolderName>sample string 3</FolderName><Source>sample string 2</Source></DocumentDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

Collection of string

None.

EntityId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "EntityId": 1,
  "Success": true
}

text/xml

Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models">
  <EntityId>1</EntityId>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
</JsonResponse>

multipart/form-data

Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models"><EntityId>1</EntityId><ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></ErrorMessage><Success>true</Success></JsonResponse>