---
title: "Update a scenario table."
method: PATCH
path: "/api/v1/ScenarioTables/{ScenarioTableId}"
tags: ["ScenarioTables"]
---

# Update a scenario table.

`PATCH /api/v1/ScenarioTables/{ScenarioTableId}`

## Request

- Base URL: `https://api.slopesoftware.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slopesoftware.com/api/v1/ScenarioTables/{ScenarioTableId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/slopesoftware/apis/akur8-life-api/docs/api/v1/ScenarioTables/:ScenarioTableId/patch.ts> (a function with typed inputs; its response is checked against the schema)

The excel sheet name field is required for excel files and the delimiter field, which defaults to a comma if not set, is required for non-excel files. <br/>The row limit is 150,000 for excel files and 2 million for csv files. <br/>To avoid request timeouts on large files, set validateFile to false to skip validation on upload; the file will then be validated when a projection is run.

## Path parameters

- `ScenarioTableId` integer, required: Scenario Table Id

## Request body

- UpdateScenarioTableRequestV1
  - `fileId` integer, nullable: File ID
  - `filePath` string, nullable: File Path
  - `fileVersion` integer, nullable: File Version
  - `delimiter` string, nullable: Delimiter
  - `excelSheetName` string, nullable: Excel Sheet Name
  - `name` string, nullable: Scenario Table Name
  - `startDate` string, nullable: Scenario Table Start Date
  - `yieldCurveRateType` 'BondEquivalent' | 'AnnualEffective' | 'SpotRate'
  - `shortTermInterpolationMethod` 'AnnualEffectiveRate' | 'FromZero'
  - `validateFile` boolean, nullable: Validate the uploaded file. Defaults to true. Set to false to skip validation on upload and avoid request timeouts for large files; the file will instead be validated when a projection is run.

## Response `200`

OK

- CreateOrUpdateScenarioTableResponseV1
  - `id` integer: Scenario Table ID
  - `modelId` integer: Model ID
  - `name` string, nullable: Scenario Table Name
  - `startDate` string, date-time: Start Date
  - `filePath` string, nullable: File Path
  - `version` integer: Version

## Other responses

- `201`: Created
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Not Allowed To Access
- `404`: Not Found
- `409`: Scenario table description already exists
- `429`: Too Many Requests

---

[API](https://skmtc.dev/slopesoftware/apis/akur8-life-api.md) - [All operations](https://skmtc.dev/slopesoftware/apis/akur8-life-api/llms.txt) - [OpenAPI document](https://skmtc.dev/slopesoftware/apis/akur8-life-api/revisions/9771b2c79880?raw)
