Management APIs / Projects

Update a project

PUThttps://api.spice.ai/v1/projects/{projectId}

Updates a project's metadata and configuration, including description, visibility, spicepod configuration, replicas, and resource limits.

Authorizations

  • AuthorizationstringRequired

    Bearer <token>. Authentication lists the tokens it accepts.

Path parameters

  • projectIdintegerRequired

    The ID of the project

Header parameters

  • If-Matchstring

    The ETag of the Spicepod version the change started from (RFC 9110). The update applies only while that version is the latest. Send If-None-Match: * instead for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. Without either, or with If-Match: *, the update applies to the latest version. A weak tag, a tag list or both headers answer 400.

  • If-None-Matchstring

    Send * for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. The update writes the Spicepod only while the store holds no Spicepod. A project connected to a GitHub repository answers 412. Any other value, or both headers, answers 400.

    • Value: *
  • X-Org-Namestring

    The organization to act on, by handle. Omit it to act on the organization the credential is bound to; sending it blank is a 400, not the same as omitting it. A user credential may name any organization its owner belongs to; a machine credential is pinned to its own. A portal session token is bound to none, so it must send this header on every route but GET /v1/orgs (400 org_assertion_required otherwise).

    • Pattern: ^[A-Za-z0-9._-]{1,255}$

Body

application/jsonRequired

  • descriptionstring

  • visibilitystring

    • Allowed values: public, private
  • production_branchstring

  • tagsmap of string

    Key-value tags for the project. The map replaces the stored tags. System tags the project already has stay on the project when the map omits them.

  • spicepodstring | object

    The project's Spicepod. A project connected to a GitHub repository takes its Spicepod from the repository's spicepod.yaml, so for such a project only the stored Spicepod, sent back unchanged, is accepted.

  • image_tagstring | null

    Runtime image tag for a managed project; rejected for standalone projects. A non-empty value pins the project. On stable, the pin must be a published stable runtime version. On preview, it must be a published preview or stable runtime version. On stable or preview, send null to clear a pin so deploys resolve from the channel catalog (stable - latest GA for the configured version range; preview - latest RC). null is rejected on nightly and internal channels.

  • update_channelstring

    Update channel for a managed runtime; rejected for standalone projects.

    • Allowed values: stable, preview, nightly
  • versionstring

    Semver range for a managed runtime version (e.g. 1.x, 2.x); rejected for standalone projects.

  • replicasinteger

    Managed runtime replica count; rejected for standalone projects.

    • Minimum: 0
  • resourcesobject

    Resource requests and limits for a managed project container; rejected for standalone projects.

    2 properties
    • limitsobject

      3 properties
      • cpustring

        Whole-number vCPU limit, or '-' for no CPU limit

      • memorystring

        Memory limit in Gi (for example, 16Gi)

      • ephemeral-storagestring

        Ephemeral storage limit in Gi (for example, 8Gi)

    • requestsobject

      1 property
      • cpustring

        CPU request. Minimum 100 millicores (for example, 100m or 0.1).

  • executorobject

    Executor container configuration for a managed project; rejected for standalone projects.

    3 properties
    • replicasinteger

      Number of executor replicas

      • Minimum: 0
    • resourcesobject

      Resource requests and limits for the executor container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

          Ephemeral storage limit in Gi (for example, 8Gi)

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • storage_size_gbnumber

  • regionstring

    The project's current region. A project stays in the region it was created in. A managed project answers 400 with code region_change_not_supported when the value differs from its region and cluster_name is not set. Rejected for standalone projects, whose placement is resolved during attachment.

  • cluster_namestring

    Reassign the project to a dedicated cluster, as listed by GET /v1/clusters. Provide at most one of region or cluster_name. When set, region/routing are derived from the cluster; if region is also provided it must match the cluster's region. The cluster must be in the project's region, or the request answers 400 with code region_change_not_supported. A project with no region yet may take the cluster's region. Rejected for standalone projects, whose placement is resolved during attachment.

  • storage_size_gbnumber

    Managed runtime storage size; rejected for standalone projects.

  • storage_claim_size_gbnumberDeprecated

    Deprecated. Use storage_size_gb instead. Rejected for standalone projects.

Responses

200OKapplication/json

Project updated successfully. When the request sends a spicepod and the project is not connected to a GitHub repository, the response also carries schema_warnings: each place the stored spicepod fails the published schema of the project's runtime version, as a field path and the failed rule. A key the schema does not declare shows as *, and no value is returned. An empty list means the spicepod passes. The field is absent when the check did not finish (no published schema, schema unavailable, a time out, or a schema load deferred because another runtime version's schema compiled within the last minute), or when the project has no pinned runtime version. Warnings never refuse the update. The list holds at most 200 entries, and schema_warnings_truncated is true when the spicepod has more failures.

