Rename Face
PUThttps://demo.frigate.video/api/faces/:old_name/rename
Rename Face
Request​
Path Parameters
old_name Old Namerequired
- application/json
Bodyrequired
new_nameNew Name (string)required
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
Schema
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
import json
conn = http.client.HTTPSConnection("demo.frigate.video")
payload = json.dumps({
"new_name": "string"
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
conn.request("PUT", "/api/faces/:old_name/rename", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
ResponseClear