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

Request Body

Required Fields

integer
required
The Id of the CoworkerDataFile record to update.
integer
required
Location ID.
integer
required
ID of the customer this file belongs to.
string
required
Name of the file or document.

Optional Fields

string
Notes included in the email notification sent to the customer when the file is shared.
boolean
Whether the file is shared with the customer and visible on the Members Portal.
boolean
Whether to request a digital signature from the customer.
string
URL of a new file to upload (replaces the existing file).
boolean
Set to true to remove the existing uploaded file.
string
URL of a new signed file to upload (replaces the existing signed copy).
boolean
Set to true to remove the existing signed copy.
string
File extension (e.g. pdf, docx, jpg).
boolean
Whether the customer has been billed for this file.
boolean
Whether the customer has signed this document.
string
Identifier used by the digital signature provider to track this document.
string
GUID of the document template used to generate this file.
string
Email address to notify when the customer signs the document.
string
GUID of the proposal linked to this file.
string
GUID of the coworker contract linked to this file.

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