Menu
Create a namespace
Create a namespace
POST
/namespacesUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Create a namespace action (under Data).
- Fill in the fields below, then reference the result from later steps as
{{createANamespace.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"name": "example-namespace",
"schema": {
"fields": {
"description": {
"filterable": true
},
"genre": {
"filterable": true
},
"year": {
"filterable": true
}
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{createANamespace.response.data.<field>}}.
{
"name": "example-namespace",
"record_count": "20000",
"schema": {
"fields": {
"description": {
"filterable": true
},
"genre": {
"filterable": true
},
"year": {
"filterable": true
}
}
},
"indexed_fields": {
"fields": [
"genre",
"year",
"author"
]
},
"size_bytes": "1048576"
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?