| Requires any of the roles: | Client, Admin, Partner |
| PUT | /currency_rates/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | long | Yes | |
| TenantsId | body | int | Yes | |
| FromCurrenciesId | body | int | Yes | |
| ToCurrenciesId | body | int | Yes | |
| ExchangeRate | body | double | Yes | |
| EffectiveDate | body | DateTime | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| TenantsId | form | int | No | |
| FromCurrenciesId | form | int | No | |
| ToCurrenciesId | form | int | No | |
| ExchangeRate | form | double | No | |
| EffectiveDate | form | DateTime | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /currency_rates/{Id} HTTP/1.1
Host: api.du-engage.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
TenantsId: 0,
FromCurrenciesId: 0,
ToCurrenciesId: 0,
ExchangeRate: 0,
EffectiveDate: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
TenantsId: 0,
FromCurrenciesId: 0,
ToCurrenciesId: 0,
ExchangeRate: 0,
EffectiveDate: 0001-01-01,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}