[Bug 23588] New: Cant Create a Patron
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23588 Bug ID: 23588 Summary: Cant Create a Patron Change sponsored?: --- Product: Koha Version: 18.05 Hardware: PC OS: Windows Status: NEW Severity: major Priority: P5 - low Component: Web services Assignee: koha-bugs@lists.koha-community.org Reporter: danish.qayyam@viftech.com.pk QA Contact: testopia@bugs.koha-community.org Hi! I am trying to create a new Patron but everytime getting Bad Request. What I am missing. Here is my C# code: HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri); request.CookieContainer = cookieJar; request.Method = "POST"; request.ContentType = "application/json"; System.IO.StreamWriter writer = new System.IO.StreamWriter(request.GetRequestStream()); string postData = "{'surname': 'D2','cardnumber':'12345678912345678912345678912349','library_id':'GBA','category_id':'HB','date_enrolled':'11/09/2019'}"; writer.Write(json); writer.Flush(); writer.Close(); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23588 --- Comment #1 from Muhammad Danish <danish.qayyam@viftech.com.pk> --- I am using API: api/v1/patrons -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23588 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Cant Create a Patron |REST API: Can't create a | |patron Component|Web services |REST api QA Contact|testopia@bugs.koha-communit | |y.org | CC| |katrin.fischer@bsz-bw.de, | |tomascohen@gmail.com --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I have changed the bug for better visibility, but this question would be better asked on the mailing list! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23588 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Muhammed, checking this again, this sounds like a support request rather than a bug. Questions about Koha configuration are best asked on the Koha mailing list (http://koha-community.org/support/koha-mailing-lists/) or in the #koha IRC channel (http://koha-community.org/get-involved/irc/). Hopefully you've already seen the Koha documentation: http://koha-community.org/documentation/ You can also find options for paid support here: https://koha-community.org/support/ -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org