TransactionAttributes 업데이트
저장된 TransactionAttributes
를 수정하려면 JSON 객체의 콘텐츠를 새 값으로 업데이트합니다. 다음 예제에서는 키 NewKey1
및 NewKey2
를 TransactionAttributes
에 추가합니다. 이러한 키는 각각 값 NewValue1
및 NewValue2
와 쌍을 이룹니다.
{ "SchemaVersion": "1.0", "Actions": [ { "Type": "PlayAudio", "Parameters": { "ParticipantTag": "
LEG-A
", "AudioSource": { "Type": "S3", "BucketName": "mtg1-sipmedia-app-iad
", "Key": "Welcome3.wav
" } } } ], "TransactionAttributes": { "NewKey1
": "NewValue1
", "NewKey2
": "NewValue2
" } }
이전 예제에서 NewValue1
을 key1
로 전달했다면 key1
의 기존 값이 NewValue1
로 대체됩니다. 하지만 NewKey1
에 값을 전달하면 새 키/값 쌍을 생성합니다.