Create a Code Type

post

/api/restapi/codeType

Send a request to this endpoint to create a code type. An application object will be created using the JSON data provided in the request body.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityCodeTypeInput
Type: object
Title: ApiEntityCodeTypeInput
This 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
Show Source
Nested Schema : assignments
Type: array
The list of code type assignments.
Show Source
Nested Schema : ApiEntityCodeEntityTypeInput
Type: object
Title: ApiEntityCodeEntityTypeInput
Show Source
  • codeType
    The unique identifier of a code type.
  • Maximum Length: 60
    Allowed 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.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
Nested Schema : codeType
The unique identifier of a code type.
Match All
Show Source
  • ApiEntityCodeTypeInput
    Title: ApiEntityCodeTypeInput
    This 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

Supported Media Types

201 Response

The object was successfully created.
Body ()
Root Schema : ApiEntityCodeType
Type: object
Title: ApiEntityCodeType
Show Source
Nested Schema : assignments
Type: array
The list of code type assignments.
Show Source
Nested Schema : ApiEntityCodeEntityType
Type: object
Title: ApiEntityCodeEntityType
Show Source
  • codeType
    The unique identifier of a code type.
  • Maximum Length: 60
    Allowed 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.
  • Date when the record was last updated.
Nested Schema : codeType
The unique identifier of a code type.
Match All
Show Source

400 Response

Invalid input for the Code Type service. Verify the request contains valid data, then resubmit the request.
Back to Top