pydo.functions.create_namespace()
Generated on 21 Jan 2026
from pydo version
v0.24.0
Description
Creates a new serverless functions namespace in the desired region and associates it with the provided label. A namespace is a collection of functions and their associated packages, triggers, and project specifications. To create a namespace, send a POST request to /v2/functions/namespaces with the region and label properties.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"region": "nyc1",
"label": "my namespace"
}
resp = client.functions.create_namespace(body=req)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.