PUT api/parameters/values/{id}

Updates a parameter value by ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Existing parameter ID.

integer

Required

Body Parameters

Parameter data to update.

ParameterValueUpdateRequestDTO
NameDescriptionTypeAdditional information
Value

Value of the parameter to set.

string

None.

ValidFrom

Date from which the parameter becomes valid (UTC).

date

None.

ValidTo

Date from which the parameter ceases to become valid (UTC).

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Value": "sample string 1",
  "ValidFrom": "2025-06-26T02:36:27.6722112+00:00",
  "ValidTo": "2025-06-26T02:36:27.6722112+00:00"
}

text/html

Sample:
{"Value":"sample string 1","ValidFrom":"2025-06-26T02:36:27.6722112+00:00","ValidTo":"2025-06-26T02:36:27.6722112+00:00"}

application/xml, text/xml

Sample:
<ParameterValueUpdateRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <ValidFrom>2025-06-26T02:36:27.6722112+00:00</ValidFrom>
  <ValidTo>2025-06-26T02:36:27.6722112+00:00</ValidTo>
  <Value>sample string 1</Value>
</ParameterValueUpdateRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ParameterValueUpdateRequestDTO'.

Response Information

Resource Description

AddParameterValueResponseDTO
NameDescriptionTypeAdditional information
ParameterValueId

Id uniquely identifying the paramater value.

integer

None.

ParameterId

ID uniquely identifying the parameter.

integer

None.

DepartmentId

ID of the department to set the parameter of.

integer

None.

Value

Value of the parameter to set.

string

None.

ValidFrom

Date from which the parameter becomes valid (UTC).

date

None.

ValidTo

Date from which the parameter ceases to become valid (UTC).

date

None.

Response Formats

application/json, text/json

Sample:
{
  "ParameterValueId": 1,
  "ParameterId": 2,
  "DepartmentId": 1,
  "Value": "sample string 3",
  "ValidFrom": "2025-06-26T02:36:27.6722112+00:00",
  "ValidTo": "2025-06-26T02:36:27.6722112+00:00"
}

text/html

Sample:
{"ParameterValueId":1,"ParameterId":2,"DepartmentId":1,"Value":"sample string 3","ValidFrom":"2025-06-26T02:36:27.6722112+00:00","ValidTo":"2025-06-26T02:36:27.6722112+00:00"}

application/xml, text/xml

Sample:
<AddParameterValueResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <DepartmentId>1</DepartmentId>
  <ParameterId>2</ParameterId>
  <ParameterValueId>1</ParameterValueId>
  <ValidFrom>2025-06-26T02:36:27.6722112+00:00</ValidFrom>
  <ValidTo>2025-06-26T02:36:27.6722112+00:00</ValidTo>
  <Value>sample string 3</Value>
</AddParameterValueResponseDTO>