Unmask a Value¶
/api/repositories/(string:repository)/unmask
Parameter | Type | Purpose |
---|---|---|
repository | string | The name of the repository to access |
Post¶
-
POST
/api/repositories/
(string: repository)/unmask
¶
POST /api/repositories/jupiter/unmask HTTP/1.1
Content-Type: application/json
{
"data": {
"value": "1/1/16",
"mask": "0N/0N/20NN"
}
}
The data object must contain 2 key-value pairs:
Field | Description |
---|---|
value | The value to be recoded |
mask | The mask to be applied to the value |
Both fields are required.
If the recode is successful, the response will contain the given value with the mask applied to it.
{
"value": "01/01/2016"
}
If the value or mask contain a space, then they must be surrounded by quotes:
POST /api/repositories/jupiter/unmask HTTP/1.1
Content-Type: application/json
{
"data": {
"value": "\"555 123-4567\"",
"mask": "\"(NNN) NNN-NNNN\""
}
}
{
"value": "(555) 123-4567"
}
Response Code | Reason |
---|---|
200 | Success |
500 | Server error |