The delete function removes an emission record from Greenlit that has been created by your App.
Example JSON request for this function:
{
"action": "delete", // string
"user": "api@greenlit.org.nz", // email string
"production": "YmU9U5evebUbUjagydejU3Ehuna2a2", // string
"key": "50d95141da41a5e502ada5c7da7de33d" // string
"records": { // array of integers
"0": 576 // record iid that you want to delete
},
"data": {} // empty
}Example JSON response for this function:
{
"status": "success", // or partial, or error
"error": "", // string message
"data": [], // empty
"actions": [ // specific success or error details about each record.
{
"iid": 576,
"action": "delete",
"status": "success",
"error": "" // string
}
],
"lookups": [] // empty
}