saintsystems / odata-client-php

OData Client Library for PHP
MIT License
142 stars 101 forks source link

how to update an existing records #87

Closed ravatsinh closed 1 year ago

ravatsinh commented 3 years ago

Can you please give me example how we can update existing record value

i can post to odata than record is got created but not getting how to update an existing records

anderly commented 1 year ago

You can use the patch method for this:

cweiske commented 1 week ago

Example:

$oDataClient->patch(
    'contacts(' . $contactUuid . ')',
    [
        'lastname' => 'Dummy'
    ]
);