POST api/Templates/Automated/{clientID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientID

integer

Required

Body Parameters

TPTModel
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

PositionID

integer

None.

HiringManagerID

integer

None.

jobCompetencies

Collection of JobCompetenciesModel

None.

primaryAttr

Collection of JobAttributesModel

None.

secAttr

Collection of JobAttributesModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "PositionID": 3,
  "HiringManagerID": 4,
  "jobCompetencies": [
    {
      "id": 1,
      "TraitLink": 2,
      "Competency": "sample string 3",
      "Weight": 4
    },
    {
      "id": 1,
      "TraitLink": 2,
      "Competency": "sample string 3",
      "Weight": 4
    }
  ],
  "primaryAttr": [
    {
      "id": 1,
      "TraitLink": 2,
      "Attribute": "sample string 3",
      "Weight": 4
    },
    {
      "id": 1,
      "TraitLink": 2,
      "Attribute": "sample string 3",
      "Weight": 4
    }
  ],
  "secAttr": [
    {
      "id": 1,
      "TraitLink": 2,
      "Attribute": "sample string 3",
      "Weight": 4
    },
    {
      "id": 1,
      "TraitLink": 2,
      "Attribute": "sample string 3",
      "Weight": 4
    }
  ]
}

application/xml, text/xml

Sample:
<TPTModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Templates">
  <HiringManagerID>4</HiringManagerID>
  <PositionID>3</PositionID>
  <id>1</id>
  <jobCompetencies xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.JobCompetencies">
    <d2p1:JobCompetenciesModel>
      <d2p1:Competency>sample string 3</d2p1:Competency>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobCompetenciesModel>
    <d2p1:JobCompetenciesModel>
      <d2p1:Competency>sample string 3</d2p1:Competency>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobCompetenciesModel>
  </jobCompetencies>
  <name>sample string 2</name>
  <primaryAttr xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.JobCompetencies">
    <d2p1:JobAttributesModel>
      <d2p1:Attribute>sample string 3</d2p1:Attribute>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobAttributesModel>
    <d2p1:JobAttributesModel>
      <d2p1:Attribute>sample string 3</d2p1:Attribute>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobAttributesModel>
  </primaryAttr>
  <secAttr xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.JobCompetencies">
    <d2p1:JobAttributesModel>
      <d2p1:Attribute>sample string 3</d2p1:Attribute>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobAttributesModel>
    <d2p1:JobAttributesModel>
      <d2p1:Attribute>sample string 3</d2p1:Attribute>
      <d2p1:TraitLink>2</d2p1:TraitLink>
      <d2p1:Weight>4</d2p1:Weight>
      <d2p1:id>1</d2p1:id>
    </d2p1:JobAttributesModel>
  </secAttr>
</TPTModel>

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

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>