Headers

  • ETagstring

    The version of the saved Spicepod. Absent when the update did not save the Spicepod.

  • idinteger

    Unique identifier for the project

  • namestring

    Name of the project

  • kindstring

    Resolved project hosting model

    • Allowed values: managed, standalone, byoc
  • descriptionstring | null

    Description of the project

  • visibilitystring

    Visibility setting for the project

    • Allowed values: public, private
  • created_atstring (date-time)

    Timestamp when the project was created

  • cnamestring | null

    Region identifier

  • cluster_namestring | null

    Resolved dedicated cluster name; null for projects not assigned to a dedicated cluster.

  • endpointstring | null

    The data-plane endpoint the project connects to, or null before a standalone instance is attached.

  • production_branchstring | null

    Production branch for the project

  • api_keystringDeprecated

    Deprecated. Use the API Keys endpoints instead.

  • tagsmap of string | null

    Key-value tags for the project

  • forked_fromobject | null

    The project this project was forked from, while that project is live in the same organization. Null for a project that was not created as a fork.

    2 properties
    • idintegerRequired

      ID of the source project

    • namestringRequired

      Name of the source project

  • paused_atstring (date-time) | null

    Timestamp when the project was paused; null while running

  • warningstring | null

    Present when the project was created but initial configuration could not be applied

  • configobject | null

    Runtime configuration; null for an unattached standalone project.

    10 properties
    • spicepodobject | null

      Spicepod configuration

    • registrystring | null

      Container registry for the runtime image

    • image_tagstring | null

      Runtime image tag

    • update_channelstring | null

      Update channel for the runtime

      • Allowed values: stable, preview, nightly
    • replicasinteger

      Number of replicas

    • resourcesobject | null

      Resource requests and limits for the project container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • executorobject | null

      Executor container configuration

      2 properties
      • replicasinteger

        Number of executor replicas

      • resourcesobject

        Resource requests and limits for the executor container

        2 properties
        • limitsobject

          3 properties
          • cpustring

            Whole-number vCPU limit, or '-' for no CPU limit

          • memorystring

            Memory limit in Gi (for example, 16Gi)

          • ephemeral-storagestring

        • requestsobject

          1 property
          • cpustring

            CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • regionstring | null

      Cloud region code (e.g., us-east-1)

    • node_groupstring | null

      Node group for scheduling the project runtime

    • storage_claim_size_gbnumber | null

      Storage claim size in GB

  • schema_warningsarray of object

    2 properties
    • pathstringRequired

      JSON pointer to the failing field.

    • rulestringRequired

      The JSON Schema keyword that failed, for example type or additionalProperties.

  • schema_warnings_truncatedboolean

    Present and true when the spicepod has more failures than schema_warnings lists.

400Bad Request

Invalid request body or project ID, including placement or hosted runtime fields that do not apply to standalone projects. A managed project that names a region other than its own, or a cluster_name in another region, returns code region_change_not_supported. A project stays in the region it was created in; create a project in the new region instead. When image_tag is supplied on stable or preview, a tag that is not a published version for that channel returns { error: 'Invalid image_tag for stable channel', code: 'invalid_stable_image_tag' } (or the preview analog). A spicepod that adds a component on a source the Spice runtime no longer loads returns code retired_component_source; components the project already stores on such a source may be kept, edited and renamed, and a project backed by a GitHub repository is not checked. A spicepod that holds a plain-text secret (a password, token, API key, private key, or URL password in a component param) returns code plaintext_secrets with plaintext_secrets listing each path. Store the value as a project or org secret and use ${secrets:NAME} in its place. A spicepod with a credential outside component params, or in a YAML comment, returns code credentials_detected with locations listing each YAML path or line. Remove the credential.

401Unauthorized

403Forbidden

Insufficient scope, viewer role cannot mutate projects, requested replicas or resources exceed plan limits, dedicated-cluster assignment or special-org private-compute ceilings required, requested resources exceed dedicated-cluster capacity, image_tag was supplied outside the Enterprise plan (code: image_tag_requires_enterprise), or the requested runtime image is not available for the organization plan (code: image_tag_not_allowed_for_plan); omitting image_tag leaves the configured image unchanged

404Project not found

409Conflict

