1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
2016-10-20 10:54:07 +02:00

22 lines
574 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/d7a48971-8970-4028-89f7-057e1bc58042/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/d7a48971-8970-4028-89f7-057e1bc58042/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Content-Length: 170
Content-Type: application/json
Date: Thu, 20 Oct 2016 08:52:58 GMT
Server: Python/3.5 GNS3/2.0.0dev2
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1476953578,
"name": "snap1",
"project_id": "d7a48971-8970-4028-89f7-057e1bc58042",
"snapshot_id": "14e376d2-6cf9-4070-9e0e-d7a1170c5d63"
}