Update CMS Collection Custom Fields (Rich-text) through webflow API

I want to update the Custom field information through webflow API but couldn’t see anything in the dev api for it.
Is it possible? If yes how?

Hi @aduttya! Great question - check this page out for more on updating a Collection Field here:
https://developers.webflow.com/data/reference/update-field
(note, you may want to call the GET Collection Details API to retrieve the field ID for your Rich Text Field, which you’ll need to update the field)

If you want to update your Rich Text Field on an individual Collection Item, see this page:
https://docs.developers.webflow.com/data/reference/update-item

You can pass in under the fieldData object in the request the key/value pair of the slug-name of the rich text field, and the new value (which can be stringified HTML).

I need to create/update the custom fields through API, At the following API reference I can use name and slug but in the CMS there are other fields like Reference, Multi-Reference which I can’t find info how to update.
https://developers.webflow.com/data/reference/create-item

The creation of a collection is possible through API but there I also don’t see how to add the additional fields (above mentioned).

This page may be of assistance with respect to how to update different types of fields, including ref/multi-ref:
https://developers.webflow.com/data/reference/field-types-item-values#set–multi-reference

And for example, to update a rich text field called “Free Text” (whose slug name is free-text), my payload for the fieldData in creating an item might look something like:

  "fieldData": {
    "name": "Blog Post 1",
    "slug": "blog-post-1",
    "free-text": "<h1>test</h1>"
  }
1 Like

I have tested it it works.
The other doubt I have is when I create a collection using
https://developers.webflow.com/data/reference/create-collection
endpoint I don’t see any option for custom field here.

How to Add a custom field while creating collection with API?

This might help you. Create Collection Field