Batch Update Code Types
put
/api/restapi/codeType/batch
Send a request to this endpoint to update one or more code types. For each JSON object provided in the request body, an application object with a matching ID value will be updated to reflect the JSON contents.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityCodeTypeInput>
Type:
arrayTitle:
Show Source
List<ApiEntityCodeTypeInput>-
Array of:
object ApiEntityCodeTypeInput
Title:
ApiEntityCodeTypeInputThis entity represents a CodeType object, a unique CodeType object can be identified by the following combinations of the fields.- codeTypeId
- codeTypeCode,projectId
- codeTypeCode,projectCode,workspaceCode
- codeTypeCode,workspaceId
- codeTypeCode,workspaceCode
Nested Schema : ApiEntityCodeTypeInput
Type:
objectTitle:
ApiEntityCodeTypeInputThis entity represents a CodeType object, a unique CodeType object can be identified by the following combinations of the fields.
Show Source
- codeTypeId
- codeTypeCode,projectId
- codeTypeCode,projectCode,workspaceCode
- codeTypeCode,workspaceId
- codeTypeCode,workspaceCode
-
assignments: array
assignments
The list of code type assignments.
-
codeTypeCode(required): string
Minimum Length:
0Maximum Length:60Displays the code or ID of the Code Type. -
codeTypeId: integer
(int64)
The system-generated identifier of a code type.
-
codeTypeName(required): string
Minimum Length:
0Maximum Length:255The name of a code or value. -
projectCode: string
Minimum Length:
1Maximum Length:60The code of a Project of a Project CodeType. -
projectId(required): integer
(int64)
The unique identifier for the project.The project object can also be identified by its unique criteria.
-
pushDownType: string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]The push down type of the workspace code. -
workspaceCode: string
Minimum Length:
0Maximum Length:60The user-specified identifier of a workspace. -
workspaceId(required): integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Nested Schema : assignments
Type:
arrayThe list of code type assignments.
Show Source
-
Array of:
object ApiEntityCodeEntityTypeInput
Title:
ApiEntityCodeEntityTypeInput
Nested Schema : ApiEntityCodeEntityTypeInput
Type:
objectTitle:
Show Source
ApiEntityCodeEntityTypeInput-
codeType(required):
codeType
The unique identifier of a code type.
-
entityType(required): string
Maximum Length:
60Allowed Values:[ "ACTIVITY", "CONSTRAINT", "CUSTOM_LOG_ITEM", "DOCUMENT", "FUND", "IDEA", "PBS", "PORTFOLIO", "PROGRAM", "PROJECT", "REPORT", "RESOURCE", "RISK", "SCOPE_ASSIGNMENT", "SCOPE_ITEM", "STRATEGY", "TASKS", "WBS", "WORK_PACKAGE" ]Indicates the type of object the code is associated to.
Nested Schema : codeType
The unique identifier of a code type.
Match All
The unique identifier of a code type.
Show Source
-
object
ApiEntityCodeTypeInput
Title:
ApiEntityCodeTypeInputThis entity represents a CodeType object, a unique CodeType object can be identified by the following combinations of the fields.- codeTypeId
- codeTypeCode,projectId
- codeTypeCode,projectCode,workspaceCode
- codeTypeCode,workspaceId
- codeTypeCode,workspaceCode
Examples
Back to Top
Response
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}
400 Response
Invalid input for the Code Type service. Verify the request contains valid data, then resubmit the request.