Update Secret
Update Client secret by ID
PATCH
https://biometridon.polygon.pt/api/clients/:id/secret
This endpoint allows you to update the client secret field. This route is only for Master Users.
Path Parameters
Name
Type
Description
id
string
ID of the client to get
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
Authentication user token
Request Body
Name
Type
Description
oldSecret
string
Old secret
newSecret
string
Unique secret
{
"data": {
"key": "key1",
"name": "client1",
"flows": [""],
"pusher": {
"appId": "",
"key": "",
"secret": "",
"privateChannels": true
},
"twilio": {
"account": "",
"key": "",
"secret": "",
"smsAccountsId": "",
"smsAuthToken": "",
"smsFromNumber": ""
},
"biometrid": {
"key": "",
"secret": "",
"url": "https://api.biometrid.com/api/1.1"
},
"settingsId": "",
"userId": "",
"active": true,
"isMaster": false,
"created_at": "2020-07-09T16:26:23.702Z",
"updated_at": "2020-07-09T16:26:23.702Z",
"id": "5f07452f79f2e851bc3eb837"
},
"meta": {
"message": "Client Updated with success."
},
"status": true
}
Update my Client secret
PATCH
https://biometridon.polygon.pt/api/clients/secret
This endpoints allows you yo update the user client secret information.
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
Authentication user token
Request Body
Name
Type
Description
oldSecret
string
Old secret
newSecret
string
Unique secret
{
"data": {
"key": "key1",
"name": "client1",
"flows": [""],
"pusher": {
"appId": "",
"key": "",
"secret": "",
"privateChannels": true
},
"twilio": {
"account": "",
"key": "",
"secret": "",
"smsAccountsId": "",
"smsAuthToken": "",
"smsFromNumber": ""
},
"biometrid": {
"key": "",
"secret": "",
"url": "https://api.biometrid.com/api/1.1"
},
"settingsId": "",
"userId": "",
"active": true,
"isMaster": false,
"created_at": "2020-07-09T16:26:23.702Z",
"updated_at": "2020-07-09T16:26:23.702Z",
"id": "5f07452f79f2e851bc3eb837"
},
"meta": {
"message": "Client Updated with success."
},
"status": true
}
Last updated
Was this helpful?