namespaces

Creates a namespace. Requires the admin token.

Changed on
post/namespaces

Request

  • Base URL
    https://api.rivet.dev
  • URL
    https://api.rivet.dev/namespaces
  • Auth
    • HTTP bearer
    • or API key in header x-rivet-token

Request body

namestring required

Immutable namespace name. A DNS label of 1 to 63 lowercase letters, digits and hyphens.

Response

The created namespace.

Example response

{
  "namespace": {
    "name": "my-namespace"
  }
}

Changes

    • breaking

      added the pattern ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$ to the request property

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      the request property's maxLength was set to 63

    • warning

      removed the request property

    • info

      the endpoint scheme security rivet_token_header was added to the API

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status