Updating a Material (PUT)

To update the material you just made, pass the material's ID and enter new values for any of the keys. (If updating a dynamic field, you'll pass your dynamic field name and value.)

Take a look at the API Reference for more details about the keys you can update.

Your update request could look like this:

curl -L
-X PUT '[Your IP]/api/materials/[ID]'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer [Your JWT Access Token]'
--data-raw '{
    "name": "Modified Material",
    "Info2": "This material has been updated.",
    "materialProperty" : "BASIC"
}'

Keep the material ID you just used handy so you can add it to orders in the next section.