PATCH
/
models
/
custom
/
{model_id}
import requests

url = "https://api.opper.ai/v2/models/custom/{model_id}"

payload = {
    "name": "<string>",
    "identifier": "<string>",
    "extra": {},
    "api_key": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.request("PATCH", url, json=payload, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "identifier": "<string>",
  "extra": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string
required

The ID of the custom language model to update

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.