Einstein Language Endpoint That Returns Examples Is Deprecated

The Einstein Language endpoint that returns all examples for a specific label is deprecated as of December 3, 2020. This endpoint is replaced by a new endpoint that has a different format. Be sure to update any calls to the old endpoint to use the new endpoint.

Where: This change applies to Lightning Experience, Salesforce Classic, and all versions of the Salesforce app in Group, Professional, Enterprise, Performance, Unlimited, Developer, and Contact Manager editions.

When: This change is as of December 3, 2020. The old endpoint continues to work for datasets created before December 3, 2020. For datasets created after December 3, you must use the new endpoint.

How: The endpoint that returns all examples for a specific label is being deprecated. That endpoint takes the label ID as a query parameter and looks like this.
https://api.einstein.ai/v2/language/examples?labelId=<LABEL_ID>
The new endpoint that returns all examples for a specific label has a dataset ID resource and a label ID resource and looks like this.
https://api.einstein.ai/v2/language/examples/{datasetId}/label/{labelId}