PUT
/
spaces
/
{id}
Update Space
curl --request PUT \
  --url https://forgegames.org/api/spaces/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "cols": 123,
  "rows": 123
}'
{
  "id": "<string>",
  "name": "<string>",
  "cols": 123,
  "rows": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "teamId": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Body

application/json
name
string
required
Minimum length: 1
cols
number
required
rows
number
required

Response

Successful response

id
string
required
Maximum length: 191
name
string
required
Maximum length: 191
cols
number
required
rows
number
required
createdAt
string
required
updatedAt
string | null
required
teamId
string
required
Maximum length: 191