Skip to main content

Deskera - Custom Fields Service

Custom Fields service APIs.

More about Custom Field

dimension-controller

Dimension APIs

/v1/dimension

GET

Summary

Fetch dimensions

Description

API to fetch existing dimensions

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
limitquerylimitNointeger
pagequerypageNointeger
queryqueryqueryNostring
searchquerysearchNostring
sortquerysortNostring
sortDirquerysortDirNostring
Responses
CodeDescriptionSchema
200Dimension information have been fetched successfully.DimensionDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

POST

Summary

Dimension Creation

Description

API to create a dimension.

Parameters
NameLocated inDescriptionRequiredSchema
dimensionDtobodydimensionDtoYesDimensionDto
Responses
CodeDescriptionSchema
200OKDimensionDto
201Dimension has been created successfully.DimensionDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/code

GET

Summary

Get dimension by code

Description

Api to get dimension by code

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
codequerycodeYesstring
Responses
CodeDescriptionSchema
200Fetched dimension by code successfully.DimensionDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/codes

POST

Summary

Get All dimensions by codes

Description

Api to get All dimensions by codes

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
codesbodycodesYes[ string ]
Responses
CodeDescriptionSchema
200Fetched all dimensions by codes successfully.[ DimensionDto ]
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/custom-fields-by-modules

POST

Summary

Api to provide custom field items by modules

Description

Api to provide custom field items by modules

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
requestbodyrequestYesCustomFieldsListRequest
Responses
CodeDescriptionSchema
200Custom fields list by modules fetched successfullyCustomFieldItem
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/find-mandatory

POST

Summary

Api to provide mandatory dimensions

Description

Api to provide mandatory dimensions

Parameters
NameLocated inDescriptionRequiredSchema
requestbodyrequestYesMandatoryDimensionsRequest
Responses
CodeDescriptionSchema
200Mandatory dimensions fetched successfullyCustomFieldItem
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/max-length-precision

POST

Summary

Api to bulk update max length and max decimal precision

Description

Api to bulk update max length and max decimal precision

Parameters
NameLocated inDescriptionRequiredSchema
requestbodyrequestYesobject
Responses
CodeDescriptionSchema
200Max length and max decimal precision updated successfully[ CustomFieldItem ]
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/names

POST

Summary

Get All dimensions by Names

Description

Api to get All dimensions by Names

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
namesbodynamesYes[ string ]
Responses
CodeDescriptionSchema
200Fetched all dimensions by Names successfully.[ DimensionDto ]
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/status

GET

Summary

Get dimensions count by status

Description

Api to get dimension count by status

Responses
CodeDescriptionSchema
200Get dimensions count by statusDimensionCount
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/supported-fields

GET

Summary

Get All Supported Custom field types

Description

Api to get all Supported Custom field types

