User
User Create
Create/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.
# 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" : "fakeuser2@lytics.io"
, "password":"aNotSoGoodPassword%^"
, "name":"aaron"
, "roles": ["api","admin"]
}'
post/api/user
Request
- Base URLhttps://api.lytics.io
- URLhttps://api.lytics.io/api/user
- AuthAPI key in header Authorization
Query parameters
account_idstring
Your Lytics account ID.
suppressboolean
default = false, supress email invite
Request body
Example request
{
"name": "Bob",
"email": "bob@bob.com"
}Response
Created
Example response
{
"data": {
"account_id": "4f7b175bdba058fc092357a6",
"aid": 122,
"created": "2014-08-04T21:18:20.124Z",
"updated": "2014-08-04T21:18:20.124Z",
"email": "bill.jenkins@lytics.io",
"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"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.