PATCH
/
public
/
user
/
service
/
edit
/
{service_id}
curl --request PATCH \
  --url https://api.pingproxies.com/1.0/public/user/service/edit/{service_id} \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-Private-Key: <api-key>' \
  --header 'X-API-Public-Key: <api-key>' \
  --data '{
  "cancel_comment": "<string>",
  "cancel_feedback": "<string>",
  "payment_method_id": "<string>",
  "service_is_automatic_collection": true,
  "service_is_pending_cancellation": true,
  "service_metadata": {}
}'
{
  "edited": [
    "API-1234-5678"
  ],
  "message": "Service successfully edited."
}

Authorizations

X-API-Private-Key
string
header
required

Private API key for user-level authentication.

X-API-Public-Key
string
header
required

Public API key for user-level authentication.

Headers

Content-Type
string
default:application/json
required

Content type for the request body as application/json.

Path Parameters

service_id
string
required

ID of the Service to edit

Body

application/json
Parameters required to edit the service.

The body is of type object.

Response

200 - application/json
Successfully edited the service.

The response is of type object.