The project's lifecycle state changed while the update was in flight (a pause, resume, or restore landed at the same time), so the configuration was not saved (code: project_state_changed). Re-read the project before retrying: a configuration update clears paused_at, so repeating this request against a project that has since been paused also resumes it. Or a spicepod that differs from the stored one was sent for a project connected to a GitHub repository (code: github_connected); change spicepod.yaml in the repository instead, since nothing in that request is applied. Or the project region changed while a cluster_name update was in flight (code: project_region_changed); nothing was saved, so read the project and retry. Or a spicepod was sent for a standalone project that no instance is attached to yet (code: standalone_project_not_attached); attach an instance to the project, then save its Spicepod.

412Precondition Failedapplication/json

The Spicepod changed after the version that If-Match or If-None-Match: * names, other saves kept changing it, or the project takes its Spicepod from a GitHub repository (code: conflict). Nothing is saved when the version check before the update fails. A Spicepod that changes while the update runs can leave the other fields of the request applied. Read the project again, then reapply the change.

  • errorstringRequired

    What failed and what to do next

  • codestringRequired

    • Value: conflict

500Internal server error

502Bad Gateway

The configuration was stored but could not be published to the spicepod registry (code: registry_publish_failed), so the project still deploys its previously published configuration. Retry the request.

503Runtime version catalog is unavailable

curl -X PUT "https://api.spice.ai/v1/projects/<projectId>" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "string",
    "visibility": "public",
    "production_branch": "string",
    "tags": {},
    "spicepod": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "version": "string",
    "replicas": 0,
    "resources": {},
    "executor": {},
    "region": "string",
    "cluster_name": "string",
    "storage_size_gb": 0,
    "storage_claim_size_gb": 0
  }'
{
  "id": 0,
  "name": "string",
  "kind": "managed",
  "description": "string",
  "visibility": "public",
  "created_at": "2026-01-01T00:00:00Z",
  "cname": "string",
  "cluster_name": "string",
  "endpoint": "string",
  "production_branch": "string",
  "api_key": "string",
  "tags": {},
  "forked_from": {
    "id": 0,
    "name": "string"
  },
  "paused_at": "2026-01-01T00:00:00Z",
  "warning": "string",
  "config": {
    "spicepod": {},
    "registry": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "replicas": 0,
    "resources": {
      "limits": {
        "cpu": "string",
        "memory": "string",
        "ephemeral-storage": "string"
      },
      "requests": {
        "cpu": "string"
      }
    },
    "executor": {
      "replicas": 0,
      "resources": {
        "limits": {
          "cpu": "string",
          "memory": "string",
          "ephemeral-storage": "string"
        },
        "requests": {
          "cpu": "string"
        }
      }
    },
    "region": "string",
    "node_group": "string",
    "storage_claim_size_gb": 0
  },
  "schema_warnings": [
    {
      "path": "string",
      "rule": "string"
    }
  ],
  "schema_warnings_truncated": true
}

application/json

PUThttps://api.spice.ai/v1/orgs/{orgId}/projects/{projectId}

The org is orgId in the path. Updates a project's metadata and configuration, including description, visibility, spicepod configuration, replicas, and resource limits.

Authorizations

  • AuthorizationstringRequired

    Bearer <token>. Authentication lists the tokens it accepts.

Path parameters

  • orgIdintegerRequired

    The org id from GET /v1/orgs

    • Minimum: 1
  • projectIdintegerRequired

    The ID of the project

Header parameters

  • If-Matchstring

    The ETag of the Spicepod version the change started from (RFC 9110). The update applies only while that version is the latest. Send If-None-Match: * instead for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. Without either, or with If-Match: *, the update applies to the latest version. A weak tag, a tag list or both headers answer 400.

  • If-None-Matchstring

    Send * for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. The update writes the Spicepod only while the store holds no Spicepod. A project connected to a GitHub repository answers 412. Any other value, or both headers, answers 400.

    • Value: *
  • X-Org-Namestring

    When present, X-Org-Name must name the same org as orgId. Otherwise the request returns org_path_mismatch (400).

    • Pattern: ^[A-Za-z0-9._-]{1,255}$

Body

