games.namespaces.validateGameNamespaceTokenDevelopment


Description

Validates information used to create a new game namespace development token.


Code Examples

# Write the request body to body.json before running
curl -X POST -d '@body.json' 'https://api.rivet.gg/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate'

Request Parameters

game_id

required path parameter

namespace_id

required path parameter

Request Body

  • hostname
    string
  • lobby_ports
    array of any values

    A list of docker ports.


Response Body

  • errors
    array of objects

    A list of validation errors.

    • errors.path
      array of strings

      A list of strings denoting the origin of a validation error.