These are chat archives for allegro/ralph

8th
Jun 2017
Pete
@kasim1r
Jun 08 2017 14:45
Hey guys, how would I delete an object via API? Let's say I did a search for memory like this:
api/memory/?limit=10&offset=0&base_object=6
and it returns one id
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 1,
            "url": "https://ralph.my.domain/api/memory/1/",
            "ui_url": "https://ralph.my.domain/assets/memory/1/",
            "created": "2016-10-05T18:40:58.994684",
            "modified": "2016-10-05T18:40:58.994707",
            "model_name": "vmem",
            "size": 2048,
            "speed": null,
            "base_object": {
                "id": 6,
                "url": "https://ralph.my.domain/api/base-objects/6/",
                "tags": [],
                "created": "2016-09-14T17:57:03.729526",
                "modified": "2016-10-05T18:40:58.991509",
                "remarks": "",
                "parent": "https://ralph.my.domain/api/base-objects/2/",
                "service_env": "https://ralph.my.domain/api/services-environments/3/",
                "configuration_path": null
            }
        }
    ]
how would I delete this memory instance?
Pete
@kasim1r
Jun 08 2017 15:13
ah, forget it. I found method DELETE in the documentation
but thanks for reading :P
✪ vi4m Marcin Kliks
@vi4m
Jun 08 2017 19:40
:-)
You did it :-)
I plan to add section of "Companies using Ralph" to the webpage. Anyone interested to be proudly listed in this section ? :-)