Update chat properties
curl --request PATCH \
--url https://api.fanvue.com/v1/chats/{userUuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"isRead": true,
"isMuted": true,
"nickname": "<string>"
}
'import requests
url = "https://api.fanvue.com/v1/chats/{userUuid}"
payload = {
"isRead": True,
"isMuted": True,
"nickname": "<string>"
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({isRead: true, isMuted: true, nickname: '<string>'})
};
fetch('https://api.fanvue.com/v1/chats/{userUuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Chats
Update chat properties
Update properties of a chat conversation with a user, such as read status, mute status, or nickname.
PATCH
/
v1
/
chats
/
{userUuid}
Update chat properties
curl --request PATCH \
--url https://api.fanvue.com/v1/chats/{userUuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"isRead": true,
"isMuted": true,
"nickname": "<string>"
}
'import requests
url = "https://api.fanvue.com/v1/chats/{userUuid}"
payload = {
"isRead": True,
"isMuted": True,
"nickname": "<string>"
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({isRead: true, isMuted: true, nickname: '<string>'})
};
fetch('https://api.fanvue.com/v1/chats/{userUuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Required scope
write:chat— Create new chats and send messages. This scope is required for any chat-related actions that modify data.
Authorizations
Scopes
Headers
Body
application/json
Response
Chat updated successfully
Was this page helpful?