Create an Exchange Rate
post
/api/restapi/exchangeRate
Send a request to this endpoint to create an exchange rate. 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 : ApiEntityExchangeRateInput
Type:
object
Title:
ApiEntityExchangeRateInput
This entity represents a ExchangeRate object, a unique ExchangeRate object can be identified by the following combinations of the fields.
Show Source
- exchangeRateId
-
baseExchangeRate(required): number
Minimum Value:
0
Maximum Value:1000000000
The rate used to convert the value of a record to the base currency. -
currencyCode: string
Minimum Length:
1
Maximum Length:3
The unique identifier for the currency. The currency code is 3 characters. -
currencyId(required): integer
(int64)
The unique identifier of a currency.
-
effectiveEndDate: string
(date-time)
The date the exchange rate ends.
-
effectiveStartDate(required): string
(date-time)
The date the exchange rate goes into effect.
-
exchangeRateId: integer
(int64)
The unique identifier for the exchange rate.
-
link: string(url)Read Only:true
Deprecated. As of 23.10.The self-link to the object. This field is populated only in the responses generated by the batch create APIs. -
updateDate: string(date-time)Read Only:true
Deprecated. As of 23.10.Date when the record was last updated. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace.
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityExchangeRate
Type:
object
Title:
Show Source
ApiEntityExchangeRate
-
baseExchangeRate: number
Minimum Value:
0
Maximum Value:1000000000
The rate used to convert the value of a record to the base currency. -
currencyCode: string
Minimum Length:
1
Maximum Length:3
The unique identifier for the currency. The currency code is 3 characters. -
currencyId: integer
(int64)
The unique identifier of a currency.
-
effectiveEndDate: string
(date-time)
The date the exchange rate ends.
-
effectiveStartDate: string
(date-time)
The date the exchange rate goes into effect.
-
exchangeRateId: integer
(int64)
The unique identifier for the exchange rate.
-
link: string
(url)
The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
-
updateDate: string
(date-time)
Date when the record was last updated.
-
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace.
400 Response
Invalid input for the Exchange Rate service. Verify the request contains valid data, then resubmit the request.