pydo.functions.create_namespace()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.functions.create_namespace(
body={
"region": "nyc1",
"label": "my namespace",
},
)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.
Parameters
regionstring requiredExample:
nyc1The datacenter region in which to create the namespace.
labelstring requiredExample:
my namespaceThe namespace's unique name.
Request Sample
Response Example
More Information
See /v2/functions/namespaces in the API reference for additional detail on responses, headers, parameters, and more.