games.namespaces.validateGameNamespace


Description

Validates information used to create a new game namespace.


Code Examples

Request

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

Request Parameters

game_id

Path parameter, required


Request Body

display_name

string (required)

Represent a resource's readable display name.

name_id

string (required)

A human readable short identifier used to references resources. Different than a rivet.common#Uuid because this is intended to be human readable. Different than rivet.common#DisplayName because this should not include special characters and be short.


Response Body

errors

array<object> (required)

A list of validation errors.

errors[*].path

array<string> (required)

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