Skip to content
Alban LEROUX edited this page Oct 3, 2011 · 2 revisions

API

auth.grant.add

Add a new user.

require admin grant access

Request example

GET http://example.com/api/get/auth.grant.add/json/?grant=assistant
{
	"method"  : "auth.grant.add",
	"request" :
	{
		"grant" : "assistant"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>auth.grant.add</method>
	<request>
		<grant>assistant</grant>
	</refresh>
</xml>

Response example

{
	"status"   : "valid",
	"response" : 
	{
		"message" : "grant added"
    }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<message>grant added</message>
	</response>
</xml>

Arguments

  • grant: the grant name

Clone this wiki locally