v5.0

post

/ec-codelist-svc/rest/v5.0/codelist/code

Create a new codelist with its values.

Request

Query Parameters
  • Mode of the study. Allowed values are active, test and training
    Example:
    DESIGN
  • Unique identifier (UUID, 32-character uppercase hexadecimal string)
    Example:
    B1B8327AFAA6412287106192AB5984EF
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : CodeV3
Type: object
Show Source
Nested Schema : values
Type: array
Show Source
Nested Schema : CodeValueV5
Type: object
Show Source
Nested Schema : modeSiteMappings
Type: array
Show Source
Nested Schema : ModeSiteMappingTO
Type: object
Show Source
Nested Schema : sites
Type: array
Show Source
Nested Schema : SiteTO
Type: object
Show Source
Examples

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : BaseCodeListDto
Type: object
Show Source
Nested Schema : code
Type: object
Nested Schema : values
Type: array
Show Source
Nested Schema : items
Type: object
Examples

400 Response

'Missing required code definition', 'Missing required values definition','Missing required field (codeName)','Missing required field (codeType)','Duplicate code name', 'Internal server error'
Body ()
Root Schema : CodeListResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : result
Type: object
Nested Schema : Object
Type: object
Title: Object
Object with error details information.

500 Response

Internal server error
Body ()
Root Schema : CodeListResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : result
Type: object
Nested Schema : Object
Type: object
Title: Object
Object with error details information.
Back to Top