---
title: "PATCH /ver2/MaterialPropertyService.svc/materialProperties/{materialPropertyIdOrName}"
method: PATCH
path: "/ver2/MaterialPropertyService.svc/materialProperties/{materialPropertyIdOrName}"
tags: ["MaterialProperty"]
---

# PATCH /ver2/MaterialPropertyService.svc/materialProperties/{materialPropertyIdOrName}

`PATCH /ver2/MaterialPropertyService.svc/materialProperties/{materialPropertyIdOrName}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/MaterialPropertyService.svc/materialProperties/{materialPropertyIdOrName}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/MaterialPropertyService.svc/materialProperties/:materialPropertyIdOrName/patch.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.materialProperties.updateMaterialProperty
```
[
  "Material Property Name",
  {
    "name": "PFBP Property Name",
    "description": "VBP Description",
    "dataType": "Numeric",
    "formulaHistory": [
      {
        "beginDate": "2012-01-01T20:00:00",
        "Script": "1 \u002B SUM([Chem_MW])"
      },
      {
        "beginDate": "2013-01-01T20:00:00",
        "Script": "1 \u002B [Prop_PFBP1]"
      }
    ]
  },
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `materialPropertyIdOrName` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- UpdateMaterialProperty
  - `materialPropertyInfo` EnvianceRestServicesVer2MaterialActivityMaterialPropertiesMaterialPropertyInfo
    - `id` string, guid
    - `name` string
    - `propertyType` string
    - `description` string
    - `dataType` string
    - `uniqueTag` string
    - `formulaHistory` EnvianceRestServicesVer2MaterialActivityMaterialPropertiesFormulaHistoryInfo[]
      - `id` string, guid
      - `beginDate` string, date-time
      - `script` string

## Response `default`

not available

- string, guid

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
