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
The Id of the CoworkerDataFile record to update.
ID of the customer this file belongs to.
Name of the file or document.
Optional Fields
Notes included in the email notification sent to the customer when the file is shared.
Whether the file is shared with the customer and visible on the Members Portal.
Whether to request a digital signature from the customer.
URL of a new file to upload (replaces the existing file).
Set to true to remove the existing uploaded file.
URL of a new signed file to upload (replaces the existing signed copy).
Set to true to remove the existing signed copy.
File extension (e.g. pdf, docx, jpg).
Whether the customer has been billed for this file.
Whether the customer has signed this document.
Identifier used by the digital signature provider to track this document.
GUID of the document template used to generate this file.
Email address to notify when the customer signs the document.
GUID of the proposal linked to this file.
GUID of the coworker contract linked to this file.
Code Examples
curl -X PUT \
"https://spaces.nexudus.com/api/spaces/coworkerdatafiles" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"BusinessId": 0,
"CoworkerId": 0,
"Name": "",
"Id": 87654321
}'
Response
200
HTTP status code. 200 on success.
A human-readable message confirming the update.
Contains the Id of the updated record.
true if the coworkerdatafile was updated successfully.
{
"Status" : 200 ,
"Message" : "CoworkerDataFile was successfully updated." ,
"Value" : {
"Id" : 87654321
},
"OpenInDialog" : false ,
"OpenInWindow" : false ,
"RedirectURL" : null ,
"JavaScript" : null ,
"UpdatedOn" : "2025-01-15T10:30:00Z" ,
"UpdatedBy" : "admin@example.com" ,
"Errors" : null ,
"WasSuccessful" : true
}
400
A summary of the validation error(s), in the format PropertyName: error message.
null on validation failure.
Array of validation errors. The value that was submitted for the field, or null if missing.
The validation error message.
The name of the property that failed validation.
false when the request fails validation.
{
"Message" : "Name: is a required field" ,
"Value" : null ,
"Errors" : [
{
"AttemptedValue" : null ,
"Message" : "is a required field" ,
"PropertyName" : "Name"
}
],
"WasSuccessful" : false
}