{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a custom field in a collection.\n\nField validation is currently not available through the API.\n\nBulk creation of fields is not supported with this endpoint. To add multiple fields at once, include them when you [create the collection.](/data/v2.0.0/reference/cms/collections/create)\n\nRequired scope | `cms:write`\n","properties":{"path":{"type":"object","properties":{"collection_id":{"type":"string","examples":["580e63fc8c9a982ac9b8b745"],"description":"Unique identifier for a Collection"}},"required":["collection_id"],"additionalProperties":false},"body":{"description":"Details about the field of a collection","examples":[{"id":"562ac0395358780a1f5e6fbc","isEditable":true,"type":"RichText","isRequired":false,"displayName":"Post Body","helpText":"Add the body of your post here"}],"oneOf":[{"type":"object","title":"Static Field","required":["type","displayName"],"properties":{"isRequired":{"type":"boolean","description":"define whether a field is required in a collection"},"type":{"type":"string","enum":["Color","DateTime","Email","File","Image","Link","MultiImage","Number","Phone","PlainText","RichText","Switch","VideoLink"],"description":"Choose these appropriate field type for your collection data"},"displayName":{"type":"string","description":"The name of a field"},"helpText":{"type":"string","description":"Additional text to help anyone filling out this field"}},"examples":[{"id":"562ac0395358780a1f5e6fbc","isEditable":true,"type":"RichText","isRequired":false,"displayName":"Post Body","helpText":"Add the body of your post here"}]},{"type":"object","title":"Option Field","required":["type","displayName","metadata"],"properties":{"isRequired":{"type":"boolean","description":"define whether a field is required in a collection"},"type":{"description":"The [Option field type](/data/reference/field-types-item-values#option)","type":"string","enum":["Option"]},"displayName":{"type":"string","description":"The name of a field"},"helpText":{"type":"string","description":"Additional text to help anyone filling out this field"},"metadata":{"type":"object","required":["options"],"description":"The metadata for the Option field.","properties":{"options":{"type":"array","description":"The option values for the Option field.","items":{"type":"object","required":["name"],"description":"A single option value for the Option field.","properties":{"name":{"type":"string","description":"The name of the option"}},"minItems":1,"maxItems":100}}}}},"examples":[{"id":"562ac0395358780a1f5e6fbc","isEditable":true,"type":"Option","isRequired":false,"displayName":"Post Type","helpText":"Add the body of your post here","metadata":{"options":[{"name":"Feature"},{"name":"News"},{"name":"Product Highlight"}]}}]},{"type":"object","title":"Reference Field","required":["type","displayName","metadata"],"properties":{"isRequired":{"type":"boolean","description":"define whether a field is required in a collection"},"type":{"type":"string","enum":["MultiReference","Reference"],"description":"Choose these appropriate field type for your collection data"},"displayName":{"type":"string","description":"The name of a field"},"helpText":{"type":"string","description":"Additional text to help anyone filling out this field"},"metadata":{"type":"object","required":["collectionId"],"properties":{"collectionId":{"type":"string","description":"The unique identifier of the collection"}},"description":"The collectionId for the referenced collection. Only applicable for Reference and MultiReference fields."}},"examples":[{"id":"562ac0395358780a1f5e6fbd","isEditable":true,"type":"Reference","isRequired":false,"displayName":"Author","helpText":"Add the post author here","metadata":{"collectionId":"63692ab61fb2852f582ba8f5"}}]}]}},"required":["path","body"],"additionalProperties":false},"name":"Create Collection Field","id":"webflow.create-field","example":{"path":{"collection_id":"580e63fc8c9a982ac9b8b745"},"body":{"id":"562ac0395358780a1f5e6fbc","isEditable":true,"type":"RichText","isRequired":false,"displayName":"Post Body","helpText":"Add the body of your post here"}},"maxRequests":1,"summary":false}}