stubs

Partially update stub by ID

Updates only the provided fields of the stub; omitted fields are preserved

patch/stubs/{uuid}

Path parameters

uuidstring uuid required
Example:51c50050-ec27-4dae-a583-a32ca71a1dd5

ID of stub

Request body

servicestring
methodstring
priorityinteger

Example request

{
  "output": {
    "error": "Message not found",
    "code": 3,
    "delay": "1s"
  }
}

Response

Stub updated successfully

idstring uuid
servicestring required
methodstring required
priorityinteger

Priority of the stub. Higher priority stubs are matched first.

Example response

{
  "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
  "service": "Gripmock",
  "method": "SayHello",
  "output": {
    "error": "Message not found",
    "code": 3,
    "delay": "1s"
  }
}

Changes