PATCH
/
spaces
/
{owner}
/
{space}
curl --request PATCH \
  --url https://api.loccus.ai/v1/spaces/{owner}/{space} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "handle": "space-a",
  "alias": "Space A"
}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "handle": "space-a",
  "alias": "Space A",
  "owner": {
    "type": "user",
    "handle": "user-a",
    "alias": "User A"
  },
  "audios": 10,
  "voiceprints": 10,
  "verifications": 10,
  "identities": 10,
  "createdAt": "2023-01-01T00:00:00.000000Z"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

owner
string
required

The handle of the owner.

space
string
required

The handle of the space.

Body

application/json
handle
string

The new handle of the space. Must be unique.

alias
string | null

The new alias of the space.

Response

200 - application/json
id
string
required

The UUID of the space. Is unique.

handle
string
required

The handle of the space. Is unique.

alias
string | null
required

The alias of the space.

owner
object
required

The owner of the space.

audios
integer
required

The number of audios of the space.

voiceprints
integer
required

The number of voiceprints of the space.

verifications
integer
required

The number of verifications of the space.

identities
integer
required

The number of identities of the space.

createdAt
string
required

The date and time when the space was created.