Implementing write to the API from Primary app