G'day all,
Has anyone successfully added or modified a a program file to a VC4?
I've tried but have been unable to make it work.
I can query the existing programs using the following;
curl -k -X GET "http://10.0.0.222/VirtualControl/config/api/ProgramLibrary" -H "accept: application/json" -H "Authorization: [#####]"
I can't work out how to send the program file. When I try to send the following;
curl -k -X PUT "http://10.0.0.222/VirtualControl/config/api/ProgramLibrary" -d {"ProgramId":23,"AppFile":"D:\CrestronCode\Code\bin\Debug\test.cpz"} -H "accept: application/json" -H "Authorization: [#####]"
I receive the following message.
{
"Actions": [
{
"Operation": "set partial",
"Results": [
{
"path": "Device.Programs.ProgramLibrary",
"object": "NULL",
"StatusInfo": "ProgramId: Missing required parameter in the JSON body or the post body or the query string",
"StatusId": 6
}
],
"TargetObject": "ProgramLibrary",
"Version": "2.0.1"
}
]
}
?
Thanks in advance.