Updates an existing CustomField 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 CustomField-Edit role.
Enums
eCustomFieldRecordType — RecordType values
Value Name 1 Coworker 2 Team 3 FloorPlanDesk 4 CrmOpportunity 5 Visitor 6 Proposal 7 CoworkerInternal 8 HelpDeskMessage 9 HelpDeskDepartment 10 Product 11 Booking 12 CoworkerInvoice 13 Business 14 CoworkerContract 15 Tariff 16 Resource 17 FloorPlan 18 InventoryAsset
eFieldType — FieldType values
Value Name 1 Text 2 LongText 3 Boolean 4 Dropdown 5 Date 6 Integer 7 Decimal
eCoworkerFieldPosition — CoworkerFieldPosition values
Value Name 1 General 2 Contact 3 Profile 4 Billing 5 Access 6 Notes
eFieldVisibility — Visibility values
Value Name 1 Visible 2 ReadOnly 3 Internal
Request Body
Required Fields
The Id of the CustomField record to update.
Business this custom field belongs to.
Field label displayed to users.
Sort order when multiple custom fields are shown together.
Entity type this field applies to: Coworker, Team, Booking, Product, Resource, etc..
Data type of the field: Text, LongText, Boolean, Dropdown, Date, Integer, or Decimal.
Tab where this field appears on the coworker record: General, Contact, Profile, Billing, Access, or Notes.
Unique index identifying this field within its record type and business.
Visibility level: Visible (editable by customer), ReadOnly (shown but not editable), or Internal (admin only).
Optional Fields
Comma-separated list of choices for Dropdown fields.
Whether multiple options can be selected for Dropdown fields.
Whether a value must be provided when saving the parent entity.
Optional group name used to visually group related custom fields together.
Show this field on the coworker’s public profile page.
Show this field as a filter in the member directory search.
Alternative label shown when this field appears in directory search filters.
Show this field on the member sign-up form.
Show this field on the member profile edit form.
Show this field on the tour booking form.
Show this field on the event sign-up form.
Show this field on the resource booking form.
DisplayInProductSignUpForm
Show this field on the product purchase form.
Show this field on the team sign-up form.
DisplayInCourseSignUpForm
Show this field on the course sign-up form.
DisplayInTariffSignUpForm
Show this field on the pricing plan (tariff) sign-up form.
DisplayInBookingSignUpForm
Show this field on the booking sign-up form.
Show this field as a filter in resource search.
Resources this custom field is linked to (for FloorPlanDesk or Resource record types).
Code Examples
curl -X PUT \
"https://spaces.nexudus.com/api/crm/customfields" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"BusinessId": 0,
"Name": "",
"DisplayOrder": 0,
"RecordType": 0,
"FieldType": 0,
"CoworkerFieldPosition": 0,
"CustomFieldIndex": 0,
"Visibility": 0,
"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 customfield was updated successfully.
{
"Status" : 200 ,
"Message" : "CustomField 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
}