# Schedule

> Lead Contract Schedule

## Get Schedule

`GET https://api.leadspedia.com/core/v2/leadDistributionContracts/getSchedule.do`

### Parameters

- `contractID` (integer, required)

- `start` (integer, optional)
  Offset of the first row to return. Default: `0`.

- `limit` (integer, optional)
  Maximum number of rows to return. Cannot be greater than 1000. Default: `100`.


## Create Schedule

`POST https://api.leadspedia.com/core/v2/leadDistributionContracts/createSchedule.do`

When using this endpoint each day of the week is optional, however at least one or more day(s) must be passed with a value of yes.

### Parameters

- `contractID` (integer, required)

- `type` (enum, required)
  Allowed values: `Exclusive`, `Multisell`.

- `price` (integer, required)

- `cap` (integer, required)
  If you do not want a Schedule Cap pass a value of 0

- `revenueCap` (integer, required)
  If you do not want a Schedule Revenue Cap pass a value of 0

- `startTime` (string, required)
  HH:mm

- `endTime` (string, required)
  HH:mm

- `Monday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Tuesday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Wednesday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Thursday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Friday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Saturday` (enum, optional)
  Allowed values: `Yes`, `No`.

- `Sunday` (enum, optional)
  Allowed values: `Yes`, `No`.


## Update Schedule

`POST https://api.leadspedia.com/core/v2/leadDistributionContracts/updateSchedule.do`

### Parameters

- `deliveryScheduleID` (integer, required)

- `type` (enum, optional)
  Allowed values: `Exclusive`, `Multisell`.

- `price` (integer, optional)

- `startTime` (string, optional)
  HH:mm

- `endTime` (string, optional)
  HH:mm

- `cap` (integer, optional)

- `revenueCap` (integer, optional)


## Delete Schedule

`POST https://api.leadspedia.com/core/v2/leadDistributionContracts/deleteSchedule.do`

### Parameters

- `deliveryScheduleID` (integer, required)


## Delete All Schedules

`POST https://api.leadspedia.com/core/v2/leadDistributionContracts/deleteAllSchedules.do`

### Parameters

- `contractID` (integer, required)


## Set All Schedule Price

`POST https://api.leadspedia.com/core/v2/leadDistributionContracts/setPrice.do`

This endpoint sets the schedule price for all schedules within the specified Contract.

### Parameters

- `contractID` (integer, required)

- `price` (integer, required)
