Core
API v2.x
2

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 #

URL: http://kuzzle:7512/<index>/<collection>/_specifications Method: DELETE

Other protocols #

{  "index": "<index>",  "collection": "<collection>",  "controller": "collection",  "action": "deleteSpecifications", }

Arguments #

  • collection: collection name
  • index: index name

Response #

Returns a confirmation that the specifications are deleted:

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

Possible errors #