{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/postman/main/json-schema/postman-create-component-schema.json", "title": "createComponent", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/postman-components-api-openapi.yml#/components/schemas/createComponent", "type": "object", "properties": { "name": { "type": "string", "description": "The component's name. This must be unique within the team and can only contain letters, digits, hyphens, underscores, and periods and can't exceed 60 characters." }, "type": { "$ref": "#/$defs/componentType" }, "content": { "type": "string", "description": "The component's content, up to a maximum of 500 KB (UTF-8)." }, "format": { "$ref": "#/$defs/componentContentFormatData", "default": "YAML", "description": "The component's content format. Defaults to YAML." } }, "required": [ "name", "type", "content" ], "$defs": { "componentContentFormatData": { "type": "string", "enum": [ "JSON", "YAML" ], "description": "The component's content format.", "title": "componentContentFormatData" }, "componentType": { "type": "string", "enum": [ "OAS2", "OAS3", "OAS3_1" ], "description": "The component's type. Corresponds to the specification that the component's content adheres to.", "title": "componentType" } } }