POST api/Job/Post

Request Information

URI Parameters

None.

Body Parameters

LiteJobSmall
NameDescriptionTypeAdditional information
DateFromScheduled

date

None.

DateToScheduled

date

None.

FixedAmount

decimal number

None.

FlexibleLocation

boolean

None.

HourlyRate

decimal number

None.

Hours

decimal number

None.

JobChildren

Collection of LiteJobChildren

None.

JobDescription

string

None.

JobDescriptionDayTime

string

None.

NextPaymentHours

decimal number

None.

JobSubjectId

integer

None.

JobSubjectName

string

None.

JobTypeId

integer

None.

JobTypeName

string

None.

Location

string

None.

YearLevel

byte

None.

ParentSchoolId

integer

None.

Frequency

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DateFromScheduled": "2019-12-09T16:06:08.8526206+00:00",
  "DateToScheduled": "2019-12-09T16:06:08.8526206+00:00",
  "FixedAmount": 1.0,
  "FlexibleLocation": true,
  "HourlyRate": 1.0,
  "Hours": 1.0,
  "JobChildren": [
    {
      "Id": 1,
      "JobId": 2,
      "UserChildren": {
        "Id": 1,
        "ParentUserId": "sample string 2",
        "Name": "sample string 3",
        "AgeText": "sample string 4",
        "Gender": 64,
        "GenderName": "sample string 6"
      },
      "UserChildrenId": 3
    },
    {
      "Id": 1,
      "JobId": 2,
      "UserChildren": {
        "Id": 1,
        "ParentUserId": "sample string 2",
        "Name": "sample string 3",
        "AgeText": "sample string 4",
        "Gender": 64,
        "GenderName": "sample string 6"
      },
      "UserChildrenId": 3
    }
  ],
  "JobDescription": "sample string 3",
  "JobDescriptionDayTime": "sample string 4",
  "NextPaymentHours": 1.0,
  "JobSubjectId": 1,
  "JobSubjectName": "sample string 5",
  "JobTypeId": 6,
  "JobTypeName": "sample string 7",
  "Location": "sample string 8",
  "YearLevel": 64,
  "ParentSchoolId": 1,
  "Frequency": 9
}

application/xml, text/xml

Sample:
<LiteJobSmall xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <DateFromScheduled>2019-12-09T16:06:08.8526206+00:00</DateFromScheduled>
  <DateToScheduled>2019-12-09T16:06:08.8526206+00:00</DateToScheduled>
  <FixedAmount>1</FixedAmount>
  <FlexibleLocation>true</FlexibleLocation>
  <Frequency>9</Frequency>
  <HourlyRate>1</HourlyRate>
  <Hours>1</Hours>
  <JobChildren>
    <LiteJobChildren>
      <Id>1</Id>
      <JobId>2</JobId>
      <UserChildren>
        <AgeText>sample string 4</AgeText>
        <Gender>64</Gender>
        <GenderName>sample string 6</GenderName>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <ParentUserId>sample string 2</ParentUserId>
      </UserChildren>
      <UserChildrenId>3</UserChildrenId>
    </LiteJobChildren>
    <LiteJobChildren>
      <Id>1</Id>
      <JobId>2</JobId>
      <UserChildren>
        <AgeText>sample string 4</AgeText>
        <Gender>64</Gender>
        <GenderName>sample string 6</GenderName>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <ParentUserId>sample string 2</ParentUserId>
      </UserChildren>
      <UserChildrenId>3</UserChildrenId>
    </LiteJobChildren>
  </JobChildren>
  <JobDescription>sample string 3</JobDescription>
  <JobDescriptionDayTime>sample string 4</JobDescriptionDayTime>
  <JobSubjectId>1</JobSubjectId>
  <JobSubjectName>sample string 5</JobSubjectName>
  <JobTypeId>6</JobTypeId>
  <JobTypeName>sample string 7</JobTypeName>
  <Location>sample string 8</Location>
  <NextPaymentHours>1</NextPaymentHours>
  <ParentSchoolId>1</ParentSchoolId>
  <YearLevel>64</YearLevel>
</LiteJobSmall>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>