Occasional Contributor I

No Recipt for guest created with API

Can anyone confirm if the auto_send_smtp receipt feature is working when creating a guest through the API?  It works when I create the guest through the portal, but not when creating using the API.  The account actually gets created fine.  I'm just not getting the email receipt when using the API.  I am sending "auto_send_smtp": 1, as part of the body response.  That field is present in the form and set with initial value of 1 (although I have it as a hidden field).  Any thoughts?

Guru Elite

Re: No Recipt for guest created with API

The API does not use the form configuration.


I just did a quick test with the payload below and received the email receipt.


  "email": "",
  "enabled": true,
  "expire_time": "0",
  "password": "aruba123",
  "role_id": 2,
  "username": "",
  "visitor_company": "The Empire",
  "visitor_name": "Darth Vader",
  "auto_send_smtp": 1

| Tim Cappalli | Aruba Security | @timcappalli | |

NOTE: Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba or Hewlett Packard Enterprise.
Search Airheads
Showing results for 
Search instead for 
Did you mean: