ObjectTypeCreateRequest
RequestSent in requests. Its values are closed: anything not listed is refused.
Attributes
2A new object type.
5 attributes of data
Create an analytical dimension for the type and a value in it for each object; omitted means false. Needs the Dimensions module (403 CAPABILITY_DISABLED).
Property definitions, in display order; omitted means none.
10 attributes of each item
What a property's value is. numeric a decimal number (area, share, resident count); text free text; boolean yes or no; contact a contact of this organization (an owner, a payer, a tenant); address the object's own address (address_text on the object; at most one per type); meter a slot for one meter of one meter type.
One of numeric, text, boolean, contact, address, meter
Details
Fixed once the definition is saved.
Hold several values at once. Omitted or null: false on a new definition, unchanged on an existing one. Turning it off is refused with BILLING_OBJECT_PROPERTY_DEF_MULTI_IN_USE while an object holds several current values.
Required for a meter property and refused for every other kind.
What a create does when a record of the same resource already holds the sent external_ref. error: 409 EXTERNAL_REF_EXISTS with existing_id. return: 200 with the existing record, unchanged.
One of error, return, update
Details
update: apply the sent fields to it as a PATCH would and answer 200; refused like a PATCH when the record is no longer editable.