PATCH https://api.imageintelligence.com/v2/recognition/identities/{namespace}/{id}
PATCH /identities/{namespace}/{id}
provides the ability to update an identity's attributes as well as add/remove imageIds associated to an identity.
It's important to mention if you remove all imageIds
associated with an identity, the identity won't be removed. If the goal is to remove the identity entirely, you can DELETE /identities/{namespace}/{id}
.
Name | In | Description | ||||
---|---|---|---|---|---|---|
namespace required | path | string | ||||
id required | path | string The ID of a recognition identity | ||||
customId optional | body | string An arbitrary client specific resource identifier to reference this job (usually UUID) | ||||
images optional | body | object
|
{
"customId": "0285a6b8-a617-11e6-8253-175f847ef3cf",
"images": {
"add": [
"af278ded-5412-4916-bb5c-13769bfb7644",
"633081ed-4c05-459b-bddc-061c66581f92",
"c3c61384-1861-4026-be2e-4d70646231c0"
],
"remove": [
"57ff6229-9082-4e14-aff6-4244e9dad9eb",
"9521422c-76d0-4f38-aa10-1c12d11b93f5"
]
}
}
Recognition update identity request was successfully submitted
id required | string | ||||||||||||||||||||||||||||||||||||
customId optional | string | ||||||||||||||||||||||||||||||||||||
images required | array[object]
| ||||||||||||||||||||||||||||||||||||
namespace optional | string Max Length: 128 | ||||||||||||||||||||||||||||||||||||
createdAt required | integer UNIX timestamp for when the identity was created Format: int64 |
{
"id": "ab36de62-fe3e-4907-8a03-7d27c21fa01a",
"customId": "0285a6b8-a617-11e6-8253-175f847ef3cf",
"images": [
{
"id": "52547074-a622-11e6-8f61-63f37dc33285",
"customId": "some_person_filled_image",
"feedId": "Camera_123456",
"identityId": "af278ded-5412-4916-bc5c-13469bfe7644",
"url": "https://publicly.available.domain.net/image-001.jpg",
"boundingBox": {
"xMin": 0.23873,
"yMin": 0.23873,
"xMax": 0.75087,
"yMax": 0.96537
},
"groupId": "63652986-b730-4ab8-a175-7914a950e7a0",
"boundingBoxConfidence": 0.9129213,
"type": "FACE",
"isFrontal": true,
"sharpness": 0.671230746,
"width": 150,
"height": 200,
"createdAt": 1487648348000
}
],
"namespace": "acme",
"createdAt": 1487648348000
}