Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The schema key value can be viewed on the Schema page

...

Postman application steps

Use the Postman application for hitting the endpoint. Please refer to the following parameters that you will need.

Parameter

Value

Method

DELETE

Headers

KEY: Content-Type
Value: application/json

Headers

KEY: Authorization
Value: {{Insert the Bearer token from the user login}}

Body

Code Block
{
    "filter": {"hospitalName": "Apollo Hospitals"}
}

In the filter object, pass the schema field name that should be used to filter the delete action.

Sample Response

Code Block
languagejson
{
  "ok": 1,
  "writeErrors": [],
  "writeConcernErrors": [],
  "insertedIds": [],
  "nInserted": 0,
  "nUpserted": 0,
  "nMatched": 0,
  "nModified": 0,
  "nRemoved": 12,
  "upserted": [],
  "lastOp": {
    "ts": "7106831085601816578",
    "t": 443
  }
}

...