application/jsonRequired

  • descriptionstring

  • visibilitystring

    • Allowed values: public, private
  • production_branchstring

  • tagsmap of string

    Key-value tags for the project. The map replaces the stored tags. System tags the project already has stay on the project when the map omits them.

  • spicepodstring | object

    The project's Spicepod. A project connected to a GitHub repository takes its Spicepod from the repository's spicepod.yaml, so for such a project only the stored Spicepod, sent back unchanged, is accepted.

  • image_tagstring | null

    Runtime image tag for a managed project; rejected for standalone projects. A non-empty value pins the project. On stable, the pin must be a published stable runtime version. On preview, it must be a published preview or stable runtime version. On stable or preview, send null to clear a pin so deploys resolve from the channel catalog (stable - latest GA for the configured version range; preview - latest RC). null is rejected on nightly and internal channels.

  • update_channelstring

    Update channel for a managed runtime; rejected for standalone projects.

    • Allowed values: stable, preview, nightly
  • versionstring

    Semver range for a managed runtime version (e.g. 1.x, 2.x); rejected for standalone projects.

  • replicasinteger

    Managed runtime replica count; rejected for standalone projects.

    • Minimum: 0
  • resourcesobject

    Resource requests and limits for a managed project container; rejected for standalone projects.

    2 properties
    • limitsobject

      3 properties
      • cpustring

        Whole-number vCPU limit, or '-' for no CPU limit

      • memorystring

        Memory limit in Gi (for example, 16Gi)

      • ephemeral-storagestring

        Ephemeral storage limit in Gi (for example, 8Gi)

    • requestsobject

      1 property
      • cpustring

        CPU request. Minimum 100 millicores (for example, 100m or 0.1).

  • executorobject

    Executor container configuration for a managed project; rejected for standalone projects.

    3 properties
    • replicasinteger

      Number of executor replicas

      • Minimum: 0
    • resourcesobject

      Resource requests and limits for the executor container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

          Ephemeral storage limit in Gi (for example, 8Gi)

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • storage_size_gbnumber

  • regionstring

    The project's current region. A project stays in the region it was created in. A managed project answers 400 with code region_change_not_supported when the value differs from its region and cluster_name is not set. Rejected for standalone projects, whose placement is resolved during attachment.

  • cluster_namestring

    Reassign the project to a dedicated cluster, as listed by GET /v1/clusters. Provide at most one of region or cluster_name. When set, region/routing are derived from the cluster; if region is also provided it must match the cluster's region. The cluster must be in the project's region, or the request answers 400 with code region_change_not_supported. A project with no region yet may take the cluster's region. Rejected for standalone projects, whose placement is resolved during attachment.

  • storage_size_gbnumber

    Managed runtime storage size; rejected for standalone projects.

  • storage_claim_size_gbnumberDeprecated

    Deprecated. Use storage_size_gb instead. Rejected for standalone projects.

Responses

200OKapplication/json

Project updated successfully. When the request sends a spicepod and the project is not connected to a GitHub repository, the response also carries schema_warnings: each place the stored spicepod fails the published schema of the project's runtime version, as a field path and the failed rule. A key the schema does not declare shows as *, and no value is returned. An empty list means the spicepod passes. The field is absent when the check did not finish (no published schema, schema unavailable, a time out, or a schema load deferred because another runtime version's schema compiled within the last minute), or when the project has no pinned runtime version. Warnings never refuse the update. The list holds at most 200 entries, and schema_warnings_truncated is true when the spicepod has more failures.

Headers

  • ETagstring

    The version of the saved Spicepod. Absent when the update did not save the Spicepod.

  • idinteger

    Unique identifier for the project

  • namestring

    Name of the project

  • kindstring

    Resolved project hosting model

    • Allowed values: managed, standalone, byoc
  • descriptionstring | null

    Description of the project

  • visibilitystring

    Visibility setting for the project

    • Allowed values: public, private
  • created_atstring (date-time)

    Timestamp when the project was created

  • cnamestring | null

    Region identifier

  • cluster_namestring | null

    Resolved dedicated cluster name; null for projects not assigned to a dedicated cluster.

  • endpointstring | null

    The data-plane endpoint the project connects to, or null before a standalone instance is attached.

  • production_branchstring | null

    Production branch for the project

  • api_keystringDeprecated

    Deprecated. Use the API Keys endpoints instead.

  • tagsmap of string | null

    Key-value tags for the project

  • forked_fromobject | null

    The project this project was forked from, while that project is live in the same organization. Null for a project that was not created as a fork.

    2 properties
    • idintegerRequired

      ID of the source project

    • namestringRequired

      Name of the source project

  • paused_atstring (date-time) | null

    Timestamp when the project was paused; null while running

  • warningstring | null

    Present when the project was created but initial configuration could not be applied

  • configobject | null

    Runtime configuration; null for an unattached standalone project.

    10 properties
    • spicepodobject | null

      Spicepod configuration

    • registrystring | null

      Container registry for the runtime image

    • image_tagstring | null

      Runtime image tag

    • update_channelstring | null

      Update channel for the runtime

      • Allowed values: stable, preview, nightly
    • replicasinteger

      Number of replicas

    • resourcesobject | null

      Resource requests and limits for the project container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • executorobject | null

      Executor container configuration

      2 properties
      • replicasinteger

        Number of executor replicas

      • resourcesobject

        Resource requests and limits for the executor container

        2 properties
        • limitsobject

          3 properties
          • cpustring

            Whole-number vCPU limit, or '-' for no CPU limit

          • memorystring

            Memory limit in Gi (for example, 16Gi)

          • ephemeral-storagestring

        • requestsobject

          1 property
          • cpustring

            CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • regionstring | null

      Cloud region code (e.g., us-east-1)

    • node_groupstring | null

      Node group for scheduling the project runtime

    • storage_claim_size_gbnumber | null

      Storage claim size in GB

  • schema_warningsarray of object

    2 properties
    • pathstringRequired

      JSON pointer to the failing field.

    • rulestringRequired

      The JSON Schema keyword that failed, for example type or additionalProperties.

  • schema_warnings_truncatedboolean

    Present and true when the spicepod has more failures than schema_warnings lists.

