# Create a new School

Creates a new School resource.
Validation for `start_date` and `end_date` is performed to ensure logical dates are provided. `end_date` must be after `start_date`, and both dates must be after 1900-01-01.
If the country is not US, the following parameters are required in addition to those marked as required below:
- year_awarded
- phone
- minor
- start_date
- end_date
- current
- address
  - street
  - city
  - zipcode
  - state
  - country

Endpoint: POST /candidates/{candidate_id}/schools
Version: v1
Security: basic_auth

## Path parameters:

  - `candidate_id` (string, required)
    Creates a School for the input `candidate_id`.

## Request fields (application/json):

  - `candidate_id` (string)
    Candidate linked to this School resource.
    Example: 83ebeagdec0948690863766f792ead24d61fe3f9

  - `name` (string, required)
    Name of the School.
    Example: College University

  - `degree` (string, required)
    Degree awarded to the Candidate.
    Example: BA

  - `year_awarded` (integer)
    Year in which the degree was awarded.
    Example: 2017

  - `major` (string, required)
    Candidate’s major.
    Example: Russian Literature

  - `phone` (string)
    School's phone number.
    Example: 415-111-1111

  - `minor` (string)
    Candidate’s minor.
    Example: Background Checks

  - `start_date` (string)
    Candidate’s start date with the School.
    Example: 2012-09-22

  - `end_date` (string)
    Candidate’s end date with the School.
    Example: 2017-05-10

  - `current` (boolean)
    Defines whether the Candidate is currently enrolled.

  - `school_url` (string)
    School’s website.
    Example: www.collegeuniversity.com

  - `address` (object, required)

  - `address.street` (string)
    Street address.
    Example: 123 Main St.

  - `address.unit` (string)
    House, building or apartment number.
    Example: 2000

  - `address.city` (string)
    City.
    Example: San Francisco

  - `address.state` (string)
    State.
    Example: CA

  - `address.zipcode` (string)
    5-digit zip code.
    Example: 90401

  - `address.country` (string)
    Country.
Format: `ISO 3166-1 alpha-2`
    Example: US

## Response 200 fields (application/json):

  - `id` (string)
    ID of the resource.
    Example: e44aa283528e6fde7d542194

  - `object` (string)
    Enum: "school"

  - `uri` (string)
    URI of the resource.
    Example: /v1/schools/e44aa283528e6fde7d542194

  - `candidate_id` (string)
    Candidate linked to this School resource.
    Example: 83ebeagdec0948690863766f792ead24d61fe3f9

  - `name` (string)
    Name of the School.
    Example: College University

  - `degree` (string)
    Degree awarded to the Candidate.
    Example: BA

  - `year_awarded` (integer)
    Year in which the degree was awarded.
    Example: 2017

  - `major` (string)
    Candidate’s major.
    Example: Russian Literature

  - `phone` (string)
    School's phone number.
    Example: 415-111-1111

  - `minor` (string)
    Candidate’s minor.
    Example: Background Checks

  - `start_date` (string)
    Candidate’s start date with the School.
    Example: 2012-09-22

  - `end_date` (string)
    Candidate’s end date with the School.
    Example: 2017-05-10

  - `current` (boolean)
    Defines whether the Candidate is currently enrolled.

  - `school_url` (string)
    School’s website.
    Example: www.collegeuniversity.com

  - `address` (object)

  - `address.street` (string)
    Street address.
    Example: 123 Main St.

  - `address.unit` (string)
    House, building or apartment number.
    Example: 2000

  - `address.city` (string)
    City.
    Example: San Francisco

  - `address.state` (string)
    State.
    Example: CA

  - `address.zipcode` (string)
    5-digit zip code.
    Example: 90401

  - `address.country` (string)
    Country.
Format: `ISO 3166-1 alpha-2`
    Example: US

## Response 400 fields (application/json):

  - `error` (string)
    Example: Dl number 'F211165' does not match the license number format in CA

## Response 401 fields (application/json):

  - `error` (string)
    Example: Bad authentication error

## Response 403 fields (application/json):

  - `error` (string)
    Example: You do not have permission to access the requested resource

