REST API: CMO Custom Master Object
search cancel

REST API: CMO Custom Master Object

book

Article ID: 269342

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

On an older version of Clarity, such as 15.9.1, an instance of a CMO can be created with the by just using the 'name'.

Environment

Release : 15.9.3

Resolution

Clarity 16.1.2 resolves the issue

The 'code' is required.

Example:
{
  "name": "Test REST Example",
  "code": "Provide_the_code_else_CMN-0007"
}

If the 'code' is not provided, the following error will appear:


{
    "resourceId": null,
    "httpStatus": "400",
    "errorMessage": "CMN-0007: Attribute 'code' is required.",
    "errorCode": "validation.requiredFieldMissing"
}
#####

If the 'description' is provided, the following error will appear:

{
  "name": "Test REST Example: 66_2",
"code": "Provide_the_code_else_CMN-0007_2",
  "description": "This is a test of a REST API Creation 66_2"
}

The following error will appear:
errorMessage": "Attribute(s) 'description' are not supported."