# Update an inference endpoint
**PUT /_inference/{task_type}/{inference_id}/_update**
**All methods and paths for this operation:**
PUT
/_inference/{inference_id}/_update
PUT
/_inference/{task_type}/{inference_id}/_update
Modify `task_settings`, secrets (within `service_settings`), or `num_allocations` for an inference endpoint, depending on the specific endpoint service and `task_type`.
IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.
For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.
However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.
## Required authorization
* Cluster privileges: `manage_inference`
## Servers
- http://api.example.com: http://api.example.com ()
## Authentication methods
- Api key auth
- Basic auth
- Bearer auth
## Parameters
### Path parameters
- **task_type** (string)
The type of inference task that the model performs.
- **inference_id** (string)
The unique identifier of the inference endpoint.
### Body: application/json (object)
- **chunking_settings** (object)
The chunking configuration object.
Applies only to the `embedding`, `sparse_embedding` and `text_embedding` task types.
Not applicable to the `rerank`, `completion`, or `chat_completion` task types.
- **service** (string)
The service type
- **service_settings** (object)
Settings specific to the service
- **task_settings** (object)
Task settings specific to the service and task type
## Responses
### 200
#### Body: application/json (object)
- **chunking_settings** (object)
The chunking configuration object.
Applies only to the `embedding`, `sparse_embedding` and `text_embedding` task types.
Not applicable to the `rerank`, `completion`, or `chat_completion` task types.
- **service** (string)
The service type
- **service_settings** (object)
Settings specific to the service
- **task_settings** (object)
Task settings specific to the service and task type
- **inference_id** (string)
The inference Id
- **task_type** (string)
The task type
[Powered by Bump.sh](https://bump.sh)