LabKey V2
Complete documentation of examples for LabKey api
Once the Authorize call has been made and the authentication Token has been received, it is necessary to insert it in the header of subsequent calls.
- id_panel: Postman variable useful to form the URL for all calls.
- secret_key: Postman variable, code referred to your IP address, can be found in the API / Settings section of your LabKey panel
- Bearer: Postman variable, the result is saved once the Authorize call is made.
- unique_name: Postman variable, unique name of the LabKey.
USERS
APIS RELATED TO USERS
PUTAddUser
Create new users (example with all possible accepted parameters)
Mandatory parameters:
Name (user name)
Surname (user surname)
Optional parameters:
Email
Phone
Prefix (N.B. the encoded national prefix must be entered, e.g. +39 +39 )
Tags (N.B. each comma will be replaced with an undersocre, can be an array)
status: the user is enable, 0 the user is disable
fields: is an array of additionals fields, each cell has an array [id:value] where id is the id of the additional field and the value is the value.
Response
200 OK
user_id
pinpad_key_code
pinpad_key_id
400 Bad Request
email already exists
invalid email format, retry
phone number must be long from 6 to 30 digits
prefix must contain +
prefix not valid
phone number already exist
name can't be empty
surname can't be empty
PUTUpdateUser
Update a user's data.
Mandatory parameters:
User Id (N.B.: user_id to update)
Name
Surname
Optional parameters:
Email
Phone
Prefix (N.B. for the phone the same rule applies to the adduser national prefix, for more info see AddUser)
tags
status: the user is enable, 0 the user is disable
fields: is an array of additionals fields, each cell has an array [id:value] where id is the id of the additional field and the value is the value
Response
200 OK
- user updated successfully
400 Bad Request
user_id does not exists
invalid email format
prefix must contain +
prefix not valid
phone number must be numeric, retry
phone number must be long from 6 to 30 digits
Name is mandatory
Surname is mandatory