Skip to main content

Update User ExtraField Validation

PUT : http://<base_url>/digipay/v3/user/user_extrafield_validation

This API is used to update new user extra field validation data into the system.

BODY PARAMS:-

ParameterTypeDescriptionValue
idStringa unique id assign to user to retrive to user extra field validation detail4bc6ba63954641c8976488be871fd41a
extra_field_keyStringRepresents an additional key associated with the field, possibly for metadata or referencing purposes.sample_key
field_validation_keyStringRefers to a key used for validation purposes, often in a validation rule configuration.validation_key
field_validation_valueStringHolds a sample validation value or pattern that data should adhere to.validation_value
field_validation_minDoubleIndicates the minimum valid value for the field, useful in numeric or range-based validations.0.5
field_validation_maxDoubleRepresents the maximum valid value for the field, also relevant in numeric or range-based validations.10
field_validation_errorStringContains an error message or description to be displayed when validation fails.Invalid value

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request PUT \
--url http://192.168.1.102:8014/digipay/v3/user/user_extrafield_validation \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": "4bc6ba63954641c8976488be871fd41a",
"extra_field_key": "sample_key",
"field_validation_key": "validation_key",
"field_validation_value": "validation_value",
"field_validation_min": 0.5,
"field_validation_max": 10,
"field_validation_error": "Invalid value"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "USER_USER_EXTRAFIELD_VALIDATION_DATA_UPDATE_SUCCESS",

}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR