Skip to content

[I] HttpOperationBody

A single payload value, whether declared with @body or inferred from properties.

PropertyModifierTypeDescriptionInherited from
bodyKindreadonly"single"Selects a single structured or scalar payload rather than multipart or file contents.-
containsMetadataAnnotationsreadonlybooleanIf the body contains metadata annotations to ignore. For example @header.HttpBody.containsMetadataAnnotations
contentTypeProperty?readonlyModelPropertyProperty used to set the content type if existsHttpOperationBodyBase.contentTypeProperty
contentTypesreadonlystring[]Content types.HttpOperationBodyBase.contentTypes
isExplicitreadonlybooleanIf the body was explicitly set with @body.HttpBody.isExplicit
property?readonlyModelPropertyThe payload property that defined this body, if any.HttpOperationBodyBase.property
typereadonlyTypePayload type, which may be a derived model containing only the properties assigned to an implicit body rather than the original request or response model.HttpBody.type