

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 清除 TransactionAttributes
<a name="clear-trans-attributes"></a>

若要清除`TransactionAttributes`物件的內容，請使用空的 JSON 物件傳遞 `TransactionAttributes` 欄位：

```
{
    "SchemaVersion": "1.0",
    "Actions": [
        {
            "Type": "PlayAudio",
            "Parameters": {
                "ParticipantTag": "{{LEG-A}}",
                "AudioSource": {
                    "Type": "S3",
                    "BucketName": "{{mtg1-sipmedia-app-iad}}",
                    "Key": "{{Welcome3.wav}}"
                }
            }
        }
    ],
    "TransactionAttributes": {
    }
}
```

**注意**  
您無法將結構的值設定為 來清除`TransactionAttributes`結構中的資料`null`。此外，省略`TransactionAttribute`結構並不會清除其資料。一律使用 傳遞空的 JSON 物件`TransactionAttributes`，以從物件清除資料。