Table

Last updated 4 months ago

get
Table List

{{ base_url }}
/tables/table/list/{level}/{sid}/{serializer}/
Request
Response
Path Parameters
level
required
string
sid
required
string
serializer
required
string
Headers
token
required
string
200: OK
{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 9,
"next": null,
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"icon": "xxx",
"name_singular": "experiment",
"name_plural": "experiments",
"unique_code": "EP",
"table_type": "Document",
"order": 1,
"is_archived": false,
"change_permission": true
},
...
]
}
401: Unauthorized
Authentication credentials were not provided.
403: Forbidden
You do not have permission to perform this action.
406: Not Acceptable
Wrong id - the provided sid is not correct
Wrong level - the provided level is not acceptable

post
Table List

{{ base_url }}
/tables/table/list/{level}/{sid}/{serializer}/
Request
Response
Path Parameters
level
required
string
sid
required
string
serializer
required
string
Headers
token
required
string
Form Data Parameters
name_singular
optional
string
name_plural
optional
string
description
optional
string
unique_code
optional
string
icon
optional
string
table_type
optional
string
is_archived
optional
boolean
201: Created
{
"sid": "ilor0a40x5kpuzEJOT",
"organization": 1,
"icon": "assignment",
"name_singular": "experiment",
"name_plural": "experiments",
"name_system": null,
"description": "An experiment is the lab note to document procedures carried out to support, refute, or validate a hypothesis.",
"unique_code": "EP",
"table_type": "Document",
"order": 1,
"is_archived": false,
"updated_by": 1,
"date_updated": "2018-02-06T03:22:28.120102Z",
"date_created": "2017-09-24T00:04:56.455176Z",
"change_permission": true
}
401: Unauthorized
Authentication credentials were not provided.
403: Forbidden
You do not have permission to perform this action.
406: Not Acceptable
Wrong id - the provided sid is not correct
Wrong level - the provided level is not acceptable

get
Table Detail

{{ base_url }}
/tables/table/detail/{sid}/
Request
Response
Path Parameters
sid
required
string
Headers
token
required
string
200: OK
{
"sid": "ilor0a40x5kpuzEJOT",
"organization": 1,
"icon": "assignment",
"name_singular": "experiment",
"name_plural": "experiments",
"name_system": null,
"description": "An experiment is the lab note to document procedures carried out to support, refute, or validate a hypothesis.",
"unique_code": "EP",
"table_type": "Document",
"order": 1,
"is_archived": false,
"updated_by": 1,
"date_updated": "2018-02-06T03:22:28.120102Z",
"date_created": "2017-09-24T00:04:56.455176Z",
"change_permission": true
}
401: Unauthorized
Authentication credentials were not provided.
403: Forbidden
You do not have permission to perform this action.
406: Not Acceptable
Wrong id - the provided sid is not correct

patch
Table Detail

{{ base_url }}
/tables/table/detail/{sid}/
Request
Response
Path Parameters
sid
required
string
Headers
token
required
string
Form Data Parameters
name_singular
optional
string
name_plural
optional
string
description
optional
string
unique_code
optional
string
icon
optional
string
order
optional
number
table_type
optional
string
is_archived
optional
boolean
200: OK
{
"sid": "ilor0a40x5kpuzEJOT",
"organization": 1,
"icon": "assignment",
"name_singular": "experiment",
"name_plural": "experiments",
"name_system": null,
"description": "An experiment is the lab note to document procedures carried out to support, refute, or validate a hypothesis.",
"unique_code": "EP",
"table_type": "Document",
"order": 1,
"is_archived": false,
"updated_by": 1,
"date_updated": "2018-02-06T03:22:28.120102Z",
"date_created": "2017-09-24T00:04:56.455176Z",
"change_permission": true
}
401: Unauthorized
Authentication credentials were not provided.
403: Forbidden
You do not have permission to perform this action.
406: Not Acceptable
Wrong id - the provided sid is not correct