400Bad Request

Invalid request body or project ID, including placement or hosted runtime fields that do not apply to standalone projects. A managed project that names a region other than its own, or a cluster_name in another region, returns code region_change_not_supported. A project stays in the region it was created in; create a project in the new region instead. When image_tag is supplied on stable or preview, a tag that is not a published version for that channel returns { error: 'Invalid image_tag for stable channel', code: 'invalid_stable_image_tag' } (or the preview analog). A spicepod that adds a component on a source the Spice runtime no longer loads returns code retired_component_source; components the project already stores on such a source may be kept, edited and renamed, and a project backed by a GitHub repository is not checked. A spicepod that holds a plain-text secret (a password, token, API key, private key, or URL password in a component param) returns code plaintext_secrets with plaintext_secrets listing each path. Store the value as a project or org secret and use ${secrets:NAME} in its place. A spicepod with a credential outside component params, or in a YAML comment, returns code credentials_detected with locations listing each YAML path or line. Remove the credential. orgId is not a valid org id (invalid_org_id), or X-Org-Name does not name that org (org_path_mismatch).

401Unauthorized

403Forbidden

Insufficient scope, viewer role cannot mutate projects, requested replicas or resources exceed plan limits, dedicated-cluster assignment or special-org private-compute ceilings required, requested resources exceed dedicated-cluster capacity, image_tag was supplied outside the Enterprise plan (code: image_tag_requires_enterprise), or the requested runtime image is not available for the organization plan (code: image_tag_not_allowed_for_plan); omitting image_tag leaves the configured image unchanged. The caller is not a member of the org (org_forbidden). A machine credential named a different org (org_assertion_mismatch). The org is deleted (org_deleted).

404Project not found

409Conflict

The project's lifecycle state changed while the update was in flight (a pause, resume, or restore landed at the same time), so the configuration was not saved (code: project_state_changed). Re-read the project before retrying: a configuration update clears paused_at, so repeating this request against a project that has since been paused also resumes it. Or a spicepod that differs from the stored one was sent for a project connected to a GitHub repository (code: github_connected); change spicepod.yaml in the repository instead, since nothing in that request is applied. Or the project region changed while a cluster_name update was in flight (code: project_region_changed); nothing was saved, so read the project and retry. Or a spicepod was sent for a standalone project that no instance is attached to yet (code: standalone_project_not_attached); attach an instance to the project, then save its Spicepod.

412Precondition Failedapplication/json

The Spicepod changed after the version that If-Match or If-None-Match: * names, other saves kept changing it, or the project takes its Spicepod from a GitHub repository (code: conflict). Nothing is saved when the version check before the update fails. A Spicepod that changes while the update runs can leave the other fields of the request applied. Read the project again, then reapply the change.

  • errorstringRequired

    What failed and what to do next

  • codestringRequired

    • Value: conflict

500Internal server error

502Bad Gateway

The configuration was stored but could not be published to the spicepod registry (code: registry_publish_failed), so the project still deploys its previously published configuration. Retry the request.

503Runtime version catalog is unavailable

