Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2383

Example to call markAsDeleted command using commands REST api

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    Description

      On the page for REST commands it would be helpful to add an example of how to call the markAsDeleted command.
      Using cURL:

      curl http://localhost:8080/magnoliaAuthor/.rest/commands/v2/markAsDeleted \
        -H "Content-Type: application/json" \
        -X POST --user superuser:superuser \
        --data \
      '{
        "repository": "dam",
        "deleteNode": "google-plus.png",
        "uuid": "0234aab2-9a0a-456a-8f0b-fe0a6d4d83ec"
      }'
      

      For it to work properly you need three parameters for the call context:

      1. repository
      2. the name of the node to be marked
      3. the uuid of the parent node

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin DrĂ¡pela
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR