Update Metafield

PUT https://api.ecartapi.com/api/v2/metafields/34854240425

When you update a Metafield Definition using our Metafield resource, please be aware that you cannot update the type property.

Request Body

{"metafield"=>{"name"=>"special note update", "namespace"=>"orderControl", "key"=>"testing", "description"=>"metafield test update", "ownerType"=>"order"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"metafield":{"id":"34854240425","description":"metafield test update","key":"testing","name":"special note update","ownerType":null,"namespace":"app--9176940545--orderControl","type":null}}