# File Format

The fastest way to get set up is to use the eQuest XML layout below. If your system already makes a feed in a different layout, or in JSON or another format, send eQuest a sample. eQuest will tell you if it can be used as is or what needs to change.

## File rules

-   Put every job you want on the boards in every file, not just the new or changed ones. A job that's left out of a file is treated as closed.
-   Give every job a requisition number that's unique in the file and never changes. That's how eQuest matches a job from one file to the next.
-   Save the file as UTF-8.
-   Make sure it's valid XML or JSON. One broken tag can stop the whole file from being read.
-   Wrap the title, description, and apply link in `<![CDATA[ ]]>`. That keeps HTML tags and characters like & from breaking the file.
-   The description can use basic HTML, like paragraphs, line breaks, and lists. eQuest converts it to plain text for boards that don't take HTML.

## XML layout

The file has one `JobBatch` with a `job` for each opening. Every field is explained on [Field Reference](https://connect.equest.com/autopost/docs/field-reference).

```text
<?xml version="1.0" encoding="UTF-8"?>
<JobBatch>
  <job Version="1.1" RequisitionNumber="2200000506">
    <Company>
      <Name>SomeCo, Inc.</Name>
    </Company>
    <Location>
      <CountryCode>US</CountryCode>
      <City>Los Angeles</City>
      <StateProvinceCode>US-CA</StateProvinceCode>
      <PostalCode>90012</PostalCode>
    </Location>
    <Position>
      <Title><![CDATA[Warehouse Associate]]></Title>
      <Classification>
        <TypeCode>REGULAR</TypeCode>
        <TimeCode>FULLTIME</TimeCode>
      </Classification>
      <FunctionCode>53000000</FunctionCode>
      <description><![CDATA[<p>About SomeCo...</p><p>About the job...</p>]]></description>
    </Position>
    <Posting>
      <CandidateResponses>
        <URL><![CDATA[https://someco.atsdomain.net/careersection/1/jobapply.ftl?lang=en&job=2200000506]]></URL>
        <Email>jane.user@someco.com</Email>
      </CandidateResponses>
    </Posting>
  </job>
</JobBatch>
```

[Download the full sample file](https://tools.equest.com/autopost-feed/equest-sample-file.xml) (two jobs).

Element names are case sensitive. Note that `description` is lowercase.

## JSON and other formats

JSON works too, and the layout is flexible. Use the same fields as the XML layout. Here's one way to lay it out:

```text
{
  "jobs": [
    {
      "requisition_number": "2200000506",
      "company_name": "SomeCo, Inc.",
      "job_title": "Warehouse Associate",
      "job_description": "<p>About SomeCo...</p><p>About the job...</p>",
      "job_city": "Los Angeles",
      "job_stateprovince": "US-CA",
      "job_country": "US",
      "job_postal_code": "90012",
      "job_classification_type": "REGULAR",
      "job_classification_time": "FULLTIME",
      "job_function": "53000000",
      "apply_url": "https://someco.atsdomain.net/careersection/1/jobapply.ftl?lang=en&job=2200000506",
      "contact_email": "jane.user@someco.com"
    }
  ]
}
```

If your system already produces JSON in a different structure, eQuest can usually map it. Send eQuest a sample during setup.

If you need to use another format, talk to eQuest first.

Next up: [Field Reference](https://connect.equest.com/autopost/docs/field-reference).
