Update Project Config

Update Current Project Settings

put

This endpoint updates the current project settings and configuration details. It is restricted to project admins if allow_overwrite is false.

Authorizations
Body

A request object for updating the project configuration. Required fields must be included, while other fields are optional. This endpoint is restricted to admins unless allow_overwrite is set to true.

activebooleanRequired

Whether to apply this configuration setting or not.

Example: true
allow_overwriteboolean | nullableOptional

Whether non-admin users can overwrite the configuration. Only admins can modify this field.

Example: false
created_atstring · date-timeRequired

Timestamp when the configuration was created.

Example: 2025-09-25T08:29:50.735Z
updated_atstring · date-timeRequired

Timestamp when the configuration was last updated.

Example: 2025-09-25T08:29:50.735Z
schema_versionstring | nullableOptional

Version of the configuration schema.

Example: v1
Responses
200

Project configuration updated successfully.

application/json
put
PUT /api/v1/project-configs HTTP/1.1
Host: api.cortecs.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 292

{
  "inference_config": {
    "allowed_providers": [
      "mistral",
      "scaleway"
    ],
    "blacklisted_models": [],
    "eu_native": false,
    "include_metadata": true,
    "preference": "speed"
  },
  "active": true,
  "allow_overwrite": false,
  "created_at": "2025-09-25T08:29:50.735Z",
  "updated_at": "2025-09-25T08:29:50.735Z",
  "schema_version": "v1"
}
{
  "success": true
}

Last updated