Setting device parameters with API call?