Skip to content

Latest commit

 

History

History
105 lines (65 loc) · 2.14 KB

EmployeesApi.md

File metadata and controls

105 lines (65 loc) · 2.14 KB

StandoutFortnox::EmployeesApi

All URIs are relative to https://api.fortnox.se/3

Method HTTP request Description
add_employee POST /employees Create employee
update_employee PUT /employees/{EmployeeId} Update employee

add_employee

Employee add_employee(body)

Create employee

Create customer

Example

# load the gem
require 'standout_fortnox'

api_instance = StandoutFortnox::EmployeesApi.new

body = StandoutFortnox::Employee.new # Employee | Employee object to create


begin
  #Create employee
  result = api_instance.add_employee(body)
  p result
rescue StandoutFortnox::ApiError => e
  puts "Exception when calling EmployeesApi->add_employee: #{e}"
end

Parameters

Name Type Description Notes
body Employee Employee object to create

Return type

Employee

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

update_employee

Employee update_employee(employee_id, body)

Update employee

Example

# load the gem
require 'standout_fortnox'

api_instance = StandoutFortnox::EmployeesApi.new

employee_id = 56 # Integer | Numeric id of the employee

body = StandoutFortnox::Employee.new # Employee | Employee object to update


begin
  #Update employee
  result = api_instance.update_employee(employee_id, body)
  p result
rescue StandoutFortnox::ApiError => e
  puts "Exception when calling EmployeesApi->update_employee: #{e}"
end

Parameters

Name Type Description Notes
employee_id Integer Numeric id of the employee
body Employee Employee object to update

Return type

Employee

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json