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:
object
Title:
ApiEntityCodeValueInput
This 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:
0
Maximum Length:60
This 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:
255
The name of a code or value. -
codeValueCode(required): string
Minimum Length:
0
Maximum Length:60
The unique identifier for the code value. -
codeValueId: integer
(int64)
The unique identifier for the code value.
-
codeValueName(required): string
Minimum Length:
0
Maximum Length:255
The name of the code value. -
color: string
Maximum Length:
255
A color for the code value.
The hexadecimal color code (in lower case) are the allowed values for this field.
Example: #00008B -
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. -
parentCodeValueCode: stringRead Only:true
Minimum Length:0
Maximum Length:60
Deprecated. As of 24.3.The parent code value code of a code value. -
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:
1
Maximum Length:60
The 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.
-
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.
Nested Schema : parentCVCodes
Type:
array
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.
Show Source
Examples
Back to Top
Response
204 Response
Successful operation with no content.
400 Response
Invalid input for the Code Value service.