PATCH | /sessions/{sessionId}/conference/members/{callSid} |
---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
# @Api(Description="Sets the conference member's hold and or mute status.")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UpdateConferenceMemberStatus:
"""
Sets the conference member's hold and or mute status.
"""
# @ApiMember(Description="The ID of the active session")
session_id: Optional[str] = None
"""
The ID of the active session
"""
# @ApiMember(Description="The sid of the active call that is on the voice device")
call_sid: Optional[str] = None
"""
The sid of the active call that is on the voice device
"""
# @ApiMember(Description="Hold?")
hold: Optional[bool] = None
"""
Hold?
"""
# @ApiMember(Description="Mute?")
mute: Optional[bool] = None
"""
Mute?
"""
Python UpdateConferenceMemberStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /sessions/{sessionId}/conference/members/{callSid} HTTP/1.1
Host: team.evovoice.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
sessionId: String,
callSid: String,
hold: False,
mute: False
}