Set a tenant custom field value
Writes one custom field value on a tenant, creating it or replacing what was there. Send exactly the property that matches the field's type — the response tells you which that is.
Authorization
AuthorizationstringrequiredPath parameters
tenantIdstringrequiredThe tenant whose custom fields you are working with. A Snowflake id, sent as a decimal string.
customFieldIdstringrequiredThe custom field definition. A Snowflake id, sent as a decimal string.
Body
application/json
Send only the property that matches the custom field's type. A field marked required in its options refuses an empty value. Look the field's type up with list tenant custom fields.
stringValuestringSet this when the field's type is string and it holds one value.
stringArraystring[]Set this when the field's type is string and multiple is true.
numberValuenumberSet this when the field's type is number.
booleanValuebooleanSet this when the field's type is boolean.
dateTimeValuestring · date-timeSet this when the field's type is datetime.
referenceValuestringSet this when the field's type is reference and it holds one id.
referenceArraystring[]Set this when the field's type is reference and multiple is true. Sending this replaces the whole list, so it is also how you remove a reference.
referenceFileUploadSessionIdstringAn upload session to commit and store as the single reference value. Only honoured when the field points at files.
referenceFileUploadSessionIdsstring[]Upload sessions to commit and append to referenceArray. Combine the two in one call to remove and add files at the same time: referenceArray sets the list to keep, and these are appended to it.
Response
200 · The stored value.
customFieldIdstringThe custom field definition this value belongs to.
entityTypeenum<string>Always tenant here.
entityIdstringThe record the value is attached to.
stringValuestringThe value, when the field's type is string and it holds one value.
stringArraystring[]The value, when the field's type is string and multiple is true.
numberValuenumberThe value, when the field's type is number.
booleanValuebooleanThe value, when the field's type is boolean.
dateTimeValuestring · date-timeThe value, when the field's type is datetime.
referenceValuestringThe id pointed at, when the field's type is reference and it holds one value.
referenceArraystring[]The ids pointed at, when the field's type is reference and multiple is true.
createdstring · date-timeWhen the value was first set.
updatedstring · date-timeWhen the value was last changed.
401 · The access token is missing, expired, or does not belong to a property manager.
404 · No custom field with that id exists for the calling company. A record that belongs to another company is reported the same way as one that does not exist. The id you asked for is in `entityId`; `detail` names only the kind of record.
422 · The value breaks the field's own rules — a required field left empty, a value outside the field's allowed list, a number outside its range, or text longer than its maximum.
When the field's options.referenceEntityType is file, upload the file first and send the resulting session id here rather than a file id.
- Call create an upload session to get a session and an upload target.
- Upload the file to that target.
- Call this endpoint with
referenceFileUploadSessionIdsset to the session ids.
referenceArray and referenceFileUploadSessionIds combine in one call: referenceArray is the list of existing file ids to keep, and the newly uploaded files are appended to it. Sending referenceArray on its own with a shorter list is how you remove a file.