I have site columns that are managed metadata type that need to be added to a library after it is created using Power Automate action HTTP call to SharePoint. Is there a FieldTypeKind for a taxonomy field? I have the xml schema for the site column. I have scoured Google and this community to find a solution but I am not seeing a solution or answer to a question from a few years ago. The following is what I have but I am receiving the error "A node of type 'PrimitiveValue' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was expected."
Site Address: <My tenant>/sites/<my site>
Method: POST
Uri: _api/web/lists/getByTitle('@{triggerOutputs()?['body/ProjectName/Value']})/fields
Headers: {
"Accept": "application/json;odata=verbose",
"Content-Type": "application/json;odata=verbose"
}
Body: "parameters":{
"__metadata":{
"type": "SP.Field"
},
"FieldTypeKind": 15, "Title": "RetentionStatus", "SchemaXml": "<Field Type="TaxonomyField" DisplayName="RetentionStatus" Description="" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" Group="Retention Columns" StaticName="RetentionStatus" Name="RetentionStatus"></Field>
}
Any assistance will be much appreciated.
Thank you!