Update a Code Value
put
/api/restapi/codeValue
Send a request to this endpoint to update a code value. 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 : ApiEntityCodeValueInput
Type:
objectTitle:
ApiEntityCodeValueInputThis entity represents a CodeValue object, a unique CodeValue object can be identified by the following combinations of the fields.
Show Source
- codeValueId
- codeValueCode,codeTypeId
- codeValueCode,codeTypeCode,projectCode,workspaceCode
- codeValueCode,codeTypeCode,workspaceCode
-
codeTypeCode: string
Minimum Length:
0Maximum Length:60This field displays the name of a code or value. -
codeTypeId(required): integer
(int64)
The unique identifier for the code type.The code type object can also be identified by its unique criteria.
-
codeTypeName: string
Maximum Length:
255The name of a code or value. -
codeValueCode(required): string
Minimum Length:
0Maximum Length:60The unique identifier for the code value. -
codeValueId: integer
(int64)
The unique identifier for the code value.
-
codeValueName(required): string
Minimum Length:
0Maximum Length:255The name of the code value. -
color: string
Maximum Length:
255A color for the code value.
The hexadecimal color code (in lower case) are the allowed values for this field.
Example: #00008B -
parentCVCodes: array
parentCVCodes
List of parent code values in a hierarchy. This field is not populated as part of the API response since it is a write-only field, used only for the create or update APIs.
-
parentId: integer
(int64)
The unique identifier of a parent code value.
-
projectCode: string
Minimum Length:
1Maximum Length:60The code of the project of a project code type associated with the code value. -
sequenceNumber: integer
(int32)
The number that specifies the position of the code value item within the code type list.
-
workspaceCode: string
Minimum Length:
0Maximum Length:60The user-specified identifier of a workspace.
Nested Schema : parentCVCodes
Type:
arrayList of parent code values in a hierarchy. This field is not populated as part of the API response since it is a write-only field, used only for the create or update APIs.
Show Source
Examples
Back to Top
Response
204 Response
Successful operation with no content.
400 Response
Invalid input for the Code Value service.