{"_id":"56d556d9075dfa0b00be9905","version":{"_id":"56d55014075dfa0b00be98e9","__v":16,"project":"56d55013075dfa0b00be98e6","createdAt":"2016-03-01T08:17:24.051Z","releaseDate":"2016-03-01T08:17:24.051Z","categories":["56d55014075dfa0b00be98ea","56d55036c8c687150071efb3","56d55094b939870b005129e2","56d550ae5acf9f0b00f735d0","56d5537ac8c687150071efbf","573cae191000320e00918252","573cbe15f320ae29009dbd94","5792a0baf967f617000d9e77","5792a0c023106419009c4302","58093f2994bc150f00f2fe47","580940f33c22790f00fd1e98","58094c01e5998d0f00d29b5d","58101442c03f0b0f0097f099","581020f07c59d72500b85add","581032c708d8050f00948d2a","5810e6ca08d8050f00948dcf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Archy","version_clean":"1.0.0","version":"1"},"editedParams":true,"parentDoc":null,"__v":1,"editedParams2":true,"project":"56d55013075dfa0b00be98e6","category":{"_id":"56d55036c8c687150071efb3","pages":["56d555a0b939870b005129f3","56d555c25acf9f0b00f735dc","56d556d9075dfa0b00be9905","56d5571b73dcd20b00fb87fd","56d7fe6e7a04df0b00ddefe8","56d81c859d27560b00a4cbb1"],"__v":6,"version":"56d55014075dfa0b00be98e9","project":"56d55013075dfa0b00be98e6","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-01T08:17:58.951Z","from_sync":false,"order":2,"slug":"wayback-machine","title":"Wayback Machine"},"user":"56d54fd3c8c687150071efb0","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-01T08:46:17.277Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X POST -H \"Content-Type: application/json\" -d '{\"url\": \"google.com\", \"annotation\": {\"id\": \"lst-ib\", \"message\": \"Theres a microphone button in the searchbox\"}}' https://pragma.archivelab.org\n","language":"curl"}]},"method":"post","results":{"codes":[{"status":200,"name":"","code":"{\n \"annotation\": {\n \"annotatedAt\": \"Thu Mar 3 10:54:28 2016\", \n \"hasTarget\": {\n \"hasSource\": {\n \":::at:::id\": \"http://web.archive.org/web/20160303105412/http://www.google.com/\", \n \"originalUrl\": \"http://www.google.com/\"\n }\n }, \n \"id\": \"lst-ib\", \n \"message\": \"Theres a microphone button in the searchbox\"\n }, \n \"domain\": \"www.google.com\", \n \"id\": 15, \n \"path\": \"/\", \n \"protocol\": \"http\", \n \"wayback_id\": \"/web/20160303105412/http://www.google.com/\"\n}","language":"json"},{"name":"","code":"{\n \"error\": \"Page archived as http://web.archive.org/web/20160303105808/http://www.google.com/ but no annotation detected\"\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"56d818ebb20d260b00265665","ref":"","in":"body","required":true,"desc":"The URL to snapshot / archive","default":"","type":"string","name":"url"},{"_id":"56d818ebb20d260b00265664","ref":"","in":"body","required":false,"desc":"An object representing your OpenAnnotation","default":"","type":"object","name":"annotation"}],"url":"/pragma"},"isReference":false,"order":2,"body":"The code for this endpoint is available at https://github.com/ArchiveLabs/pragma.archivelab.org","excerpt":"Create a Wayback snapshot with an (optional) OpenAnnotation","slug":"creating-a-snapshot","type":"endpoint","title":"Creating a Snapshot"}postCreating a Snapshot
Create a Wayback snapshot with an (optional) OpenAnnotation
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Body Params
url:
required
string
The URL to snapshot / archive
annotation:
object
An object representing your OpenAnnotation