mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	docs: Add steps to enable impression events for existing toggles.
This commit is contained in:
		
							parent
							
								
									752a1df343
								
							
						
					
					
						commit
						31b3792a11
					
				| @ -33,7 +33,7 @@ When you create a new feature toggle via the UI, there's an option at the end of | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| To create a feature toggle with impression data enabled, set the `impressionData` option to `true` in the request payload: | ||||
| To create a feature toggle with impression data enabled, set the `impressionData` option to `true` in the request payload, as seen below. For more options, check the [reference docs on creating features](../api/admin/feature-toggles-api-v2.md#create-toggle). | ||||
| 
 | ||||
| <ApiRequest verb="post" payload={{name: "<feature-toggle-name>", impressionData: true}} url="api/admin/projects/<project-id>/features" title="Create a feature toggle with impression data enabled."/> | ||||
| 
 | ||||
| @ -43,6 +43,9 @@ To enable impression data for an existing toggle, use the "edit" button on the t | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| To enable impression data for an existing toggle, use the [API's toggle patching functionality](../api/admin/feature-toggles-api-v2.md#patch-toggle): | ||||
| <ApiRequest verb="patch" payload={[{op: "replace", path: "/impressionData", value: true}]} url="api/admin/projects/<project-id>/features/<feature-toggle-name>" title="Enable impression data on an existing toggle."/> | ||||
| 
 | ||||
| 
 | ||||
| ## Step 2: Capture impression events in your client {#step-2} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user