Extra Fields / Entity

Create Extra Field for Resource

This endpoint allows you to create an Extra Field for a specific entity.

You will only be able to create an Extra Field after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterTypeDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST BODY

AttributeTypeDescription
entity (Required)StringThe name of the entity the Extra Field is linked to
descriptionStringField name in Spanish
fieldName (Required)StringField name in the ForceManager database
type (Required)IntegerDefine the Extra Field's data type. The allowed types are: datetime, text, decimal, bit, list, multivalue
valueListRelatedStringIf type is list or multivalue, it has to contain the database name of table that the Extra Field is sticked to
defaultValueStringThe default value that the field should have
descriptionENStringField name in English
descriptionITStringField name in Italian
descriptionFRStringField name in French
descriptionDEStringField name in German
descriptionPTStringField name in Portuguese
descriptionUSStringField name in American English
descriptionRUStringField name in Russian
descriptionBRStringField name in Brasilian Portuguese
descriptionDKStringField name in Dutch
branchesArrayBranches in which the Extra Field is visibile
idIntegerThe Extra Field unique identifier
lengthIntegerIf Type is Text, define the length of this field
mandatoryBooleanIf true, the Extra Field is mandatory
mandatoryRestApiBooleanIf true, the Extra Field is mandatory in the API requests
readOnlyBooleanIf true, the Extra Field is read only
orderIntegerDefine its position inside the Tab
tabIdIntegerThe id of the tab that contains the Extra Field
searchableBooleanIf true, you can search by the Extra Field
visibleInListBooleanIf true, the Extra Field is visible in the entity list views of the web app
visibleInPhoneCallFormBooleanIf true, the Extra Field is visible in the Phone Call form
webVisibilityBooleanIf true, the Extra Field is visible in all the devices
mobileVisibilityBooleanIf true, the Extra Field is visible in the mobile version
restApiStringIf true, the Extra Field will be visible in the API requests
dynamicFieldStringThe database name of the table that the Extra Field visibility depends from
dynamicFieldValuesArrayThe values of the table that make the Extra Field visibile
dependenceFieldStringIf type is list or multivalue, it has to contain the databae name fo the dependent table. This also requires to fill the idParent field of each Value of the valueListRelated table, to make the dependency effective
fuzzySearchBooleanIf type is list or multivalue, a value of the table can be selected through a search input instead of a option drop down menu, inside the entity create/update form
includeTimeBooleanIf type is datetime, it lets you specify if the field has to include time values

RESPONSE

AttributeTypeDescription
idIntegerId assigned to the new ExtraField
MessageStringShows the operation status

RESPONSE CODES

StatusDescription
200 OKShows if operation succeeded
400 Bad RequestShows when an invalid request or the requested service is not available
post/extrafields/VALUE

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/extrafields/VALUE
  • Auth: API key in header X-Session-Key

Headers

Acceptstring

Request body

fieldNamestring
valueListRelatedstring
descriptionstring
searchableboolean
visibleInListboolean
orderinteger
webVisibilityboolean
tabIdinteger
multilanguageboolean
mobileVisibilityboolean
mandatoryboolean
readOnlyboolean
descriptionENstring
descriptionITstring
descriptionFRstring
descriptionDEstring
descriptionPTstring
descriptionUSstring
descriptionRUstring
descriptionBRstring
descriptionDKstring
defaultValuestring
restApiboolean
visibleInPhoneCallFormboolean
typestring
lengthinteger

Response

Create Extra Field for Resource

Changes

No recorded changes to this operation across all 1 revision of this API.