curl -X PUT "https://api.spice.ai/v1/orgs/<orgId>/projects/<projectId>" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "string",
    "visibility": "public",
    "production_branch": "string",
    "tags": {},
    "spicepod": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "version": "string",
    "replicas": 0,
    "resources": {},
    "executor": {},
    "region": "string",
    "cluster_name": "string",
    "storage_size_gb": 0,
    "storage_claim_size_gb": 0
  }'
{
  "id": 0,
  "name": "string",
  "kind": "managed",
  "description": "string",
  "visibility": "public",
  "created_at": "2026-01-01T00:00:00Z",
  "cname": "string",
  "cluster_name": "string",
  "endpoint": "string",
  "production_branch": "string",
  "api_key": "string",
  "tags": {},
  "forked_from": {
    "id": 0,
    "name": "string"
  },
  "paused_at": "2026-01-01T00:00:00Z",
  "warning": "string",
  "config": {
    "spicepod": {},
    "registry": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "replicas": 0,
    "resources": {
      "limits": {
        "cpu": "string",
        "memory": "string",
        "ephemeral-storage": "string"
      },
      "requests": {
        "cpu": "string"
      }
    },
    "executor": {
      "replicas": 0,
      "resources": {
        "limits": {
          "cpu": "string",
          "memory": "string",
          "ephemeral-storage": "string"
        },
        "requests": {
          "cpu": "string"
        }
      }
    },
    "region": "string",
    "node_group": "string",
    "storage_claim_size_gb": 0
  },
  "schema_warnings": [
    {
      "path": "string",
      "rule": "string"
    }
  ],
  "schema_warnings_truncated": true
}

application/json

PUThttps://api.spice.ai/v1/apps/{appId}Deprecated

Legacy alias of /v1/projects/{projectId}. Projects were previously called apps. Updates a project's metadata and configuration, including description, visibility, spicepod configuration, replicas, and resource limits.

Authorizations

  • AuthorizationstringRequired

    Bearer <token>. Authentication lists the tokens it accepts.

Path parameters

  • appIdintegerRequired

    The ID of the project

Header parameters

  • If-Matchstring

    The ETag of the Spicepod version the change started from (RFC 9110). The update applies only while that version is the latest. Send If-None-Match: * instead for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. Without either, or with If-Match: *, the update applies to the latest version. A weak tag, a tag list or both headers answer 400.

  • If-None-Matchstring

    Send * for a project that is not connected to a GitHub repository and whose store has no Spicepod yet. The update writes the Spicepod only while the store holds no Spicepod. A project connected to a GitHub repository answers 412. Any other value, or both headers, answers 400.

    • Value: *
  • X-Org-Namestring

    The organization to act on, by handle. Omit it to act on the organization the credential is bound to; sending it blank is a 400, not the same as omitting it. A user credential may name any organization its owner belongs to; a machine credential is pinned to its own. A portal session token is bound to none, so it must send this header on every route but GET /v1/orgs (400 org_assertion_required otherwise).

    • Pattern: ^[A-Za-z0-9._-]{1,255}$

Body

application/jsonRequired

  • descriptionstring

  • visibilitystring

    • Allowed values: public, private
  • production_branchstring

  • tagsmap of string

    Key-value tags for the project. The map replaces the stored tags. System tags the project already has stay on the project when the map omits them.

  • spicepodstring | object

    The project's Spicepod. A project connected to a GitHub repository takes its Spicepod from the repository's spicepod.yaml, so for such a project only the stored Spicepod, sent back unchanged, is accepted.

  • image_tagstring | null

    Runtime image tag for a managed project; rejected for standalone projects. A non-empty value pins the project. On stable, the pin must be a published stable runtime version. On preview, it must be a published preview or stable runtime version. On stable or preview, send null to clear a pin so deploys resolve from the channel catalog (stable - latest GA for the configured version range; preview - latest RC). null is rejected on nightly and internal channels.

  • update_channelstring

    Update channel for a managed runtime; rejected for standalone projects.

    • Allowed values: stable, preview, nightly
  • versionstring

    Semver range for a managed runtime version (e.g. 1.x, 2.x); rejected for standalone projects.

  • replicasinteger

    Managed runtime replica count; rejected for standalone projects.

    • Minimum: 0
  • resourcesobject

    Resource requests and limits for a managed project container; rejected for standalone projects.

    2 properties
    • limitsobject

      3 properties
      • cpustring

        Whole-number vCPU limit, or '-' for no CPU limit

      • memorystring

        Memory limit in Gi (for example, 16Gi)

      • ephemeral-storagestring

        Ephemeral storage limit in Gi (for example, 8Gi)

    • requestsobject

      1 property
      • cpustring

        CPU request. Minimum 100 millicores (for example, 100m or 0.1).

  • executorobject

    Executor container configuration for a managed project; rejected for standalone projects.

    3 properties
    • replicasinteger

      Number of executor replicas

      • Minimum: 0
    • resourcesobject

      Resource requests and limits for the executor container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

          Ephemeral storage limit in Gi (for example, 8Gi)

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • storage_size_gbnumber

  • regionstring

    The project's current region. A project stays in the region it was created in. A managed project answers 400 with code region_change_not_supported when the value differs from its region and cluster_name is not set. Rejected for standalone projects, whose placement is resolved during attachment.

  • cluster_namestring

    Reassign the project to a dedicated cluster, as listed by GET /v1/clusters. Provide at most one of region or cluster_name. When set, region/routing are derived from the cluster; if region is also provided it must match the cluster's region. The cluster must be in the project's region, or the request answers 400 with code region_change_not_supported. A project with no region yet may take the cluster's region. Rejected for standalone projects, whose placement is resolved during attachment.

  • storage_size_gbnumber

    Managed runtime storage size; rejected for standalone projects.

  • storage_claim_size_gbnumberDeprecated

    Deprecated. Use storage_size_gb instead. Rejected for standalone projects.

