POST
/
users
/
{userId}
/
spaces
curl --request POST \
  --url https://forgegames.org/api/users/{userId}/spaces \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "<string>",
  "spaceId": "<string>"
}'
{
  "id": "<string>",
  "teamId": "<string>",
  "userId": "<string>",
  "externalId": "<string>",
  "spaceId": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<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

userId
string
required
Maximum length: 191

Body

application/json

Response

200
application/json
Successful response

The response is of type object.