Update a Currency
put
/api/restapi/currency
Send a request to this endpoint to update a currency. An application object with an ID value that matches the ID value provided in the JSON object in the request body will be updated to reflect the JSON contents.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : ApiEntityCurrencyInput
Type:
objectTitle:
ApiEntityCurrencyInputThis entity represents a Currency object, a unique Currency object can be identified by the following combinations of the fields.
Show Source
- currencyId
- currencyCode,workspaceId
- currencyCode,workspaceCode
-
currencyCode(required): string
Minimum Length:
1Maximum Length:3The unique identifier for the currency. The currency code is 3 characters. -
currencyId: integer
(int64)
The unique identifier of a currency.
-
currencyName(required): string
Minimum Length:
1Maximum Length:255The name of the currency. -
currencySymbol(required): string
Minimum Length:
1Maximum Length:6The symbol for the currency. -
decimalsToDisplay(required): integer
(int32)
Minimum Value:
0Maximum Value:5Multiple Of:0.000010The number of decimals to display. -
pushDownType: string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]The push down type of the workspace currency. -
systemCurrencyFlag: boolean
The base currency is the default currency when new workspaces are created.
Any currency conversions will be measured against this form of currency. -
workspaceCode: string
Minimum Length:
0Maximum Length:60The user-specified identifier of a workspace. -
workspaceId(required): integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Examples
Back to Top
Response
204 Response
Successful operation with no content.
400 Response
Invalid input for the Currency service. Verify the request contains valid data, then resubmit the request.