Create a Currency
post
/api/restapi/currency
Send a request to this endpoint to create a currency. An application object will be created using the JSON data provided in the request body.
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
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityCurrency
Type:
objectTitle:
Show Source
ApiEntityCurrency-
associationType: string
Allowed Values:
[ "OWNED", "INHERITED" ]The type of association in the relationship between the currency and the workspace. Possible values are Owned and Inherited. -
currencyCode: 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: string
Minimum Length:
1Maximum Length:255The name of the currency. -
currencySymbol: string
Minimum Length:
1Maximum Length:6The symbol for the currency. -
decimalsToDisplay: integer
(int32)
Minimum Value:
0Maximum Value:5Multiple Of:0.000010The number of decimals to display. -
link: string
(url)
The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
-
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. -
updateDate: string
(date-time)
Date when the record was last updated.
-
workspaceCode: string
Minimum Length:
0Maximum Length:60The user-specified identifier of a workspace. -
workspaceId: integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
400 Response
Invalid input for the Currency service. Verify the request contains valid data, then resubmit the request.