getPostTypeCustomFields
Retrieve a post type's custom field schema so you know exactly which fields and allowed values to send when creating or updating posts. Pass either the post type ID or system name.
Instructions
Get custom fields for a post type - Fetch a single posttypecustomfields record. Read-only.
Use when: building a create/update payload for a post type that has custom fields (most do). Returns the exact per-type schema to send.
Required: exactly one of data_id (numeric post-type ID) OR system_name (string, e.g. website_blog_article). When system_name is given the wrapper resolves it to data_id via listPostTypes before calling BD.
Parameter interactions:
data_id- the post type to introspect; get vialistPostTypessystem_name- friendlier alternative; the wrapper does the lookupReturns custom field definitions specific to this post type - use to build create/update payloads for matching posts
Discovering enumerated field values (e.g. post_category): per-post-type dropdowns like post_category are configured by the site admin and live in this schema. There is NO createPostCategory API tool - if the user needs a new dropdown option, that is admin-side work. Call this before a create/update to see the exact allowed values for select/radio/checkbox fields, and pass only those values verbatim.
Returns: { status: "success", message: [{...record}] } - the message array contains 1 record when found. Empty or HTTP 404 when not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_id | No | Post type primary key. Pass this OR `system_name` (exactly one). | |
| system_name | No | Post type system name (e.g. `website_blog_article`). Wrapper resolves to `data_id` via `listPostTypes`. Pass this OR `data_id` (exactly one). |