namespaces

Create a new namespace

Create a new namespace owned by the authenticated user or an organization. This endpoint is idempotent - if the namespace already exists and is owned by the user/org, returns success. Pass organizationId in the request body to create an org-owned namespace.

put/namespaces/{name}

Path parameters

namestring required

Response

Namespace created successfully

namestring required
createdAtstring required

Example response

{
  "name": "myorg",
  "createdAt": "2024-01-01T00:00:00.000Z"
}

Changes

Changed in 1 of the 47 revisions of this API.21

  • ea538dc2369a21See the full diff
    • for the path request parameter name, the maxLength was decreased from 64 to 39

      request-parameter-max-length-decreased

    • for the path request parameter name, the minLength was increased from 2 to 3

      request-parameter-min-length-increased

    • removed the pattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$ from the path request parameter name

      request-parameter-pattern-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog