User
Info about Administrative Lytics account users
* Lytics users are unique across accounts
* They get *invited* to have access to your account
User Fetch
https://api.lytics.io/api/user/{userid}Get a single admin user
{
"data": {
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "[email protected]",
"id": "120642b03a2d54551e637f56cbf61b73",
"name": "Bill Jenkins",
"accounts": [
{
"aid": 122,
"account_id": "4f7b175bdba058fc092357a6",
"granted_by": "500418690088145",
"roles": [
"api",
"segments",
"admin"
],
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z"
}
]
}
}User Update
https://api.lytics.io/api/user/{userid}Update An **Lytics Admin User**
{
"data": {
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "[email protected]",
"id": "120642b03a2d54551e637f56cbf61b73",
"name": "Bill Jenkins",
"accounts": [
{
"aid": 122,
"account_id": "4f7b175bdba058fc092357a6",
"granted_by": "500418690088145",
"roles": [
"api",
"segments",
"admin"
],
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z"
}
]
}
}User List
https://api.lytics.io/api/userGet a list of all administrative users for an account and their roles.
{
"data": [
{
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "[email protected]",
"id": "120642b03a2d54551e637f56cbf61b73",
"name": "Bill Jenkins",
"accounts": [
{
"aid": 122,
"account_id": "4f7b175bdba058fc092357a6",
"granted_by": "500418690088145",
"roles": [
"api",
"segments",
"admin"
],
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z"
}
]
}
]
}User Create
https://api.lytics.io/api/userCreate/Invite A **Lytics Admin User** this will either create
a new user if that email is new, or invite user to have access to
current account.
``sh
# Create/Invite new user for current LIOKEY account
# with suppression to not send welcome email
curl -v -XPOST "https://api.lytics.io/api/user?suppress=true" \
-H 'Content-type: application/json' \
-H "Authorization: $LIOKEY" \
-d '{
"email" : "[email protected]"
, "password":"aNotSoGoodPassword%^"
, "name":"aaron"
, "roles": ["api","admin"]
}'
``
{
"name": "Bob",
"email": "[email protected]"
}{
"data": {
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "[email protected]",
"id": "120642b03a2d54551e637f56cbf61b73",
"name": "Bill Jenkins",
"accounts": [
{
"aid": 122,
"account_id": "4f7b175bdba058fc092357a6",
"granted_by": "500418690088145",
"roles": [
"api",
"segments",
"admin"
],
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z"
}
]
}
}User SetPassword
https://api.lytics.io/api/user/{userid}/setpassword{
"password": "abc"
}{
"data": {
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "[email protected]",
"id": "120642b03a2d54551e637f56cbf61b73",
"name": "Bill Jenkins",
"accounts": [
{
"aid": 122,
"account_id": "4f7b175bdba058fc092357a6",
"granted_by": "500418690088145",
"roles": [
"api",
"segments",
"admin"
],
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z"
}
]
}
}