Create a new face name
POSThttps://demo.frigate.video/api/faces/:name/create
Creates a new folder for a face name in the faces directory. This is used to organize face training images. The face name is sanitized and spaces are replaced with underscores. Returns a success message or an error if face recognition is not enabled.
Request​
Path Parameters
name Namerequired
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
- Example (auto)
Schema
successSuccess (boolean)required
messageMessage (string)required
{
"success": true,
"message": "string"
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
detail object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- python
- nodejs
- javascript
- curl
- rust
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("demo.frigate.video")
payload = ''
headers = {
'Accept': 'application/json'
}
conn.request("POST", "/api/faces/:name/create", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
ResponseClear