Update an employee
Updates an employee at a company.
Partially implemented, only supports updating:
- event_type_preferences
- pre_payments_enabled
- own_settlements_preferred
- own_settlements_allowed
- commissions
- role
/v1/hq/companies/{company_id}/employees/{employee_id}The Noona HQ API uses Bearer token for authentication.
Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.
Authorization: Bearer your-token
In: header
Path Parameters
"dwawd8awudawd"Employee ID
"dwawd8awudawd"Query Parameters
Request Body
application/json
An ID that can be used to reference the event type in an external system. This ID is not used by Noona and is not guaranteed to be unique.
"external-service-id"Use company instead
"98aDWa8da9wda9dwa8""Noony Adams""Noony is a great employee"A map of translations for a given attribute.
The key is the language code, and the value is the translated string.
{
"is": "King Accounting tenging",
"fr": "Connexion King Accounting"
}"[email protected]""354""5885522"The order of the employee in the list of employees on the marketplace.
int321Whether the employee is pending owner approval
falseWhether the employee is visible on the calendar
truedate-timedate-timeResponse Body
application/json
curl -X POST "https://api.noona.is/v1/hq/companies/dwawd8awudawd/employees/dwawd8awudawd" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "7awdXawZoolkjad37a",
"reference_id": "external-service-id",
"company_id": "98aDWa8da9wda9dwa8",
"company": "string",
"name": "Noony Adams",
"description": "Noony is a great employee",
"description_translations": {
"is": "King Accounting tenging",
"fr": "Connexion King Accounting"
},
"image": {
"thumb": "https://placekitten.com/200/200",
"image": "https://placekitten.com/200/300",
"public_id": "https://placekitten.com/200/300",
"type": "thumbnail",
"provider": "cloudinary",
"width": 200,
"height": 300,
"bytes": 95849
},
"email": "[email protected]",
"email_verified": true,
"has_password": true,
"phone_country_code": "354",
"phone_number": "5885522",
"order": 1,
"marketplace": {
"enabled": true,
"booking_interval": 15,
"prioritized": true,
"allow_booking_without_confirmation": true,
"exclude_from_randomization_pool": true,
"exclude_new_customers": true,
"pre_payments_enabled": true,
"own_settlements_allowed": true,
"own_settlements_preferred": true,
"own_settlements": true
},
"notifications": {
"booking_email": true,
"online_bookings": {
"new_bookings": {
"hq": true,
"email": true,
"push": true
},
"reschedules": {
"hq": true,
"email": true,
"push": true
},
"cancellations": {
"hq": true,
"email": true,
"push": true
},
"resource_only": {
"hq": true,
"email": true,
"push": true
}
},
"staff_bookings": {
"new_bookings": {
"hq": true,
"email": true,
"push": true
},
"reschedules": {
"hq": true,
"email": true,
"push": true
},
"cancellations": {
"hq": true,
"email": true,
"push": true
},
"resource_only": {
"hq": true,
"email": true,
"push": true
}
},
"other_staff_online_bookings": {
"new_bookings": {
"hq": true,
"email": true,
"push": true
},
"reschedules": {
"hq": true,
"email": true,
"push": true
},
"cancellations": {
"hq": true,
"email": true,
"push": true
}
},
"payments": {
"successful_payouts": {
"hq": true,
"email": true,
"push": true
},
"failed_payouts": {
"hq": true,
"email": true,
"push": true
}
},
"waitlist": {
"new_requests": {
"hq": true,
"email": true,
"push": true
}
},
"booking_offers": {
"approved": {
"hq": true,
"email": true,
"push": true
},
"declined": {
"hq": true,
"email": true,
"push": true
}
}
},
"sms": {
"from": "Hair salon",
"custom_text": "Please contact us via phone 777-7777 or Facebook page of the company in case you cannot make it to your appointment...",
"custom_text_translations": {
"is": "King Accounting tenging",
"fr": "Connexion King Accounting"
}
},
"event_type_preferences": [
{
"event_type": "string",
"skip": false,
"skip_calendar": false,
"skip_marketplace": false,
"has_custom_duration": false,
"custom_duration": {
"duration": 60,
"before_pause": 25,
"pause": 10,
"after_pause": 25
}
}
],
"role": "string",
"pending_owner_approval": false,
"available_for_bookings": true,
"settlement_account": "string",
"connected_to_teya": true,
"adyen": {
"onboarded_at": "2019-08-24T14:15:22Z",
"onboarding_status": "not_started",
"has_transfer_instrument": true
},
"teya": {
"connected": true,
"has_token": true
},
"commissions": {
"pos": {
"products": {
"type": "rates",
"default_rate": 10
},
"services": {
"type": "rates",
"default_rate": 10
},
"vouchers": {
"type": "rates",
"default_rate": 10
}
},
"calendar": {
"bookings": {
"type": "rates",
"default_rate": 10
}
}
},
"disabled_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}