Aller au contenu

delete

Description

Suppression de dossier.

Schéma

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "description": "This json schema gives prototype of action delete",
    "title": "Action delete",
    "type": "object",
    "properties": {
        "action": {
            "const": "delete",
            "description": "Name of the action",
            "type": "string"
        },
        "params": {
            "description": "Parameters of current action",
            "type": "object",
            "properties": {
                "context": {
                    "description": "Context of group onto tuple must be added. Should reference a `modelName[docId]` context.",
                    "type": "string"
                },
                "modelName": {
                    "description": "Name of model",
                    "type": "string"
                },
                "docId": {
                    "description": "Document id",
                    "type": [
                        "integer",
                        "string"
                    ]
                }
            },
            "oneOf": [
                {
                    "required": [
                        "context"
                    ]
                },
                {
                    "required": [
                        "modelName",
                        "docId"
                    ]
                }
            ]
        }
    },
    "required": [
        "action",
        "params"
    ],
    "$id": "https://ewt.epilogic.ch/action.delete.schema.json"
}