This is an old revision of the document!


JSON API Endpoints

This section lists the different API endpoints you can use to access or update Protogrid data. The respective http method is defined as [METHOD] following the endpoint in this documentation.

Response

Every request to such an API endpoint returns a JSON object. The returned JSON object always contains an error and a result object. If the request was successful, the result object contains the requested or updated data. When the request fails, the errors object contains the error messages which occurred when trying to execute the request.

Example successful response
{
	"errors": [], 
	"protogrid_environment_version": "1.3.9",
	"result":{
		"key": {…},
		"key": […],
		"key": "data"
	}
}
Example failure response
{
	“errors”: [
		{ … },
		{ … }
	], 
	"protogrid_environment_version": "1.3.9",
	“result”: {}
}
Print/export