{
  "opencollection": "1.0.0",
  "info": {
    "name": "Workleap Attributes Users API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "workleap-subscription-key",
      "value": "{{workleap-subscription-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Activate users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workleap.com/public/users/activate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update users state to active"
        },
        {
          "info": {
            "name": "Create a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workleap.com/public/users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a user in an organization"
        },
        {
          "info": {
            "name": "Deactivate users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workleap.com/public/users/deactivate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update users state to deactivated"
        },
        {
          "info": {
            "name": "Get a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.workleap.com/public/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the user"
              }
            ]
          },
          "docs": "Get a user from an organization"
        },
        {
          "info": {
            "name": "Update a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.workleap.com/public/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the user"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a user in an organization"
        },
        {
          "info": {
            "name": "Delete a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.workleap.com/public/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the user"
              }
            ]
          },
          "docs": "Delete a user in an organization"
        },
        {
          "info": {
            "name": "Search users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workleap.com/public/users/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Search users from an organization"
        },
        {
          "info": {
            "name": "Update a user avatar",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.workleap.com/public/users/:userId/avatar",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the user"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "image",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload an avatar for a user identified by user ID"
        },
        {
          "info": {
            "name": "Update a user avatar by email",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.workleap.com/public/users/avatar",
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "image",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload an avatar for a user identified by the image filename (email address)"
        }
      ]
    }
  ],
  "bundled": true
}