Control soundbar volume with cli

Hi.

Found smartthings cli for windows.
I have obtained token and created config file.
I can see my soundbar.
I can see capatibilities status main audiovolume.
I can not send command volume up or down.
Stuck.
Please help.

edit

tutorial on postman


use postman generate code snippets…

code for python…works…

import requests

url = “https://api.smartthings.com/v1/devices/{PASTE THE DEVICEID HERE AND REMOVE BRACES}/commands”

payload = “{\r\n"commands”: [\r\n {\r\n “component”: “main”,\r\n “capability”: “audioVolume”,\r\n “command”: “volumeUp”\r\n }\r\n]\r\n}"
headers = {
‘Authorization’: ‘Bearer {PASTE THE Bearer HERE AND REMOVE BRACES}’,
‘Content-Type’: ‘application/json’
}

response = requests.request(“POST”, url, headers=headers, data = payload)

print(response.text.encode(‘utf8’))