deleteSpecifications

Deletes validation specifications for a collection.

The request succeeds even if no specification exist for that collection.

Note: an empty specification is implicitly applied to all collections. In a way, "no specification set" means "all documents are valid".


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/<index>/<collection>/_specifications
Method: DELETE

Other protocols

Copied to clipboard!
{
  "index": "<index>",
  "collection": "<collection>",
  "controller": "collection",
  "action": "deleteSpecifications",
}

Arguments

  • collection: collection name
  • index: index name

Response

Returns a confirmation that the specifications are deleted:

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "index": "<index>",
  "collection": "<collection>",
  "action": "deleteSpecifications",
  "controller": "collection",
  "result": true
}

Possible errors