POST /JobAgents

Service for creating a job agent.

JobAgentId, JobAgentCreated and JobAgentLastSent will be ignored in a POST request and does therefore not need to be specified.

Request Information

URI Parameters

None.

Body Parameters

Job agent object.

JobAgent
NameDescriptionTypeAdditional information
JobAgentId

Will be ignored on POST and PUT request

integer

None.

JobAgentName

string

Required

String length: inclusive between 0 and 250

JobAgentSearchText

string

String length: inclusive between 0 and 250

JobAgentJobTypes

string

Matching regular expression pattern: ^,?[0-9]+(,[0-9]+)*,?$

String length: inclusive between 0 and 500

JobAgentJobCategories

string

Matching regular expression pattern: ^,?[0-9]+(,[0-9]+)*,?$

String length: inclusive between 0 and 500

JobAgentJobLocations

string

Matching regular expression pattern: ^(,?)(\d+£\w+£\d*£\d*£\d*£\d*,)*(\d+£\w+£\d*£\d*£\d*£\d*)?$

String length: inclusive between 0 and 1000

JobAgentRecepientEmail

string

Required

String length: inclusive between 0 and 250

JobAgentCreated

Will be ignored on POST and PUT request

date

None.

JobAgentLastSent

Will be ignored on POST and PUT request

date

None.

Request Formats

application/json, text/json

Sample:
{
  "JobAgentId": 56872,
  "JobAgentName": "My job agent",
  "JobAgentSearchText": "personal assistant",
  "JobAgentJobTypes": ",7,8,",
  "JobAgentJobCategories": ",102,",
  "JobAgentJobLocations": ",2£UK£128£98££,2£UK£130£101£812£,",
  "JobAgentRecepientEmail": "email@domain.com",
  "JobAgentCreated": "2013-03-02T12:21:46",
  "JobAgentLastSent": "2013-03-04T01:00:23"
}

application/xml, text/xml

Sample:
<JobAgent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MatchWork.API.Models">
  <JobAgentCreated>2013-03-02T12:21:46</JobAgentCreated>
  <JobAgentId>56872</JobAgentId>
  <JobAgentJobCategories>,102,</JobAgentJobCategories>
  <JobAgentJobLocations>,2£UK£128£98££,2£UK£130£101£812£,</JobAgentJobLocations>
  <JobAgentJobTypes>,7,8,</JobAgentJobTypes>
  <JobAgentLastSent>2013-03-04T01:00:23</JobAgentLastSent>
  <JobAgentName>My job agent</JobAgentName>
  <JobAgentRecepientEmail>email@domain.com</JobAgentRecepientEmail>
  <JobAgentSearchText>personal assistant</JobAgentSearchText>
</JobAgent>

application/x-www-form-urlencoded

Sample:

Sample not available.

OData support

OData query options is not supported for this service.

Query examples

/JobAgents

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.