"code": "BadRequest_MethodNotAllowed",
"message": "'POST' requests for 'dimensionSetLines' of EdmType 'Entity' are not allowed within Dynamics 365 Business Central OData web services."
postdataje.Add("id", "fce3b93e-5ce6-ee11-a201-6045bdc89dad") 'id of dimension
postdataje.Add("code", "DEPARTMENT")
postdataje.Add("parentId", "2588145e-9029-ef11-9f88-000d3a708259") ''id of jourrnal
postdataje.Add("parentType", "Journal Line")
postdataje.Add("displayName", "Department")
postdataje.Add("valueId", "17b4ffa1-511f-ef11-9f88-000d3a74de60") ''id of dimension value
postdataje.Add("valueCode", "CHEM")
postdataje.Add("valueDisplayName", "Chemistry")
httpWebRequest.Headers.Add("OData-Version", "4.0")
httpWebRequest.Headers.Add("if-match-to", "*")