v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Function as a Service

Update namespace

Update the configuration of an existing namespace. Only specified fields will be modified.

patch/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

namespace_namestring required

Namespace name

Example:namespace-name

Namespace name

Request body

descriptionstring nullable

Namespace description.

envsobject nullable

Namespace environment variables. Keys must match a specific regex pattern and be 1-255 characters long, and values must be 0-255 characters long.

Example request

{
  "description": "This is a sample namespace.",
  "envs": {
    "ENV_VAR": "value"
  }
}

Response

OK

tasksstring[] required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
idstring required

Example response

{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}