Skip to main content
PUT
Update CoworkerExtraService
Updates an existing CoworkerExtraService record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerExtraService-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the CoworkerExtraService record to update.
integer
required
ID of the customer who owns this time credit or booking charge..
integer
required
ID of the location that issued this record; it is required and cannot be changed after creation..
integer
required
ID of the booking rate that defines this record’s eligible resource types, currency, and credit type..
integer
required
Total credit granted, in the ChargePeriod unit; it must be at least RemainingUses and is set only when creating a manual credit..
integer
required
Unit used for TotalUses and RemainingUses: Minutes, Days, Weeks, Months, Uses, or FourWeekMonths..

Optional Fields

string
Optional internal notes about this time credit or booking charge..
boolean
Whether the record has no charge to the customer; when true, calculated price is zero..
number
Optional monetary amount charged in the booking rate’s currency; when omitted, the server calculates it from the rate and TotalUses..
string
Optional UTC date and time when credit becomes usable; blank means it can be used immediately..
string
Optional UTC expiry date and time; blank means no expiry, and when set it must be after ValidFrom and credit is valid only before it..
string
Optional UTC due date for invoicing this booking charge; blank means it is included on the next invoice..
string
Optional customer purchase-order reference for invoicing..
boolean
Whether to invoice this customer directly rather than their team or company paying customer..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the coworkerextraservice was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response