Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

Configure the installation currency once

Generated from the checked-in source. Do not edit this reference by hand.

PUT /api/v1/platform/currency

Platform administration required. Repeating the same currency is safe; changing a configured currency returns 409. Historical records are not converted.

Operation: configurePlatformCurrency.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"bearerAuth": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X PUT "$NIU_ORIGIN/api/v1/platform/currency" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN" \
-H 'Content-Type: application/json' \
--data @request.json

No path, query, or header parameters are declared.

Required.

JSON
{
"type": "object",
"required": [
"currency"
],
"additionalProperties": false,
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
}
}
}

Configured currency.

Currency already configured with a different value.

Platform administration required. Repeating the same currency is safe; changing a configured currency returns 409. Historical records are not converted.

Supported scope: implemented