| description | Automatically generated file. DO NOT MODIFY |
|---|
const options = {
authProvider,
};
const client = Client.init(options);
const directoryObject = {
'@odata.id': 'https://graph.microsoft.com/beta/directoryObjects/{id}'
};
await client.api('/devices/{id}/registeredOwners/$ref')
.version('beta')
.post(directoryObject);