Skip to main content
PUT
/
platform
/
v2
/
models
/
{model_id}
Update Model
import requests

url = "https://api.rebase.energy/platform/v2/models/{model_id}"

payload = { "settings": {
        "serving_active": True,
        "serving_priority": 2
    } }
headers = {
    "Authorization": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
{
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.rebase.energy/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your API key. This is required to access our API programatically. You can view your API key in the Rebase dashboard.

Path Parameters

model_id
string
required

Body

application/json
settings
ModelUpdateSettings · object
required
priority_conflict_resolution
enum<string>
default:strict

How to resolve a priority collision when settings.serving_priority is already taken by another model at the same site:

  • strict: reject the update with a 409 error.
  • auto_increment: shift all conflicting models' priorities by incrementing by 1.
  • swap: swap the priorities of the target model and the conflicting model.
Available options:
strict,
auto_increment,
swap

Response

Successful Response