Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request Body (POST, as Form Data)

Code Block
titleSample 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.

Sample Response Body

Code Block
titleSample Response Body For Non-SubType Records
{  
	 "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
titleSample Request Body For Single SubType Record
  {
  	ID: <Group ID>,
	EntityName: "Groups",
	SubTypes: 
	[ {
		ID: -1, 
		EntityName: "GroupMembers", 
		UserID: <User ID>
	} ] 
}

Sample Response Body

Code Block
titleSample 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[]"
	]}
}



 

Request Body For Multiple SubType Records

...