Parameters
NameLocated inDescriptionRequiredSchema
appNamequeryappNameNostring
Responses
CodeDescriptionSchema
200Fetched all supported field types successfully.[ EnumDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/supported-modules

GET

Summary

Get All Supported modules

Description

Api to get all Supported modules

Parameters
NameLocated inDescriptionRequiredSchema
appNamequeryappNameNostring
Responses
CodeDescriptionSchema
200Fetched all supported modules successfully.EnumDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/{id}

GET

Summary

Fetch dimension by id.

Description

API to fetch existing dimension by it's id.

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
idpathidYeslong
Responses
CodeDescriptionSchema
200Dimension information have been fetched successfully.DimensionDto
401Unauthorized
403Forbidden
404Dimension with id not found.
Security
Security SchemaScopes
Authorizationglobal

PUT

Summary

Update dimension.

Description

API to update existing dimension.

Parameters
NameLocated inDescriptionRequiredSchema
dimensionDtobodydimensionDtoYesDimensionDto
idpathidYeslong
Responses
CodeDescriptionSchema
200Dimension has been updated successfully.DimensionDto
201Created
401Unauthorized
403Forbidden
404Dimension with id not found.
Security
Security SchemaScopes
Authorizationglobal

DELETE

Summary

Delete Dimension

Description

API to delete a dimension

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYeslong
Responses
CodeDescription
200OK
201Dimension has been deleted successfully.
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

PATCH

Summary

Update dimension fields

Description

API to update fields of existing dimension

Parameters
NameLocated inDescriptionRequiredSchema
dimensionAttrbodydimensionAttrYesobject
idpathidYeslong
Responses
CodeDescriptionSchema
200Dimension fields have been updated successfully.DimensionDto
204No Content
401Unauthorized
403Forbidden
404Could not update Dimension.
Security
Security SchemaScopes
Authorizationglobal

attribute-controller

Dimension attributes APIs

/v1/dimension/attributes/bulk

POST

Summary

Bulk insert values for multiple dimensions

Description

API to Bulk insert values for multiple dimensions

Parameters
NameLocated inDescriptionRequiredSchema
attributeDtosbodyattributeDtosYes[ AttributeDto ]
Responses
CodeDescriptionSchema
200Values have been added successfully.[ AttributeDto ]
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/attributes/code/{dimensionCode}

POST

Summary

Dimension Attributes Creation By Code

Description

API to add values to a dimension

Parameters
NameLocated inDescriptionRequiredSchema
dimensionCodepathdimensionCodeYesstring
valuesbodyvaluesYes[ string ]
Responses
CodeDescriptionSchema
200OK[ AttributeDto ]
201Value has been added successfully.[ AttributeDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/attributes/values/{name}

GET

Summary

Get attribute values by dimension name

Description

Api to Get attribute values by dimension name

Parameters
NameLocated inDescriptionRequiredSchema
attributeSortqueryattributeSortNostring
attributeSortDirqueryattributeSortDirNostring
namepathnameYesstring
Responses
CodeDescriptionSchema
200Fetched attribute values by dimension name successfully.[ AttributeDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/attributes/{dimensionId}

POST

Summary

Dimension Attributes Creation

Description

API to add values to a dimension

Parameters
NameLocated inDescriptionRequiredSchema
dimensionIdpathdimensionIdYeslong
valuesbodyvaluesYes[ string ]
Responses
CodeDescriptionSchema
200OK[ AttributeDto ]
201Value has been added successfully.[ AttributeDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

DELETE

Summary

Delete given attributes for given dimension id

Description

API to delete given attributes for given dimension id

Parameters
NameLocated inDescriptionRequiredSchema
dimensionIdpathdimensionIdYeslong
idsbodyidsYes[ long ]
Responses
CodeDescriptionSchema
200Dimension has been deleted successfully.[ AttributeDto ]
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/attributes/{id}

PATCH

Summary

Update attribute fields

Description

API to update fields of existing attributes

Parameters
NameLocated inDescriptionRequiredSchema
attributeFieldsbodyattributeFieldsYesobject
idpathidYeslong
Responses
CodeDescriptionSchema
200Attribute fields have been updated successfully.AttributeDto
204No Content
401Unauthorized
403Forbidden
404Could not update Attribute.
Security
Security SchemaScopes
Authorizationglobal

class-controller

Class items APIs

/v1/dimension/class

GET

Summary

Get All Class

Description

Api to get All Class

Responses
CodeDescriptionSchema
200Fetched all class successfully.[ ClassDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

POST

Summary

Class Creation

Description

API to create a class.

Parameters
NameLocated inDescriptionRequiredSchema
classDtobodyclassDtoYesClassDto
Responses
CodeDescriptionSchema
200OKClassDto
201Class has been created successfully.ClassDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/class/{id}

GET

Summary

Get Class by ID

Description

Api to get Class by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYesstring
Responses
CodeDescriptionSchema
200Fetched class by Id successfully.[ ClassDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

PUT

Summary

updateClass

Parameters
NameLocated inDescriptionRequiredSchema
classDtobodyclassDtoYesClassDto
idpathidYesstring
Responses
CodeDescriptionSchema
200Class has been updated successfully.ClassDto
201Created
401Unauthorized
403Forbidden
404Class with id not found.
Security
Security SchemaScopes
Authorizationglobal

DELETE

Summary

Delete Class

Description

API to delete a class

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYesstring
Responses
CodeDescription
200OK
201Class has been deleted successfully.
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

location-controller

Location items APIs

/v1/dimension/location

GET

Summary

Get All Location

Description

Api to get All Class

Responses
CodeDescriptionSchema
200Fetched all location successfully.[ ClassDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

POST

Summary

Location Creation

Description

API to create a Location.

Parameters
NameLocated inDescriptionRequiredSchema
locationDtobodylocationDtoYesLocationDto
Responses
CodeDescriptionSchema
200OKLocationDto
201Location has been created successfully.LocationDto
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/location/label

POST

Summary

Get All Location by Label

Description

Api to get All Location by Label

Parameters
NameLocated inDescriptionRequiredSchema
labelbodylabelYesstring
Responses
CodeDescriptionSchema
200Fetched all Location by Label successfully.[ ClassDto ]
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/location/{id}

GET

Summary

Get All Location by ID

Description

Api to get All Location by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYesstring
Responses
CodeDescriptionSchema
200Fetched all Location by Id successfully.[ ClassDto ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

PUT

Summary

updateLocation

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYesstring
locationDtobodylocationDtoYesLocationDto
Responses
CodeDescriptionSchema
200Location has been updated successfully.LocationDto
201Created
401Unauthorized
403Forbidden
404Location with id not found.
Security
Security SchemaScopes
Authorizationglobal

DELETE

Summary

Delete Location

Description

API to delete a Location

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYesstring
Responses
CodeDescription
200OK
201Location has been deleted successfully.
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

static-lookup-controller

Dimension Lookup Values APIs

/v1/dimension/lookup

POST

Summary

Api to get lookup values for given field types

Description

Api to get lookup values for given field types

Parameters
NameLocated inDescriptionRequiredSchema
fieldTypesbodyfieldTypesYes[ string ]
Responses
CodeDescriptionSchema
200Lookup values for given field types fetched successfullyobject
201Created
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

dimension-module-map-controller

Dimension Modules APIs

/v1/dimension/module

PATCH

Summary

Update dimension fields

Description

API to update fields of existing dimension

Parameters
NameLocated inDescriptionRequiredSchema
dimensionModuleMapDtobodydimensionModuleMapDtoYesModuleDimensionUpdateRequestDto
Responses
CodeDescriptionSchema
200OK[ DimensionModuleMap ]
201Dimensions has been updated successfully.[ DimensionModuleMap ]
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

/v1/dimension/module/{id}

POST

Summary

Dimension Modules Creation

Description

API to add values to a Dimension Module

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYeslong
valuesbodyvaluesYes[ string ]
Responses
CodeDescriptionSchema
200OK[ string ]
201Value has been added successfully.[ string ]
401Unauthorized
403Forbidden
404Not Found
Security
Security SchemaScopes
Authorizationglobal

DELETE

Summary

Delete Dimension Module

Description

API to delete a dimension modules

Parameters
NameLocated inDescriptionRequiredSchema
idpathidYeslong
valuesbodyvaluesYes[ string ]
Responses
CodeDescription
200OK
201Dimension Module has been deleted successfully.
204No Content
401Unauthorized
403Forbidden
Security
Security SchemaScopes
Authorizationglobal

Models

AttributeDto

NameTypeDescriptionRequired
defaultOptionbooleanIs this the default option
Example: false
No
parentIdstringParent attribute id
Example: "007"
No
statusstringVisibility status of attribute
Enum: "ACTIVE", "INACTIVE"
Example: "ACTIVE"
No
valuestringAttribute Value
Example: "value"
No

ClassDto

NameTypeDescriptionRequired
labelstringClass Item Label
Example: "Label"
Yes

CustomFieldItem

NameTypeDescriptionRequired
idlongDimension Id
Example: 11567
No
labelstringCustom Field Name
Example: "Label"
Yes
modulestringSupported ModulesNo
valueobjectDimension Value
Example: "XYZ"
No

CustomFieldsListRequest

NameTypeDescriptionRequired
applicationstringEnum: "ERP", "CRM", "CRM3", "PEOPLE", "PEOPLE3", "ALL"No
modules[ string ]No

Dimension

NameTypeDescriptionRequired
appNamestringEnum: "ERP", "CRM", "CRM3", "PEOPLE", "PEOPLE3", "ALL"No
codestringNo
createdAtdateTimeNo
createdBylongNo
decimalPrecisionintegerNo
defaultValuestringNo
deletedbooleanNo
descriptionstringNo
dimensionModules[ DimensionModuleMap ]No
fieldTypestringEnum: "NUMBER", "TEXT", "DATE", "DROPDOWN", "MULTI_SELECT", "BOOLEAN", "CURRENCY", "COUNTRY", "USER"No
idlongNo
labelstringNo
mandatorybooleanNo
maxLengthintegerNo
parentDimensionNo
shortNamestringNo
statusstringEnum: "ACTIVE", "INACTIVE"No
systembooleanNo
tenantIdlongNo
updatedAtdateTimeNo
updatedBylongNo

DimensionCount

NameTypeDescriptionRequired
countlongNo
statusstringNo

DimensionDto

NameTypeDescriptionRequired
appNamestringApplication name ERP/CRM.
Enum: "ERP", "CRM", "CRM3", "PEOPLE", "PEOPLE3", "ALL"
Example: "ERP"
No
attributes[ AttributeDto ]Set of possible attributesNo
customFieldIndexintegerNo
decimalPrecisionintegerDecimal precision Value for fields of Number type
Example: 2
No
defaultValuestringDimension Default Value
Example: "XYZ"
No
descriptionstringDimension description
Example: "Custom field for Brand"
Yes
fieldTypestringDimension Type
Enum: "NUMBER", "TEXT", "DATE", "DROPDOWN", "MULTI_SELECT", "BOOLEAN", "CURRENCY", "COUNTRY", "USER"
Example: "TEXT"
No
isModuleMapActivebooleanNo
labelstringDimension Label
Example: "Label"
Yes
mandatorybooleanDimension Mandatory
Example: false
No
maxLengthintegerMaximum length of value
Example: 25
No
modules[ string ]Supported ModulesNo
parentDimensionDtoObject of dimension if Parent selected
Example: "Dimension"
No
staticLookupValues[ string ]No
statusstringDimension Status
Enum: "ACTIVE", "INACTIVE"
Example: "ACTIVE"
No
systembooleanNo

DimensionModuleMap

NameTypeDescriptionRequired
activebooleanNo
appNamestringEnum: "ERP", "CRM", "CRM3", "PEOPLE", "PEOPLE3", "ALL"No
createdAtdateTimeNo
createdBylongNo
customFieldIndexintegerNo
deletedbooleanNo
dimensionDimensionNo
idlongNo
modulestringEnum: "CONTACT", "PRODUCT", "INVOICE", "QUOTATION", "ACCOUNT", "JOURNAL", "ORDER", "BILL", "DEAL", "TICKET", "EXPENSE", "DEPOSIT", "DEBITNOTE", "CREDITNOTE", "BOMASSEMBLY", "STOCKADJUSTMENT", "STOCKTRANSFER", "SALESORDER", "JOBWORKOUTORDER", "JOBWORKOUTSTOCKTRANSFER", "FIXEDASSET"No
tenantIdlongNo
updatedAtdateTimeNo
updatedBylongNo

EnumDto

NameTypeDescriptionRequired
keystringNo
valuestringNo

LocationDto

NameTypeDescriptionRequired
activebooleanIs location active
Example: true
Yes
labelstringLocation Item Label
Example: "Label"
Yes

MandatoryDimensionsRequest

NameTypeDescriptionRequired
applicationstringEnum: "ERP", "CRM", "CRM3", "PEOPLE", "PEOPLE3", "ALL"No

ModuleDimensionUpdateRequestDto

NameTypeDescriptionRequired
dimensionList[ DimensionDto ]No
moduleNamestringEnum: "CONTACT", "PRODUCT", "INVOICE", "QUOTATION", "ACCOUNT", "JOURNAL", "ORDER", "BILL", "DEAL", "TICKET", "EXPENSE", "DEPOSIT", "DEBITNOTE", "CREDITNOTE", "BOMASSEMBLY", "STOCKADJUSTMENT", "STOCKTRANSFER", "SALESORDER", "JOBWORKOUTORDER", "JOBWORKOUTSTOCKTRANSFER", "FIXEDASSET"No

Pageable

NameTypeDescriptionRequired
offsetlongNo
pageNumberintegerNo
pageSizeintegerNo
pagedbooleanNo
sortSortNo
unpagedbooleanNo

Page«DimensionDto»

NameTypeDescriptionRequired
content[ DimensionDto ]No
emptybooleanNo
firstbooleanNo
lastbooleanNo
numberintegerNo
numberOfElementsintegerNo
pageablePageableNo
sizeintegerNo
sortSortNo
totalElementslongNo
totalPagesintegerNo

Sort

NameTypeDescriptionRequired
emptybooleanNo
sortedbooleanNo
unsortedbooleanNo