Skip to main content

Users

If you're accessing the API authenticated with a HR API key, you can create, update and delete User objects - e.g. to create a user which will own a response to a survey.

Users are created with the sluserCreate mutation. When creating a user, meta-data can be passed as a JSON string. In the meta-data you can store whatever you like, e.g. the ID of the corresponding user in your system.

If you know the ID of a user in the Pera system and the user was created by your API key, you can retrieve the user with the sluser query.

You can get a list of users created with your API keys with the sluserList query.

Once you have a User object, you can get a list of head responses for the user via the responses attribute.