v1
Namespace

Create Namespace

Changed on

Create a new namespace within the developer's organization.

post/v1/namespace

Request

  • Base URL
    https://memory.papr.ai
  • URL
    https://memory.papr.ai/v1/namespace
  • Auth
    none declared. Required headers: X-API-Key

Headers

X-API-Keystring required

Request body

namestring required

Namespace name (e.g., 'acme-production')

environment_type'development' | 'staging' | 'production'

Environment types for namespaces

is_activeboolean

Whether this namespace is active

rate_limitsobject nullable

Rate limits for this namespace (None values inherit from organization)

default_policyobject nullable

Default memory policy for add/search when request omits policy.

Example request

{
  "environment_type": "production",
  "is_active": true,
  "name": "acme-production"
}

Response

Namespace created

codeinteger

HTTP status code

statusstring

'success' or 'error'

errorstring nullable

Error message if failed

detailsunknown

Changes

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was widened by adding types null to media type application/json of response 400

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was widened by adding types null to media type application/json of response 401

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was widened by adding types null to media type application/json of response 500

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was widened by adding types null to media type application/json of response 400

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was widened by adding types null to media type application/json of response 401

    • breaking

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was widened by adding types null to media type application/json of response 500

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was narrowed by removing types null from media type application/json of response 400

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was narrowed by removing types null from media type application/json of response 401

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/createdAt list-of-types was narrowed by removing types null from media type application/json of response 500

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 400

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 401

    • info

      response property data/anyOf[subschema #1: NamespaceItem]/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 500