...
In order to save and receive entity record, the AptifyAuthorization header is required along with <TokenId> genrated after Authentication Process.
Header Name | Header Value |
---|
AptifyAuthorization | <Authentication Provider> <TokenId> |
...
Non-SubType Record
Code Block |
---|
title | Sample Request Body for Non-SubType Record |
---|
|
{
ID: -1,
EntityName: "Groups",
Name: "Data Savers"
} |
Data returned has a valid ID value, indicating that you successfully saved a new group.Note the ID of the group you created.In this case ID is 1038.
Code Block |
---|
title | Sample Response Body for Non-SubType Record |
---|
|
{
"ID": 1038,
"EntityName": "Groups",
"Name": "Data Savers",
"Description": "",
"Subtypes": [ ]
} |
Single SubType Record
Code Block |
---|
title | Sample Request Body for Single SubType Record |
---|
|
{
ID: <Group ID>,
EntityName: "Groups",
SubTypes:
[ {
ID: -1,
EntityName: "GroupMembers",
UserID: <User ID>
} ]
} |
Code Block |
---|
title | Sample Response Body for Single SubType Record |
---|
|
{
"id": <Group ID>,
"entityname": "Groups",
"name": "Data Savers",
"description": "",
"subtypes": [{
"id": <ID>,
"entityname": "GroupMembers",
"groupid": <Group ID>,
"sequence": 1,
"userid": <User ID>,
"userid_name": <User ID Name>,
"aptify_record_version": "system.byte[]"
]}
}
|
Multiple SubType Records
Code Block |
---|
title | Sample Request Body for Multiple SubType Records |
---|
|
{
ID: <Group ID>,
EntityName: "Groups",
SubTypes: [
{
ID: -1,
EntityName: "GroupMembers",
UserID: <User ID 1>
},
{
ID: -1,
EntityName: "GroupMembers",
UserID: <User ID 2>
}
] } |
Code Block |
---|
title | Sample Response Body for Multiple SubType Records |
---|
|
{
"id": <Group ID>,
"entityname": "Groups",
"name": "Data Savers",
"description": "",
"subtypes": [{
"id": <ID>,
"entityname": "GroupMembers",
"groupid": <Group ID>,
"sequence": 1,
"userid": <User ID 1>,
"userid_name": <User ID1 Name>,
"aptify_record_version": "system.byte[]"
},
{
"id": <ID>,
"entityname": "GroupMembers",
"groupid": <Group ID>,
"sequence": 2,
"userid": <User ID 2>,
"userid_name": <User ID2 Name>,
"aptify_record_version": "system.byte[]"
}]
}
|
...