[{"label":"Latest (0.1.1)","version":"latest"}]
cric-r1

Patch Service By ID

Description

Patch an existing service by providing a JSON patch document in the request body. This is used primarily to provide regular heartbeats from a service to the Service Registry to keep the service discoverable.

Request

Request

URL

URL


patch
https://{api_host}/dms/service/v0alpha1/services/{service_id}
Copy

Path Parameters

Path Parameters

string
service_id Required

ID of the service to be patched. It is the name associated with the service.


Request Body

Request Body

JsonPatchRequest of mimetype application/json Required

Patch document consisting of the operation, path and value to be updated.

Response

Response

204 No Content

Successfully patched the object entry.

Errors

Errors

ProblemDetails
400

Bad request due to errors in request body or in json patch document.


ProblemDetails
404

Service identified by service_id not found.

Code Samples

Code Samples

cURL Command

curl -X PATCH -H "Content-Type: application/json" -d '{}' https://{api_host}/dms/service/v0alpha1/services/{service_id}


[{"label":"Latest (0.1.1)","version":"latest"}]
cric-r1
Feedback

Was this page helpful?