Skip to content
loken edited this page Feb 18, 2016 · 5 revisions

GET: /users

Summary

Returns an array of users.

Parameters

None

Returned JSON

{
    statusCode: 200,
    data: [
        {
            "username": "plexuser",
            "email": "user@plex.com",
            "created": "2016-01-07T01:06:03.860Z",
            "_id": "V9hCBdxw0fTECjvx"
        }
    ]
    meta: {}
}

DELETE: /users/{user}

Summary

Removes a user from Plex Requests. This requires authenticating with an admin user JWT.

Parameters

None

Returned JSON

{
    "statusCode": 200,
    "data": {
        "message": "Removed the user plexuser"
    },
    "meta": {}
}  

PUT: /users/{user}

Summary

Updates a single user object. All fields can be updated. This requires authenticating with an admin user JWT or the use whose object is being updated.

Parameters

user object should be provided in the body, JSON encoded.

{
    "email": "user@awesome.com"
}

Returned JSON

{
    "statusCode": 200,
    "data": {
        "username": "plexuser",
        "email": "user@awesome.com",
        "created": "2016-01-07T01:06:03.860Z",
        "_id": "V9hCBdxw0fTECjvx"
    },
    "meta": {}
}

Clone this wiki locally