1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 01:38:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
2016-11-03 18:20:51 +01:00

22 lines
574 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/4f486b95-604e-43ea-9b44-d6db866aa331/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/4f486b95-604e-43ea-9b44-d6db866aa331/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Content-Length: 170
Content-Type: application/json
Date: Thu, 03 Nov 2016 17:20:04 GMT
Server: Python/3.5 GNS3/2.0.0dev4
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1478193604,
"name": "snap1",
"project_id": "4f486b95-604e-43ea-9b44-d6db866aa331",
"snapshot_id": "9ff3332f-5388-4946-80a7-b81334f6f321"
}