POST
/
api
/
v1
/
updateSpace
/
{spaceId}
curl --request POST \
  --url https://hero.page/api/v1/updateSpace/{spaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Updated Space Name",
  "isPublic": true,
  "img": "https://firebasestorage.googleapis.com/v0/b/focushero-1650416072840.appspot.com/o/FCMImages%2Fdefault_spacey.webp?alt=media&token=e37eecbd-6b99-430c-b073-b57622ef8440"
}'
"OK"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

spaceId
string
required

The ID of the space

Body

application/json
name
string

The name of the space

Example:

"Updated Space Name"

isPublic
boolean

Whether the space is public

Example:

true

img
string

Image URL for the space

Example:

"https://firebasestorage.googleapis.com/v0/b/focushero-1650416072840.appspot.com/o/FCMImages%2Fdefault_spacey.webp?alt=media&token=e37eecbd-6b99-430c-b073-b57622ef8440"

Response

200
text/plain
Space updated successfully

The response is of type string.

Example:

"OK"