Skip to main content
PATCH
/
api
/
v1
/
hubs
/
{hub_id}
/
spaces
/
{space_id}
/
mute
Member Mute Space
curl --request PATCH \
  --url https://api.member.dev/api/v1/hubs/{hub_id}/spaces/{space_id}/mute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "is_muted": true
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "contact_id": "<string>",
      "space_id": "<string>",
      "is_muted": true,
      "joined_at": "<string>",
      "last_read_at": "<string>"
    },
    "id": "<string>",
    "type": "<string>",
    "links": {
      "self": "<string>"
    },
    "meta": {},
    "relationships": {}
  },
  "included": [
    "<unknown>"
  ],
  "links": {
    "self": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

hub_id
string
required
space_id
string
required

Body

application/vnd.api+json

JSON:API PATCH body: {data: {type: 'space_member_states', attributes: {is_muted}}}.

data
MuteResourceData · object
required

Response

Successful Response

data
JsonApiResource[SpaceMemberStateAttributes] · object
required
included
any[] | null
meta
Meta · object