CoworkerBookingCredits
Update CoworkerBookingCredit
Update an existing CoworkerBookingCredit record.
PUT
Update CoworkerBookingCredit
Updates an existing CoworkerBookingCredit 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 CoworkerBookingCredit-Edit role.Request Body
Required Fields
Total monetary amount assigned when this credit is created; it sets the initial RemainingCredit.
Optional Fields
List of resource-type IDs this credit can pay for when CaneBeUsedForBookings is true; an empty list allows every resource type.
List of product IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every product.
List of plan IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every plan.
Optional UTC date and time when this credit becomes usable; blank means it is usable immediately.
Optional UTC date and time when this credit stops being usable; blank means no expiry, and when set it must be later than ValidFrom.
Whether this credit can pay for bookings; use ElegibleResourceTypes to limit eligible resource types.
Whether this credit can pay for event sign-ups; use EventCategories to limit eligible event categories.
List of event-category IDs this credit can pay for when CaneBeUsedForEvents is true; an empty list allows every event category.
Whether this credit can pay for products, plans, passes, and eligible charges; use the eligibility lists and AppliesToCharges to restrict those uses.
List of pass IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every pass.
Whether this universal credit can pay for one-off charges in addition to products, plans, and passes.
Code Examples
Response
200
Example Response
400
Example Response