{
  "opencollection": "1.0.0",
  "info": {
    "name": "WorkBoard External Public Activity (Action Items) Activity (Action Items) User API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "User",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get an individual user, or all users with a Data-Admin token.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://demo.biz.wobo-int.com/wb/apis/user",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "**Data-Admin:** Pass the user_id OR email address for the user."
              },
              {
                "name": "custom_attributes",
                "value": "",
                "type": "query",
                "description": "Return the custom attributes for a specific user. Use `custom_attributes=1` to return the values."
              },
              {
                "name": "opt_filters",
                "value": "",
                "type": "query",
                "description": "If you have provisioned your users with a unique identifier generated by your system, then you can query them with this attribute. opt_filters can be set to a JSON with the following format: opt_filters={\"external_id\": [\"externalids\"]} — where \"externalids\" is an array of the external ids. Example: opt_filters={\"external_id\": [\"a123bc\", \"ax123b\"]}"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "<ul><li><b>Data-Admin:</b> Add include=org_members to return an array of all users of the organization. See `limit` and `offset` for pagination.</li><li>Add include=team_members to return an array of members from teams to which the current user has access.</li><li>Add include=org_reports to return an array of reports for the given `user_id`.</li></ul>"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "<ul><li><b>Data-Admin:</b> Use in combination with `include=org_members` and `offset` to return a paginated list of users of the organization. `limit` is the number of results to return.</li></ul>"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "<ul><li><b>Data-Admin:</b> Use in combination with `include=org_members` and `limit` to return a paginated list of users of the organization. `offset` is the number of results to skip before returning a result.</li></ul>"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "**Without any parameters, this will return the user profile associated with the token. If the token is a 'Data-Admin' token, some parameters will return a different result.**"
        },
        {
          "info": {
            "name": "Data-Admin: Create a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://demo.biz.wobo-int.com/wb/apis/user",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "`Data-Admin` token can create a user."
        },
        {
          "info": {
            "name": "Deactivate a user",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://demo.biz.wobo-int.com/wb/apis/user",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "**Data-Admin:** Pass the user_id OR email address for the user."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deactivate a user"
        },
        {
          "info": {
            "name": "Data-Admin: Get user by `user_id_path`",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://demo.biz.wobo-int.com/wb/apis/user/:user_id_path",
            "params": [
              {
                "name": "user_id_path",
                "value": "",
                "type": "path",
                "description": "The unique numerical identifier for a user in WorkBoard."
              },
              {
                "name": "custom_attributes",
                "value": "",
                "type": "query",
                "description": "Return the custom attributes for a specific user. Use `custom_attributes=1` to return the values."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "**`Data-Admin` tokens can get an individual user with the `user_id_path` parameter.**"
        },
        {
          "info": {
            "name": "Update a user and/or reactivate a user.",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://demo.biz.wobo-int.com/wb/apis/user/:user_id_path",
            "params": [
              {
                "name": "user_id_path",
                "value": "",
                "type": "path",
                "description": "The unique numerical identifier for a user in WorkBoard."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a user and/or reactivate a user."
        }
      ]
    }
  ],
  "bundled": true
}