1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
2016-09-27 17:15:40 +02:00

22 lines
574 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/5485e521-146b-4be6-83e8-670f2573e63a/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/5485e521-146b-4be6-83e8-670f2573e63a/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Content-Length: 170
Content-Type: application/json
Date: Tue, 27 Sep 2016 10:01:24 GMT
Server: Python/3.5 GNS3/2.0.0dev1
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1474970484,
"name": "snap1",
"project_id": "5485e521-146b-4be6-83e8-670f2573e63a",
"snapshot_id": "1f94aef3-dc18-4b44-abc6-49f04da13aaa"
}