Responses

200OKapplication/json

Project updated successfully. When the request sends a spicepod and the project is not connected to a GitHub repository, the response also carries schema_warnings: each place the stored spicepod fails the published schema of the project's runtime version, as a field path and the failed rule. A key the schema does not declare shows as *, and no value is returned. An empty list means the spicepod passes. The field is absent when the check did not finish (no published schema, schema unavailable, a time out, or a schema load deferred because another runtime version's schema compiled within the last minute), or when the project has no pinned runtime version. Warnings never refuse the update. The list holds at most 200 entries, and schema_warnings_truncated is true when the spicepod has more failures.

Headers

  • ETagstring

    The version of the saved Spicepod. Absent when the update did not save the Spicepod.

  • idinteger

    Unique identifier for the project

  • namestring

    Name of the project

  • kindstring

    Resolved project hosting model

    • Allowed values: managed, standalone, byoc
  • descriptionstring | null

    Description of the project

  • visibilitystring

    Visibility setting for the project

    • Allowed values: public, private
  • created_atstring (date-time)

    Timestamp when the project was created

  • cnamestring | null

    Region identifier

  • cluster_namestring | null

    Resolved dedicated cluster name; null for projects not assigned to a dedicated cluster.

  • endpointstring | null

    The data-plane endpoint the project connects to, or null before a standalone instance is attached.

  • production_branchstring | null

    Production branch for the project

  • api_keystringDeprecated

    Deprecated. Use the API Keys endpoints instead.

  • tagsmap of string | null

    Key-value tags for the project

  • forked_fromobject | null

    The project this project was forked from, while that project is live in the same organization. Null for a project that was not created as a fork.

    2 properties
    • idintegerRequired

      ID of the source project

    • namestringRequired

      Name of the source project

  • paused_atstring (date-time) | null

    Timestamp when the project was paused; null while running

  • warningstring | null

    Present when the project was created but initial configuration could not be applied

  • configobject | null

    Runtime configuration; null for an unattached standalone project.

    10 properties
    • spicepodobject | null

      Spicepod configuration

    • registrystring | null

      Container registry for the runtime image

    • image_tagstring | null

      Runtime image tag

    • update_channelstring | null

      Update channel for the runtime

      • Allowed values: stable, preview, nightly
    • replicasinteger

      Number of replicas

    • resourcesobject | null

      Resource requests and limits for the project container

      2 properties
      • limitsobject

        3 properties
        • cpustring

          Whole-number vCPU limit, or '-' for no CPU limit

        • memorystring

          Memory limit in Gi (for example, 16Gi)

        • ephemeral-storagestring

      • requestsobject

        1 property
        • cpustring

          CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • executorobject | null

      Executor container configuration

      2 properties
      • replicasinteger

        Number of executor replicas

      • resourcesobject

        Resource requests and limits for the executor container

        2 properties
        • limitsobject

          3 properties
          • cpustring

            Whole-number vCPU limit, or '-' for no CPU limit

          • memorystring

            Memory limit in Gi (for example, 16Gi)

          • ephemeral-storagestring

        • requestsobject

          1 property
          • cpustring

            CPU request. Minimum 100 millicores (for example, 100m or 0.1).

    • regionstring | null

      Cloud region code (e.g., us-east-1)

    • node_groupstring | null

      Node group for scheduling the project runtime

    • storage_claim_size_gbnumber | null

      Storage claim size in GB

  • schema_warningsarray of object

    2 properties
    • pathstringRequired

      JSON pointer to the failing field.

    • rulestringRequired

      The JSON Schema keyword that failed, for example type or additionalProperties.

  • schema_warnings_truncatedboolean

    Present and true when the spicepod has more failures than schema_warnings lists.

