Creates Workspace CodeType.
post
/primeapi/restapi/v16.2/codeType/workspaceCodeType
Request
Supported Media Types
- application/json
Body Parameter
The Code Type for which Workspace Codetypes have to be created
Root Schema : ApiEntityCodeType
Type:
object- assignments
-
Type:
arrayassignmentsUnique Items Required:true - codeTypeCode
-
Type:
stringAllowed Values:[ "Length[1-40]" ]This field displays the name of a code or value. - codeTypeId
-
Type:
integer(int64) - codeTypeName
-
Type:
stringAllowed Values:[ "Length[1-40]" ]STRING - workspace
-
Type:
integer(int64)The ID of the owning workspace.
Nested Schema : assignments
Nested Schema : ApiEntityCodeEntityType
Type:
object- codeType
-
Type:
objectApiEntityCodeType - entityType
-
Type:
stringAllowed Values:[ "SCOPE_ITEM", "PROJECT", "SCOPE_ASSIGNMENT", "WBS", "WORK_PACKAGE", "ACTIVITY", "RESOURCE", "PBS", "CONTRACT", "RISK", "COMMITMENT", "REPORT", "TASKS", "PROJECT_FUND", "WORKSPACE_FUND" ] - primaryKey
-
Type:
integer(int64)
Response
Supported Media Types
- application/json
200 Response
successful operation
Body
Root Schema : ApiEntityCodeType
Type:
object- assignments
-
Type:
arrayassignmentsUnique Items Required:true - codeTypeCode
-
Type:
stringAllowed Values:[ "Length[1-40]" ]This field displays the name of a code or value. - codeTypeId
-
Type:
integer(int64) - codeTypeName
-
Type:
stringAllowed Values:[ "Length[1-40]" ]STRING - workspace
-
Type:
integer(int64)The ID of the owning workspace.
Nested Schema : assignments
Nested Schema : ApiEntityCodeEntityType
Type:
object- codeType
-
Type:
objectApiEntityCodeType - entityType
-
Type:
stringAllowed Values:[ "SCOPE_ITEM", "PROJECT", "SCOPE_ASSIGNMENT", "WBS", "WORK_PACKAGE", "ACTIVITY", "RESOURCE", "PBS", "CONTRACT", "RISK", "COMMITMENT", "REPORT", "TASKS", "PROJECT_FUND", "WORKSPACE_FUND" ] - primaryKey
-
Type:
integer(int64)