I am trying to update start date on service already assigned to a user.
my script uses:
$ServicesApiUrl = “admin/customers/customer/$CustomerId/internet-services?” . http_build_query($search);
$result = $api->api_call_put($ServicesApiUrl, $ServiceId,
'start_date' => substr($date, 0, -9), ));
This gives me an error 422 and says I must specify ‘login’ ‘status’ ‘quantity’ ‘description’ and 'tariff_id’
If I go ahead and set these attributes it creates a new service for the customer instead of updating the existing one.
how can I update existing service?