400Bad Request

Invalid request body or project ID, including placement or hosted runtime fields that do not apply to standalone projects. A managed project that names a region other than its own, or a cluster_name in another region, returns code region_change_not_supported. A project stays in the region it was created in; create a project in the new region instead. When image_tag is supplied on stable or preview, a tag that is not a published version for that channel returns { error: 'Invalid image_tag for stable channel', code: 'invalid_stable_image_tag' } (or the preview analog). A spicepod that adds a component on a source the Spice runtime no longer loads returns code retired_component_source; components the project already stores on such a source may be kept, edited and renamed, and a project backed by a GitHub repository is not checked. A spicepod that holds a plain-text secret (a password, token, API key, private key, or URL password in a component param) returns code plaintext_secrets with plaintext_secrets listing each path. Store the value as a project or org secret and use ${secrets:NAME} in its place. A spicepod with a credential outside component params, or in a YAML comment, returns code credentials_detected with locations listing each YAML path or line. Remove the credential.

401Unauthorized

403Forbidden

Insufficient scope, viewer role cannot mutate projects, requested replicas or resources exceed plan limits, dedicated-cluster assignment or special-org private-compute ceilings required, requested resources exceed dedicated-cluster capacity, image_tag was supplied outside the Enterprise plan (code: image_tag_requires_enterprise), or the requested runtime image is not available for the organization plan (code: image_tag_not_allowed_for_plan); omitting image_tag leaves the configured image unchanged

404Project not found

409Conflict

The project's lifecycle state changed while the update was in flight (a pause, resume, or restore landed at the same time), so the configuration was not saved (code: project_state_changed). Re-read the project before retrying: a configuration update clears paused_at, so repeating this request against a project that has since been paused also resumes it. Or a spicepod that differs from the stored one was sent for a project connected to a GitHub repository (code: github_connected); change spicepod.yaml in the repository instead, since nothing in that request is applied. Or the project region changed while a cluster_name update was in flight (code: project_region_changed); nothing was saved, so read the project and retry. Or a spicepod was sent for a standalone project that no instance is attached to yet (code: standalone_project_not_attached); attach an instance to the project, then save its Spicepod.

412Precondition Failedapplication/json

The Spicepod changed after the version that If-Match or If-None-Match: * names, other saves kept changing it, or the project takes its Spicepod from a GitHub repository (code: conflict). Nothing is saved when the version check before the update fails. A Spicepod that changes while the update runs can leave the other fields of the request applied. Read the project again, then reapply the change.

  • errorstringRequired

    What failed and what to do next

  • codestringRequired

    • Value: conflict

500Internal server error

502Bad Gateway

The configuration was stored but could not be published to the spicepod registry (code: registry_publish_failed), so the project still deploys its previously published configuration. Retry the request.

503Runtime version catalog is unavailable

OpenAPIapi.spice.ai/openapi.json

curl -X PUT "https://api.spice.ai/v1/apps/<appId>" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "string",
    "visibility": "public",
    "production_branch": "string",
    "tags": {},
    "spicepod": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "version": "string",
    "replicas": 0,
    "resources": {},
    "executor": {},
    "region": "string",
    "cluster_name": "string",
    "storage_size_gb": 0,
    "storage_claim_size_gb": 0
  }'
{
  "id": 0,
  "name": "string",
  "kind": "managed",
  "description": "string",
  "visibility": "public",
  "created_at": "2026-01-01T00:00:00Z",
  "cname": "string",
  "cluster_name": "string",
  "endpoint": "string",
  "production_branch": "string",
  "api_key": "string",
  "tags": {},
  "forked_from": {
    "id": 0,
    "name": "string"
  },
  "paused_at": "2026-01-01T00:00:00Z",
  "warning": "string",
  "config": {
    "spicepod": {},
    "registry": "string",
    "image_tag": "string",
    "update_channel": "stable",
    "replicas": 0,
    "resources": {
      "limits": {
        "cpu": "string",
        "memory": "string",
        "ephemeral-storage": "string"
      },
      "requests": {
        "cpu": "string"
      }
    },
    "executor": {
      "replicas": 0,
      "resources": {
        "limits": {
          "cpu": "string",
          "memory": "string",
          "ephemeral-storage": "string"
        },
        "requests": {
          "cpu": "string"
        }
      }
    },
    "region": "string",
    "node_group": "string",
    "storage_claim_size_gb": 0
  },
  "schema_warnings": [
    {
      "path": "string",
      "rule": "string"
    }
  ],
  "schema_warnings_truncated": true
}

application/json