Schema of a custom field attached to a resource.
import { AttachedCustomField } from "@polar-sh/sdk/models/components/attachedcustomfield.js";
let value: AttachedCustomField = {
customFieldId: "<value>",
customField: {
createdAt: new Date("2024-10-12T09:35:12.807Z"),
modifiedAt: new Date("2025-01-25T21:47:47.062Z"),
id: "<value>",
metadata: {
"key": 5948.26,
},
slug: "<value>",
name: "<value>",
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
properties: {},
},
order: 819777,
required: false,
};
Field | Type | Required | Description |
---|---|---|---|
customFieldId |
string | ✔️ | ID of the custom field. |
customField |
components.CustomField | ✔️ | N/A |
order |
number | ✔️ | Order of the custom field in the resource. |
required |
boolean | ✔️ | Whether the value is required for this custom field. |