v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Create custom field for badges

post/api_gateway/v1/badges/customField

Request body

namestring required

The name of the custom field.

isMandatoryboolean

Indicates if the custom field is mandatory.

defaultValuestring

The default value of the custom field.

dataType'INTEGER' | 'BOOLEAN' | 'DATE' | 'STRING' required

The data type of the custom field's value.

Response

201

Example response

{
  "data": {
    "id": "65cda4fda888ce70acd29378",
    "orgId": 100606,
    "name": "CF15 date",
    "isActive": true,
    "dataType": "STRING",
    "createdOn": 1707975933.62922,
    "createdBy": 75097962,
    "lastUpdatedOn": 1707975933.62922,
    "lastUpdatedBy": 75097962
  }
}