Work On Progress...
Endpoint
SaveData endpoint is used to create/update subtypes records end point allows you to create, update or save a single record in Aptify .The POST action is used for the data modification operations.
...
Header Name | Header Value |
---|---|
AptifyAuthorization | <Authentication Provider> <TokenId> |
...
SaveData EndPoint For Non-Subtype Record
Code Block |
---|
https://<base address>/services/BasicGenericEntity/SaveData/{id} |
Request Body (POST, as Form Data)
Code Block |
---|
{
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.
Sample Response Body
Code Block |
---|
{
"ID": 1038,
"EntityName": "Groups",
"Name": "Data Savers",
"Description": "",
"Subtypes": [ ]
} |
Save Data Endpoint For Single Subtype Record
Code Block |
---|
https://<base address>/services/BasicGenericEntity/SaveData/{id} |
Request Body (POST, as Form Data)
Code Block |
---|
{ ID: <Group ID>, EntityName: "Groups", SubTypes: [ { ID: -1, EntityName: "GroupMembers", UserID: 11<User ID> } ] } |
Sample Response
BodyBody
Code Block |
---|
{
"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[]"
]}
}
|
Request Body For Multiple Records
Code Block |
---|
{ ID: <Group ID>, EntityName: "Groups", SubTypes: [ { ID: -1, EntityName: "GroupMembers", UserID: <User ID 1> }, { ID: -1, EntityName: "GroupMembers", UserID: <User ID 2> } ] } |
Sample Response Body Multiple Records
Code Block |
---|
{
"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[]"
}]
}
|