Users

Resources and actions to manage the users of an organization

Endpoints

Get authentication organization and user information

GET https://api.upcoach.com/me/

Returns the user and organization information for the API key used for authentication.

{
    "user": {
        "avatar": "...",
        "email": "...",
        "id": "...",
        "name": "...",
        "timezone": "..."
    },
    "organization": {
        "id": "...",
        "name": "...",
        "subdomain": "..",
        "url_home": "..",
        "created_at": 1590851285
    }
}

List team members

GET https://api.upcoach.com/team-members

Returns a list of team members in the organization.

Query Parameters


{
    "data": [
        {
            "id": "...",
            "avatar": "...",
            "name": "...",
            "email": "...",
            "timezone": "...",
            "role": "admin",
            "created_at": null
        },
        ...
    ]
}

List clients

GET https://api.upcoach.com/clients

Returns a list of clients in the organization

Query Parameters

{
  "data": [
    {
      "id": "...",
      "avatar": "...",
      "name": "...",
      "email": "...",
      "timezone": "...",
      "created_at": 1637585633,
      "info": {
        "...": "...",
        ...
      }
    },
    ...
  ],
  "links": {
    "first": "...",
    "last": "...",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": ...,
    "from": ...,
    "last_page": ...,
    "path": "...",
    "per_page": ...,
    "to": ...,
    "total": ...
  }
}

Add new client

POST https://api.upcoach.com/clients

Adds a new client to the organization

Request Body

{
  "client": {
    "id": "...",
    "avatar": "...",
    "name": "...",
    "email": "...",
    "timezone": "...",
    "created_at": ...,
    "info": {
        "...": "...",
        ...
      }
  }
}

Update a client

PUT https://api.upcoach.com/clients/<user_id>

Updates a client's custom field information.

Path Parameters

Request Body

{
  "client": {
    "id": "...",
    "avatar": "...",
    "name": "...",
    "email": "...",
    "timezone": "...",
    "created_at": ...,
    "info": {
        "...": "...",
        ...
      }
  }
}

Resource Objects

User

Team Member, Client and Program Member resource objects inherit properties from this User resource object.

Organization

Team Member

Inherits all the properties of the User Resource and extends it with the following properties

Client

Inherits all the properties of the User Resource and extends it with the following properties

Last updated