Set a vendor's custom field value
Writes one custom field's value for a vendor. Send only the property matching the field's type — a text field takes stringValue, a number field numberValue, and so on. Requires the vendors:write permission.
Authorization
AuthorizationstringrequiredPath parameters
vendorIdstringrequiredThe vendor to act on. A Snowflake id, sent as a decimal string.
customFieldIdstringrequiredThe custom field. It must be one defined for vendors.
Body
application/json
For a field that holds files, do not send referenceValue yourself — send the upload session ids instead and MagicDoor turns them into file ids for you.
stringValuestringFor a field that holds one piece of text.
stringArraystring[]For a field that holds several pieces of text.
numberValuenumberFor a field that holds a number.
dateTimeValuestring · date-timeFor a field that holds a date or time. Send it without an offset; it is read as UTC.
booleanValuebooleanFor a field that holds a yes or no.
referenceValuestringFor a field that points at one other record — the record's id.
referenceArraystring[]For a field that points at several other records.
referenceFileUploadSessionIdstringFor a file field holding one file: an upload session from Start a file upload for a vendor custom field, whose bytes you have already sent. It replaces whatever file was there.
referenceFileUploadSessionIdsstring[]For a file field holding several files: upload sessions whose bytes you have already sent. These are appended to referenceArray rather than replacing it, so the field's existing files are kept unless you send a shorter referenceArray.
Response
200 · The value that was written.
customFieldIdstringrequiredThe custom field this value belongs to.
entityTypestringrequiredWhat the value hangs off. Always the literal Vendor here — note this one is written in title case, unlike other enumerations in this API.
entityIdstringrequiredThe vendor the value belongs to.
stringValuestringThe value, when the field holds one piece of text.
stringArraystring[]The value, when the field holds several pieces of text.
numberValuenumberThe value, when the field holds a number.
dateTimeValuestring · date-timeThe value, when the field holds a date or time, in the company's timezone and without an offset.
booleanValuebooleanThe value, when the field holds a yes or no.
referenceValuestringThe value, when the field points at one other record — for a file field, the file's id.
referenceArraystring[]The value, when the field points at several other records.
createdstring · date-timerequiredWhen the value was first set, in the company's timezone and without an offset.
updatedstring · date-timerequiredWhen it was last changed, in the company's timezone and without an offset.
referenceFilesobject[]The files behind referenceValue and referenceArray, resolved for you. Absent when the field does not point at files.