Update Project Config
This endpoint updates the current project settings and configuration details. It is restricted to project admins if allow_overwrite
is false
.
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.
Whether to apply this configuration setting or not.
true
Whether non-admin users can overwrite the configuration. Only admins can modify this field.
false
Timestamp when the configuration was created.
2025-09-25T08:29:50.735Z
Timestamp when the configuration was last updated.
2025-09-25T08:29:50.735Z
Version of the configuration schema.
v1
Project configuration updated successfully.
Bad Request – Invalid configuration or missing required parameters.
Unauthorized – Invalid token or missing token.
Forbidden – User is not authorized to perform this action. Possible reasons: - User is not a member of this project - Only admins can modify allow_overwrite
- User is not an admin and overwrite is not allowed
Project configuration not found.
Internal server error
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