Personnel

API for Organization Member object

get
Organization Personnel List

/organizations/personnel/list/{level}/{sid}/{serializer}/
Return the members of the organization.
Request
Response
Path Parameters
level
required
string
sid
required
string
serializer
required
string
200: OK
{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 1,
"next": null,
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "xxx",
"email": "xxx@labii.com",
"title": "xxx",
"is_administrator": true,
"is_archived": false,
"date_start": "2018-01-01",
"date_end": null,
"change_permission": true
},
...
]
}
406: Not Acceptable
Wrong id - The provided sid is not correct
Wrong level: xxx. Acceptable levels is organization. - Wrong level provided

post
Organization Personnel List

/organizations/personnel/list/{level}/{sid}/{serializer}/
Create one or more members to the organization
Request
Response
Path Parameters
level
required
string
sid
required
string
serializer
required
string
Form Data Parameters
email
required
string
first_name
required
string
last_name
required
string
title
required
string
date_start
optional
string
date_end
optional
string
is_administrator
optional
string
is_archived
optional
string
201: Created
{
"sid": "xxx",
"name": "xxx",
"email": "xxx@labii.com",
"title": "xxx",
"is_administrator": true,
"is_archived": false,
"date_start": "2018-01-01",
"date_end": null,
"change_permission": true
}
406: Not Acceptable
Wrong id - The provided sid is not correct
Wrong level: xxx. Acceptable levels is organization. - Wrong level provided
The fields organization, user must make a unique set. - Duplicated email
Your organization do not have enough seats to add new members. Contact sales@labii.com to increase seats.
Wrong email: xxx. Emails from academic or non-profile companies only. - For academic organization only
Error: The user (xxx) already exists! - Duplicated user

get
Organization Personnel Detail

/organizations/personnel/detail/{sid}/
Get the detail of a member.
Request
Response
Path Parameters
sid
required
string
200: OK
{
"sid": "xxx",
"name": "xxx",
"email": "xxx@labii.com",
"first_name": "xxx",
"last_name": "xxx",
"title": "xxx",
"date_start": "2018-01-01",
"date_end": null,
"is_administrator": true,
"is_archived": false,
"change_permission": true
}
406: Not Acceptable
Wrong id - The provided sid is not correct

patch
Organization Personnel Detail

/organizations/personnel/detail/{sid}/
Update the data for a member
Request
Response
Path Parameters
sid
required
string
Form Data Parameters
title
optional
string
date_start
optional
string
date_end
optional
string
is_administrator
optional
string
is_archived
optional
string
200: OK
{
"sid": "xxx",
"name": "xxx",
"email": "xxx@labii.com",
"first_name": "xxx",
"last_name": "xxx",
"title": "xxx",
"date_start": "2018-01-01",
"date_end": null,
"is_administrator": true,
"is_archived": false,
"change_permission": true
}
406: Not Acceptable
Wrong id - The provided sid is not correct