Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Ollama → copy_model_ollama_api_copy__url_idx__post

AI-generated

Summary

Send a POST request to copy a model identified by a URL index within the Ollama resource in the Open Web UI API, specifying source and destination model names in the request body.

Inputs

  • url_idx (required) — The index identifying the URL path parameter to specify which model to copy.
  • source (required) — The source model name to be copied.
  • destination (required) — The destination model name for the new copy of the source model.
  • skipAuthentication — Optional flag to bypass authentication for the request.

Output shape

a JSON object typically containing the result of the copy operation

The response is returned in application/json format as per the mediaType setting. The operation requires authentication by default unless skipAuthentication is set to true.

Examples

Example 1: Copying a model within Ollama

Set 'url_idx' path parameter to identify the model to copy. Provide 'source' and 'destination' fields in the JSON request body to specify model names. Execute as a POST request to /ollama/api/copy/{url_idx}. Use default authentication unless explicitly skipped.

Links

Discussion