Skip to main content
PUT
Update CoworkerTimePass
Updates an existing CoworkerTimePass 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 CoworkerTimePass-Edit role.

Request Body

Required Fields

integer
required
The Id of the CoworkerTimePass record to update.
integer
required
ID of the customer assigned this pass.
integer
required
ID of the location that owns this pass.
integer
required
ID of the pass definition to issue; it determines the included number of uses and default price.
integer
required
Number of identical passes to issue in this request, including this one; a customer cannot hold more than 500 passes.

Optional Fields

string
Optional internal notes about this issued pass.
string
Optional purchase-order reference for this pass.
boolean
Whether the customer has used this pass; update-only operational status.
boolean
Whether no charge is due for this issued pass; when true its calculated price is zero.
number
Optional monetary price override for this issued pass; when omitted, the selected pass calculates the price for the customer.
string
Optional UTC expiration date and time; an expired pass is excluded from access-control updates.
string
Internal GUID linking this pass to the plan allocation that created it; do not set or use this field.
string
Internal GUID linking this pass to the customer product purchase that created it; do not set or use this field.
string
Internal GUID linking this pass to the customer contract that created it; do not set or use this field.

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 coworkertimepass 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