Hi OpenMRS, I know this could be way easy, but I need help creating a patient via post. I am using Postman and sending the request via (http://localhost:8080/openmrs/ws/rest/v1/patient)
The body of the request is:
The error message you have is, I hope, pretty clear about this: “Privileges required: Get Identifier Types”. So the user you authenticated as does not have the privilege called “Get Identifier Types” and so is unable to create an identifier for the patient.
Could you tell us what you actually did? I don’t quite know what this means.
The role assigned to the user needs to have this privilege:
Or be the system developer role (which has all privileges)
Alternatively, if you’re getting a different error message (because, e.g., you gave the user system developer permissions and the request still fails), that would be helpful to see.
Many identifiers (depending on how they are configured) do not support supplying an arbitrary identifier in the POST request, i.e., you need to tell the system to generate an identifier for you and then use that allocated identifier for the patient you are creating.
hello @seremba could you navigate to the “authorization” section and and select “basic auth” and then fill in user as Admin and password as Admin123
see if you get the same error coz @ibacher is right