Add New Lookup Type
post
/obedm-common-services/lookuptype
This endpoint is used to add a new Lookup Type.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
appId: string
The ID of the Application.
-
branchCode: string
The branch code associated with the request.
-
contentType(optional): string
The Content Type of The Request.
-
tenantId(optional): string
The ID of the Tenant.
-
userId: string
The ID of the User.
Request Body that contains data required for creating a new Lookup Type.
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
object
Discriminator:
resource_type
Nested Schema : DmTmLookupTypeDTO-allOf[1]
Type:
Show Source
object
-
DmTmLookupCodeDTO(optional):
array DmTmLookupCodeDTO
-
lookupTypeCd(optional):
string
The code representing the type of the lookup.
-
lookupTypeDesc(optional):
string
A description of the type of the lookup.
-
sysDefFlg(optional):
boolean
A flag indicating whether this lookup is a system default.
-
sysDefStatus(optional):
string
The status of the system default lookup.
Nested Schema : DmTmLookupCodeDTO
Type:
Show Source
object
-
enabledFlg(optional):
boolean
The flag indicating if the lookup is enabled.
-
id(optional):
string
The unique identifier for the lookup.
-
lookupCd(optional):
string
The code for the lookup.
-
lookupDesc(optional):
string
The description for the lookup.
-
lookupTypeMasterId(optional):
string
The unique identifier for the lookup type of this lookup.
-
seqNo(optional):
integer
Minimum Value:
0
Maximum Value:999
The sequence number of the lookup. -
subCodeOne(optional):
string
The first sub-code for the lookup.
-
subCodeTwo(optional):
string
The second sub-code for the lookup.
-
sysDefFlg(optional):
boolean
The flag indicating if the lookup is system-defined.
Response
Supported Media Types
- application/json
- application/xml
201 Response
Returns message of success or failure.
Headers
-
Location: string
URL of newly created Lookup Type.
Nested Schema : ResponseResourceSupport
Type:
object
Nested Schema : items
Type:
object
400 Response
Malformed syntax.
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
405 Response
Invalid input
500 Response
Internal error