---
title: "Create an Example"
method: POST
path: "/v2/vision/datasets/{datasetId}/examples"
tags: ["Vision Examples"]
---

# Create an Example

`POST /v2/vision/datasets/{datasetId}/examples`

Adds an example with the specified label to a dataset.

## Path parameters

- `datasetId` string, required

## Response `200`

Example created

- Example
  - `createdAt` string, date-time — Date and time that the example was created.
  - `id` integer, required — ID of the example.
  - `label` Label — Contains information about the label with which the example is associated.
    - `datasetId` integer, required — ID of the dataset that the label belongs to.
    - `id` integer — ID of the label.
    - `name` string, required — Name of the label.
    - `numExamples` integer — Number of examples that have the label.
  - `location` string — URL of the image in the dataset. This is a temporary URL that expires in 30 minutes. This URL can be used to display images that were uploaded to a dataset in a UI.
  - `name` string, required — Name of the example.
  - `object` string — Object returned; in this case, example.

---

[API](https://skmtc.net/salesforce/apis/einstein.md) · [All operations](https://skmtc.net/salesforce/apis/einstein/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesforce/einstein/versions/9944c7a61f34/schema)
