---
schema_version: "1"
id: f68218f96c6df54648ddb922a02b4264a6f08b48a23b9c4d1e0315e979bafb07
title: Model Resource
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/bi_dev_guide_rest_sdd/bi_sdd_resources_models_id.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest_sdd.meta/bi_dev_guide_rest_sdd/bi_sdd_resources_models_id.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4bebddabbfeab7b0de34402a98e557e3c02b7267c0c5253977296ac6a6573e77
description: Returns an Einstein Discovery model, updates a model, or deletes a model.
---
# Model Resource

Returns an Einstein Discovery model, updates a model, or deletes a model.

Resource URL

/smartdatadiscovery/models/<modelId>

Formats

JSON

Available Version

48.0 GET DELETE, 50.0 PATCH

HTTP Methods

GET PATCH DELETE

Request parameters for GET and DELETE

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| model​Id | String | The ID of the model to retrieve, update, or delete. | Required | 48.0 |

Response body for GET and PATCH

[Smart Data Discovery AI Model](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest_sdd.meta/bi_dev_guide_rest_sdd/bi_sdd_responses_smart_data_discovery_ai_model.htm "An Einstein Discovery AI model to retrieve.")

Request parameters for PATCH

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| model | [Smart​Data​Discovery​AI​Model​Input](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest_sdd.meta/bi_dev_guide_rest_sdd/bi_sdd_requests_smart_data_discovery_ai_model_input.htm "The Einstein Discovery AI model to create or update.") | The model information to update. | Required | 50.0 |
| model​Id | String | The ID of the model to retrieve, update, or delete. | Required | 50.0 |