PUT api/Templates/{id}?clientID={clientID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

clientID

integer

Required

Body Parameters

TemplateModel
NameDescriptionTypeAdditional information
clientID

integer

None.

templateID

integer

None.

templateName

string

None.

lastDate

date

None.

templateType

string

None.

positions

Collection of PositionModel

None.

departments

Collection of DepartmentModel

None.

ranges

Collection of RangeModel

None.

Request Formats

application/json, text/json

Sample:
{
  "clientID": 1,
  "templateID": 2,
  "templateName": "sample string 3",
  "lastDate": "2021-10-17T09:12:23.8887856-07:00",
  "templateType": "sample string 5",
  "positions": [
    {
      "PositionID": 1,
      "isWebEnabled": true,
      "hasApplications": true,
      "ClientID": 1,
      "PositionName": "sample string 4",
      "HiringManager": 1,
      "HiringManagerName": "sample string 5",
      "bGeneralPosition": true,
      "JobID": "sample string 7",
      "JobDescription": "sample string 8",
      "JobRequirements": "sample string 9",
      "dateJobPosted": "2021-10-17T09:12:23.8887856-07:00",
      "dateJobExpires": "2021-10-17T09:12:23.8887856-07:00",
      "TotalApplications": 10,
      "DepartmentID": 1,
      "DeptName": "sample string 11",
      "AuditInProgress": true,
      "DateAuditStart": "2021-10-17T09:12:23.8887856-07:00"
    },
    {
      "PositionID": 1,
      "isWebEnabled": true,
      "hasApplications": true,
      "ClientID": 1,
      "PositionName": "sample string 4",
      "HiringManager": 1,
      "HiringManagerName": "sample string 5",
      "bGeneralPosition": true,
      "JobID": "sample string 7",
      "JobDescription": "sample string 8",
      "JobRequirements": "sample string 9",
      "dateJobPosted": "2021-10-17T09:12:23.8887856-07:00",
      "dateJobExpires": "2021-10-17T09:12:23.8887856-07:00",
      "TotalApplications": 10,
      "DepartmentID": 1,
      "DeptName": "sample string 11",
      "AuditInProgress": true,
      "DateAuditStart": "2021-10-17T09:12:23.8887856-07:00"
    }
  ],
  "departments": [
    {
      "DepartmentID": 1,
      "ClientID": 2,
      "DeptName": "sample string 3",
      "DeptNameValue": "sample string 4",
      "AuditInProgress": true,
      "DateAuditStart": "2021-10-17T09:12:23.8887856-07:00",
      "PositionCount": 6
    },
    {
      "DepartmentID": 1,
      "ClientID": 2,
      "DeptName": "sample string 3",
      "DeptNameValue": "sample string 4",
      "AuditInProgress": true,
      "DateAuditStart": "2021-10-17T09:12:23.8887856-07:00",
      "PositionCount": 6
    }
  ],
  "ranges": [
    {
      "trait_name": "sample string 1",
      "min_value": 2,
      "max_value": 3
    },
    {
      "trait_name": "sample string 1",
      "min_value": 2,
      "max_value": 3
    }
  ]
}

application/xml, text/xml

Sample:
<TemplateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Templates">
  <clientID>1</clientID>
  <departments xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Employment">
    <d2p1:DepartmentModel>
      <d2p1:AuditInProgress>true</d2p1:AuditInProgress>
      <d2p1:ClientID>2</d2p1:ClientID>
      <d2p1:DateAuditStart>2021-10-17T09:12:23.8887856-07:00</d2p1:DateAuditStart>
      <d2p1:DepartmentID>1</d2p1:DepartmentID>
      <d2p1:DeptName>sample string 3</d2p1:DeptName>
      <d2p1:DeptNameValue>sample string 4</d2p1:DeptNameValue>
      <d2p1:PositionCount>6</d2p1:PositionCount>
    </d2p1:DepartmentModel>
    <d2p1:DepartmentModel>
      <d2p1:AuditInProgress>true</d2p1:AuditInProgress>
      <d2p1:ClientID>2</d2p1:ClientID>
      <d2p1:DateAuditStart>2021-10-17T09:12:23.8887856-07:00</d2p1:DateAuditStart>
      <d2p1:DepartmentID>1</d2p1:DepartmentID>
      <d2p1:DeptName>sample string 3</d2p1:DeptName>
      <d2p1:DeptNameValue>sample string 4</d2p1:DeptNameValue>
      <d2p1:PositionCount>6</d2p1:PositionCount>
    </d2p1:DepartmentModel>
  </departments>
  <lastDate>2021-10-17T09:12:23.8887856-07:00</lastDate>
  <positions xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Employment">
    <d2p1:PositionModel>
      <d2p1:AuditInProgress>true</d2p1:AuditInProgress>
      <d2p1:ClientID>1</d2p1:ClientID>
      <d2p1:DateAuditStart>2021-10-17T09:12:23.8887856-07:00</d2p1:DateAuditStart>
      <d2p1:DepartmentID>1</d2p1:DepartmentID>
      <d2p1:DeptName>sample string 11</d2p1:DeptName>
      <d2p1:HiringManager>1</d2p1:HiringManager>
      <d2p1:HiringManagerName>sample string 5</d2p1:HiringManagerName>
      <d2p1:JobDescription>sample string 8</d2p1:JobDescription>
      <d2p1:JobID>sample string 7</d2p1:JobID>
      <d2p1:JobRequirements>sample string 9</d2p1:JobRequirements>
      <d2p1:PositionID>1</d2p1:PositionID>
      <d2p1:PositionName>sample string 4</d2p1:PositionName>
      <d2p1:TotalApplications>10</d2p1:TotalApplications>
      <d2p1:bGeneralPosition>true</d2p1:bGeneralPosition>
      <d2p1:dateJobExpires>2021-10-17T09:12:23.8887856-07:00</d2p1:dateJobExpires>
      <d2p1:dateJobPosted>2021-10-17T09:12:23.8887856-07:00</d2p1:dateJobPosted>
      <d2p1:hasApplications>true</d2p1:hasApplications>
      <d2p1:isWebEnabled>true</d2p1:isWebEnabled>
    </d2p1:PositionModel>
    <d2p1:PositionModel>
      <d2p1:AuditInProgress>true</d2p1:AuditInProgress>
      <d2p1:ClientID>1</d2p1:ClientID>
      <d2p1:DateAuditStart>2021-10-17T09:12:23.8887856-07:00</d2p1:DateAuditStart>
      <d2p1:DepartmentID>1</d2p1:DepartmentID>
      <d2p1:DeptName>sample string 11</d2p1:DeptName>
      <d2p1:HiringManager>1</d2p1:HiringManager>
      <d2p1:HiringManagerName>sample string 5</d2p1:HiringManagerName>
      <d2p1:JobDescription>sample string 8</d2p1:JobDescription>
      <d2p1:JobID>sample string 7</d2p1:JobID>
      <d2p1:JobRequirements>sample string 9</d2p1:JobRequirements>
      <d2p1:PositionID>1</d2p1:PositionID>
      <d2p1:PositionName>sample string 4</d2p1:PositionName>
      <d2p1:TotalApplications>10</d2p1:TotalApplications>
      <d2p1:bGeneralPosition>true</d2p1:bGeneralPosition>
      <d2p1:dateJobExpires>2021-10-17T09:12:23.8887856-07:00</d2p1:dateJobExpires>
      <d2p1:dateJobPosted>2021-10-17T09:12:23.8887856-07:00</d2p1:dateJobPosted>
      <d2p1:hasApplications>true</d2p1:hasApplications>
      <d2p1:isWebEnabled>true</d2p1:isWebEnabled>
    </d2p1:PositionModel>
  </positions>
  <ranges>
    <RangeModel>
      <max_value>3</max_value>
      <min_value>2</min_value>
      <trait_name>sample string 1</trait_name>
    </RangeModel>
    <RangeModel>
      <max_value>3</max_value>
      <min_value>2</min_value>
      <trait_name>sample string 1</trait_name>
    </RangeModel>
  </ranges>
  <templateID>2</templateID>
  <templateName>sample string 3</templateName>
  <templateType>sample string 5</templateType>
</TemplateModel>

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 'TemplateModel'.

Response Information

Resource Description

None.