{
  "opencollection": "1.0.0",
  "info": {
    "name": "Marketing Accounts Employees API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Employees",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Employee Time Off Requests",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.stackone.com/unified/hris/employees/:id/time_off",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number of the results to fetch"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of results per page"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Indicates that the raw request result is returned"
              },
              {
                "name": "fields",
                "value": "id,employee_id,name,phone_number,street_1,street_2,city,state,zip_code,country,location_type,created_at,updated_at",
                "type": "query",
                "description": "The comma separated list of fields to return in the response (if empty, all fields are returned)"
              },
              {
                "name": "sync_token",
                "value": "",
                "type": "query",
                "description": "The sync token to select the only updated results"
              },
              {
                "name": "updated_after",
                "value": "2020-01-01T00:00:00.000Z",
                "type": "query",
                "description": "Use a string with a date to only select results updated after that given date"
              },
              {
                "name": "proxy",
                "value": "[object Object]",
                "type": "query",
                "description": "Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with \"proxy\" key"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "List Employee Time Off Requests"
        },
        {
          "info": {
            "name": "Create Employee Time Off Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.stackone.com/unified/hris/employees/:id/time_off",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Create Employee Time Off Request"
        },
        {
          "info": {
            "name": "Get Employees Time Off Request",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.stackone.com/unified/hris/employees/:id/time_off/:subResourceId",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "subResourceId",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number of the results to fetch"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of results per page"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Indicates that the raw request result is returned"
              },
              {
                "name": "fields",
                "value": "id,employee_id,name,phone_number,street_1,street_2,city,state,zip_code,country,location_type,created_at,updated_at",
                "type": "query",
                "description": "The comma separated list of fields to return in the response (if empty, all fields are returned)"
              },
              {
                "name": "sync_token",
                "value": "",
                "type": "query",
                "description": "The sync token to select the only updated results"
              },
              {
                "name": "updated_after",
                "value": "2020-01-01T00:00:00.000Z",
                "type": "query",
                "description": "Use a string with a date to only select results updated after that given date"
              },
              {
                "name": "proxy",
                "value": "[object Object]",
                "type": "query",
                "description": "Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with \"proxy\" key"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get Employees Time Off Request"
        },
        {
          "info": {
            "name": "Get Employee",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.stackone.com/unified/hris/employees/:id",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number of the results to fetch"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of results per page"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Indicates that the raw request result is returned"
              },
              {
                "name": "fields",
                "value": "id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,home_location,work_location,employments,custom_fields,created_at,updated_at",
                "type": "query",
                "description": "The comma separated list of fields to return in the response (if empty, all fields are returned)"
              },
              {
                "name": "sync_token",
                "value": "",
                "type": "query",
                "description": "The sync token to select the only updated results"
              },
              {
                "name": "updated_after",
                "value": "2020-01-01T00:00:00.000Z",
                "type": "query",
                "description": "Use a string with a date to only select results updated after that given date"
              },
              {
                "name": "expand",
                "value": "company,employments,work_location,home_location,custom_fields",
                "type": "query",
                "description": "The comma separated list of fields that will be expanded in the response"
              },
              {
                "name": "include",
                "value": "avatar_url,avatar,custom_fields",
                "type": "query",
                "description": "The comma separated list of fields that will be included in the response"
              },
              {
                "name": "proxy",
                "value": "[object Object]",
                "type": "query",
                "description": "Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with \"proxy\" key"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get Employee"
        },
        {
          "info": {
            "name": "Updates an employee",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.stackone.com/unified/hris/employees/:id",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Updates an employee"
        },
        {
          "info": {
            "name": "List Employees",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.stackone.com/unified/hris/employees",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number of the results to fetch"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of results per page"
              },
              {
                "name": "raw",
                "value": "",
                "type": "query",
                "description": "Indicates that the raw request result is returned"
              },
              {
                "name": "fields",
                "value": "id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,home_location,work_location,employments,custom_fields,created_at,updated_at",
                "type": "query",
                "description": "The comma separated list of fields to return in the response (if empty, all fields are returned)"
              },
              {
                "name": "sync_token",
                "value": "",
                "type": "query",
                "description": "The sync token to select the only updated results"
              },
              {
                "name": "updated_after",
                "value": "2020-01-01T00:00:00.000Z",
                "type": "query",
                "description": "Use a string with a date to only select results updated after that given date"
              },
              {
                "name": "expand",
                "value": "company,employments,work_location,home_location,custom_fields",
                "type": "query",
                "description": "The comma separated list of fields that will be expanded in the response"
              },
              {
                "name": "include",
                "value": "avatar_url,avatar,custom_fields",
                "type": "query",
                "description": "The comma separated list of fields that will be included in the response"
              },
              {
                "name": "proxy",
                "value": "[object Object]",
                "type": "query",
                "description": "Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with \"proxy\" key"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "List Employees"
        },
        {
          "info": {
            "name": "Creates an employee",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.stackone.com/unified/hris/employees",
            "headers": [
              {
                "name": "x-account-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Creates an employee"
        }
      ]
    }
  ],
  "bundled": true
}