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 |
Employee add_employee(body)
Create employee
Create customer
# 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
Name | Type | Description | Notes |
---|---|---|---|
body | Employee | Employee object to create |
No authorization required
- Content-Type: application/json
- Accept: application/json
Employee update_employee(employee_id, body)
Update employee
# 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
Name | Type | Description | Notes |
---|---|---|---|
employee_id | Integer | Numeric id of the employee | |
body | Employee | Employee object to update |
No authorization required
- Content-Type: application/json
- Accept: application/json