Library

Update a project currency

patch/projects/{projectId}/library/currencies/{currencyId}

Request

  • Base URL: https://next-api.saturation.io/v1
  • URL: https://next-api.saturation.io/v1/projects/{projectId}/library/currencies/{currencyId}
  • Auth: HTTP bearer

Path parameters

projectIdstring required

Project ID or slug.

currencyIdstring required

A stable resource ID, such as prj_…, txn_…, or doc_….

Example:txn_8f2a1c9e

Request body

codestring
namestring nullable
symbolstring nullable
rateToUSDnumber nullable

USD value of one unit of this currency. For example, use 1.17 for EUR when one EUR equals 1.17 USD.

Response

The updated project currency.

idstring required

A stable resource ID, such as prj_…, txn_…, or doc_….

codestring required
namestring nullable
symbolstring nullable
rateToUSDnumber nullable

USD value of one unit of this currency.

sourceType'workspace' | 'saturation' required

Where the project Library item came from.

sourceIdstring

A stable resource ID, such as prj_…, txn_…, or doc_….

Example response

{
  "id": "txn_8f2a1c9e",
  "sourceId": "txn_8f2a1c9e",
  "source": {
    "id": "txn_8f2a1c9e"
  }
}

Changes

No recorded changes to this operation across all 4 revisions of this API.