Update a staff member
A patch: omitted fields are left alone. A row backed by a signed-in account keeps its name in step with that account, so a rename here can be overwritten.
Errors
404 staff_not_found— unknown ID, or one belonging to another tenant.422 staff_name_required—namepresent but blank.422 invalid_rate— a negative rate.
PATCH
/api/v1/staff/{id}Authorization
AuthorizationBearer token (bloomcount_...) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonnamestringThe person's name. Required to create.
hourlyRatenumberPay per hour in the tenant's currency, used to cost an event's labour. Must not be negative.
mileageRatenumberPay per mile in the tenant's currency, used to cost travel. Must not be negative.
addressstringWhere they travel from
emailstringContact email.
phonestringContact number.
companyNamestringTheir company
websitestringTheir website
Responses
200Updated
staffIdstringrequirednamestringrequiredhourlyRatenumber | nullmileageRatenumber | nulladdressstring | nullemailstring | nullphonestring | nullcompanyNamestring | nullwebsitestring | nullhasAccountbooleanrequiredTrue when this row belongs to a signed-in member. Those rows can't be deleted over the API.
401Missing or invalid API key, or revoked / expired.
errorstringrequired403Authenticated, but the key lacks the required scope or the tenant has no API access.
errorstringrequired404The requested resource doesn't exist or belongs to a different tenant.
errorstringrequired422Request body or arguments failed validation.
errorstringrequired429Per-minute rate limit (60/min) or per-month cap exceeded.
errorstringrequired