Open Source PM Tools
  • Welcome
  • User guide
    • User management
    • Initiatives
    • Backlogs
    • Bugs
  • API Reference
    • API overview
    • /account
    • /org
    • /user
    • /backlogs
    • /items
    • /initiatives
    • /bugs
    • /comments
    • /subscribers
    • /connections
    • /search
    • /other
  • Install and Operate
    • Ubuntu 18.04
    • Kubernetes
  • Contributing
    • Pull Requests
Powered by GitBook
On this page
  • Get current user
  • Get API key
  • Create new API key
  • Update current user
  • Get orgs

Was this helpful?

  1. API Reference

/user

Some user methods are located beneath the Org endpoint. Others are under /users

Get current user

GET https://pm415.com/api/user

Gets info about the current user.

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "user": {
        "id": 4,
        "email": "mattreider@tmnail.com",
        "firstName": "Matthew",
        "lastName": "Reider",
        "organizations": [
            {
                "id": 16,
                "name": "Bar",
                "roles": [
                    {
                        "id": 1,
                        "role": "Admin"
                    }
                ]
            }
        ]
    },
    "organization": {
        "id": 16,
        "name": "Bar",
        "roles": [
            {
                "id": 1,
                "role": "Admin"
            }
        ]
    }
}

Get API key

GET https://pm415.com/api/user/apikey

Gets the current user's API key.

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "apikey": "jfihf09dsf9fdnsdf"
}

Create new API key

POST https://pm415.com/api/user/apikey

Creates a new API key for the current user.

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "apikey": "jfihf09dsf9fdnsdf"
}

Update current user

PUT https://pm415.com/api/user

Updates the current user.

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

Request Body

Name
Type
Description

object

{"email" : "matt@matt.com", "password": "1111", "confirmation": "1111", "firstName": "Matt", "lastName": "Reider" }

{
    "success": true,
    "user": {
        "id": 4,
        "email": "mattreider@tmnail.com",
        "firstName": "Matthew",
        "lastName": "Reider",
        "organizations": [
            {
                "id": 16,
                "name": "Bar",
                "roles": [
                    {
                        "id": 1,
                        "role": "Admin"
                    }
                ]
            }
        ]
    },
    "organization": {
        "id": 16,
        "name": "Bar",
        "roles": [
            {
                "id": 1,
                "role": "Admin"
            }
        ]
    }
}

Get orgs

GET https://pm415.com/api/user/orgs

Gets the orgs that current user has access to.

Headers

Name
Type
Description

Authentication

string

Authorization: Bearer 50ca9ba0f7b1444fa55d5

{
    "success": true,
    "organizations": [
        {
            "orgId": 16,
            "name": "Bar",
            "role": "Admin"
        }
    ]
}
Previous/orgNext/backlogs

Last updated 6 years ago

Was this helpful?