Hi Mike - here's an outline of how to set the Alternate
Transfer Rule for a User:
1) Query for user by alias Query
looks like this:
GET
https://%3cserver%3e/vmrest/users?query=%28alias is operator)
Depending on the language etc. the parens and spaces may have to be escaped as follows:
GET
https://%3cserver%3e/vmrest/users?query=%28alias%20is%20operator%29 <Users>
<User>
<URI>/vmrest/users/6164fd60-2f09-4166-a957-bade3c0da69b</URI> ...
2) Take
the URI returned from the search list to retrieve the entire user: GET
/vmrest/users/6164fd60-2f09-4166-a957-bade3c0da69b
<User>
<CallhandlerURI>/vmrest/handlers/callhandlers/ae4ae176-f51e-4e45-82a5-712cc79acaef</CallhandlerURI> ...
3) Use
the CallhandlerURI returned to PUT the transfer option: PUT
https://%3cserver%3e/vmrest/handlers/callhandlers/ae4ae176-f51e-4e45-82a5-712cc79acaef/transferoptions/Alternate <TransferOption>
<TimeExpires>2020-01-01
00:00:00.0</TimeExpires>
<TransferAnnounce>true</TransferAnnounce>
<TransferConfirm>true</TransferConfirm>
<TransferIntroduce>true</TransferIntroduce>
<TransferScreening>true</TransferScreening>
</TransferOption>
Setting the "TimeExpires" to a date ahead of the current date is key in activating it - by default, the alternate transfer option is not active.
~ Matt