The display_fields
are only applicable to the SmartGroupMobileDeviceMembershipChange
event. Accepted values (capitlization sensitive) are the same as those available from the GUI when making and Advanced Search.
Sample Request Body
Below is an example request body that can be used to update the display fields returned in a webhook response body whose event type is SmartGroupMobileDeviceMembershipChange
. A default set of attributes are pre-configured when enabling this functionality and cannot be removed from the response. Accepted values (case sensitive) are the same as those available from the GUI when making an Advanced Search.
Beginning with Jamf Pro version 10.48.0, smart group membership change events include the smart_group_id
field. This update adds API support to specify what group to monitor for changes, which already exists within the user interface.
<webhook>
<name>Sample</name>
<enabled>true</enabled>
<url>https://server.com</url>
<content_type>application/json</content_type>
<event>PatchSoftwareTitleUpdated</event>
<connection_timeout>5</connection_timeout>
<read_timeout>2</read_timeout>
<authentication_type>NONE</authentication_type>
<username/>
<password/>
</webhook>
<webhook>
<enable_display_fields_for_group_object>true</enable_display_fields_for_group_object>
<display_fields>
<display_field>
<name>IP Address</name>
</display_field>
<display_field>
<name>Last Enrollment</name>
</display_field>
</display_fields>
</webhook>
<webhook>
<name>Sample</name>
<enabled>true</enabled>
<url>https://server.com</url>
<content_type>application/json</content_type>
<event>SmartGroupComputerMembershipChange</event>
<connection_timeout>5</connection_timeout>
<read_timeout>2</read_timeout>
<authentication_type>BASIC</authentication_type>
<username>Sample User</username>
<password>SamplePassword</password>
<smart_group_id>1</smart_group_id>
</webhook>