All methods requre ProgramParams parameter. This object has many properties. Not all of them are needed for each method, but there are two mandatory properties:
Parameter user used only for authorized user. Next, we consider that these parameters are already contained.
// creating Program object which contain difference
var diff = new AvayaRecordingClient.Services.ProgramService.Program();
//properties which can be edited
diff.categoryId = 'someId';
diff.accessMode = 'newAccessMode';
diff.public = true;
diff.allowMediaDownload = true;
diff.name = 'newName';
diff.description = 'newdescription';
diff.password = 'password';
diff.participantUsers = [];
diff.thumbnailMimeType = 'thumbnailMimeType';
diff.thumbnailData = '';
diff.accessUsers = [];
client.programService.updateProgram(programId, diff, programParameters)
.done(function(response) {
// the response is updated program
});
programParameters object can comprise:
Property |
---|
deleteResources |
permanent |
client.programService.deleteProgram(programId, programParameters);
Programs can be recoverd only if system settings recordingRetentionPolicy flag is set to 'N_DAYS' or 'FOREVER';
var diff = new AvayaRecordingClient.Services.ProgramService.Program();
diff.deleted = false;
client.programService.updateProgram(programId, diff, programParameters);