Define a custom property
POST/custom-properties
Adds a custom property to an object type, or to one of its subtypes with subtype.
Administrators only (403 otherwise). object_type, name, code and type are
required; code is unique within the object type and cannot look like cp_<number>
(422 code: taken | reserved). A list needs options and a table needs columns.
Saved exactly as the administration screen saves it, so the property shows up there and
in the forms right away. Answers the property as GET /custom-properties describes it.
Object types whose members belong to a dimension group are 422 object_type: unsupported.
Since 4.3.1.
Request
Responses
- 201
- 401
- 403
- 404
- 422
Created
Missing, invalid or expired token, or no contact matches it.
Authenticated, but not allowed.
Unknown route, or the resource is missing or in the trash; message names what was
looked for (task, note, payment_receipt, expense…). On an expenses route,
message: "expenses" means the plugin is not active.
Invalid input. details maps each field to a reason the client can switch on
(required, invalid, not_found, conflict, unsupported, …; see each operation);
_: rejected is a refusal by EVX Software's own save, with its message.