---
title: "Update a Settlement and generate a new upload URL"
method: PUT
path: "/v3.0/{ClientId}/payins/intents/settlements/{SettlementId}"
tags: ["Settlements"]
---

# Update a Settlement and generate a new upload URL

`PUT /v3.0/{ClientId}/payins/intents/settlements/{SettlementId}`

Generate a new pre-signed URL to replace the file of an existing Settlement

You can use this endpoint to generate a new `SettlementFileUploadUrl` for an existing Settlement object (with `SettlementId`).

This is necessary if a file you uploaded previously is not parsed or reconciled successfully.

## Path parameters

- `ClientId` string, required
- `SettlementId` string, required

## Headers

- `Authorization` string, required

## Request body

- CreateASettlementAndGenerateASecureURLForFileUploadRequest
  - `FileName` string, required — The name of your file, which can be anything you wish. The file extension must be `.csv`.

## Response `200`

Success

- SettlementFileUploadResponse
  - `UploadUrl` string — The unique temporary pre-signed URL to which to upload your CSV file. Use the full dynamic URL including the host, path, and all query parameters. The URL is already authenticated, so the call does not require an Authorization header. See [PUT Upload a settlement file to the secure URL](/api-reference/settlements/upload-settlement-file) for details
  - `SettlementId` string — The unique identifier of the Settlement.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/mangopay/apis/api-reference.md) · [All operations](https://skmtc.dev/mangopay/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mangopay/api-reference/revisions/956211a94070/schema)
