⚠️ Deprecation Notice: The following endpoint is deprecated.
Updates an existing Directory Record.
Replaces the editable fields (unique identifiers, group assignment, alias, tags) on a Directory Record and returns the updated instance.
About Directory Records
A Directory Record tracks a device through the registration/approval workflow. Updating one is typically used to change its unique identifiers, reassign it to a different device group, or update its alias/tags — it does not directly change approval_status, which is system-managed.
Security
esper_cloud_api_apiKey
- Mock serverhttps://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/directory_record/{directory_record_id}/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/v1/enterprise/{enterprise_id}/directory_record/{directory_record_id}/
curl -i -X PUT \
'https://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/directory_record/{directory_record_id}/' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"unique_identifiers": [
{
"unique_id": "string",
"type": 0
}
],
"group_id": "306db4e0-7449-4501-b76f-075576fe2d8f",
"alias": "string",
"tags": [
"string"
]
}'Updated Directory Record Information
Response
{ "id": "string", "name": "string", "online_status": "ONLINE", "alias": "string", "tags": [ "string" ], "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "approval_status": "WAITING_FOR_APPROVAL", "provisioned_on": "2019-08-24T14:15:22Z", "unique_identifiers": [ { … } ] }