# Advanced Settings

> Lead Contract Advanced Settings

## Get Leads Settings

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

### Parameters

- `contractID` (integer, required)


## Update Lead Settings

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

### Parameters

- `contractID` (integer, required)

- `minimumLeadAge` (integer, optional)
  Minimum lead age in minutes to deliver to this contract

- `maximumLeadAge` (integer, optional)
  Maximum lead age in minutes to deliver to this contract

- `maximumPostErrors` (integer, optional)
  Maximum concurrent error posts to inactivate the contract

- `timeLeadsPosts` (integer, optional)
  Do not post leads within X amount of post seconds

- `allowQueueLeads` (enum, optional)
  Allow queue to send leads to this contract Allowed values: `Yes`, `No`.


## Get Portal Settings

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

### Parameters

- `contractID` (integer, required)


## Update Portal Settings

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

### Parameters

- `contractID` (integer, required)

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

- `allowStatusPause` (enum, optional)
  Allow advertiser to pause contract Allowed values: `Yes`, `No`.

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

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

- `allowUpdateSchedule` (enum, optional)
  Allow advertiser to manage delivery schedule Allowed values: `Yes`, `No`.

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

- `allowManageCaps` (enum, optional)
  Allow advertiser to manage caps Allowed values: `Yes`, `No`.

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


## Set Expiration Date

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

### Parameters

- `contractID` (integer, required)

- `expirationDate` (date, required)
  Format: `YYYY-MM-DD`.


## Remove Expiration Date

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

### Parameters

- `contractID` (integer, required)


## Get Schedule Pause

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

### Parameters

- `contractID` (integer, optional)

- `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 Pause

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

### Parameters

- `contractID` (integer, required)

- `pauseDate` (date, required)
  Pause date has to be later than today's date but before the resume date Format: `YYYY-MM-DD`.

- `resumeDate` (date, required)
  Format: `YYYY-MM-DD`.


## Delete Schedule Pause

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

### Parameters

- `scheduledPauseID` (integer, required)
