{"_id":"57028ea83dd5ef2d008244c9","project":"55843604fd8d910d007b9502","editedParams":true,"editedParams2":true,"parentDoc":null,"user":"558435c2fb52ee0d0015d190","__v":1,"category":{"_id":"55d3c59bfe37111900e536f3","__v":1,"project":"55843604fd8d910d007b9502","pages":["56e093a06bc2690e00930185"],"version":"558444ceafccfd0d00fcb2bb","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-18T23:54:03.994Z","from_sync":false,"order":17,"slug":"graphic-library","title":"Graphic Library"},"version":{"_id":"558444ceafccfd0d00fcb2bb","forked_from":"55843604fd8d910d007b9505","project":"55843604fd8d910d007b9502","__v":60,"createdAt":"2015-06-19T16:35:26.435Z","releaseDate":"2015-06-19T16:35:26.435Z","categories":["558444cfafccfd0d00fcb2bc","558444cfafccfd0d00fcb2bd","55ad4ce733616a0d00599d2e","55ad4cef6aadf20d0015b764","55ad4cf36aadf20d0015b765","55ad4cfb24cf160d0013584f","55ad4d0024cf160d00135850","55ad4d0a24cf160d00135851","55ad4d0d24cf160d00135852","55ad4d126aadf20d0015b766","55ad4d1624cf160d00135853","55ad4d1933616a0d00599d2f","55ad4d2233616a0d00599d30","55ad4d2e24cf160d00135854","55d35b6bf77e6d0d00b1b092","55d3649a0168850d0073f14a","55d366d40168850d0073f15a","55d37fcff77e6d0d00b1b13f","55d383e50168850d0073f1e1","55d3ac26c336ec0d007c2251","55d3c51cb2330119009c31db","55d3c59bfe37111900e536f3","55d3c5a7fe37111900e536f4","55d3c5b4fe37111900e536f5","55d3c5d4fe37111900e536f6","55d3c5d6b2330119009c31df","55d3c5d71f478b170077c164","55d3c687b2330119009c31e4","55d3c6a4fe37111900e536f9","55d3c6befe37111900e536fa","55d3c6e8d2c66f0d00497f93","55d49dcfd7c16b2d007de905","55d4ca8f5082980d0009c79b","55d4cab9c95a3d2f0069ad3d","55d4d279c95a3d2f0069ad60","55d4d9355082980d0009c7e1","55d4f6b5988e130d000b3eb1","55d64dc8e60a2f0d00b88ecb","5627ca43fcbbc621004ec07d","56c64a0d8f98b50d0012c37c","56f1b8b13eb62a34003ea041","56f1b9df4476fb2200795e8c","57f6907dca5e5d1700039ae9","591dd06ca266c423002ec4ca","59234825e465c11900922518","5936f82eaa591e0027638d57","59972f54fd7078001992c136","599c6da8f180820025f14909","59b054613c3e1b0019cf27d9","59b1ceca2d6231003ad73e5f","59b1cf1857911600382e0dc4","59b1cf2730f3d60010c30ef7","59b1cf385d4b89003035441a","59b1cf5857911600382e0dc6","59bc2c4e26ac9b0010a8b753","59bc2ce20b3eb30010657b70","59f0c793ba3bc90030f413ab","59f0cd62f5ecda00325294b9","59fb55a8e8d0f600101aedc3","59fcb05c067f8d0028613f86","5a2af4a1bc5fba00283909c1"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-04T15:56:24.851Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X POST -H 'X-API-TOKEN: yourapitokenhere' \\\n\t-F 'fileUrl=www.example.com/pathtofile' \\\n  -F 'name=Example_Graphic' \\\n  'https://yourdatacenterid.qualtrics.com/API/v3/libraries/UR_1234567890FklUh/graphics'","language":"curl","name":"cURL"}]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"result\": {\n    \"id\": \"IM_6xMwYO5zW4FklUh\"\n  },\n  \"meta\": {\n    \"httpStatus\": \"200 - OK\"\n  }\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"55d36ef8f77e6d0d00b1b0f9","ref":"","in":"path","required":true,"desc":"The Library ID can be one of the following IDs: User ID, Group ID","default":"","type":"string","name":"libraryId"},{"_id":"55d3735fb9ef4435006ded93","ref":"","in":"body","required":true,"desc":"Name of the graphic","default":"","type":"string","name":"name"},{"_id":"55d3735fb9ef4435006ded91","ref":"","in":"body","required":true,"desc":"The url that the graphic will be uploaded from.","default":"","type":"string","name":"fileUrl"},{"_id":"56e0935b1691bc0e00ba5dde","ref":"","in":"body","required":true,"desc":"The content type of the image being uploaded. (See \"Upload Graphic\" for allowed types)","default":"","type":"string","name":"contentType"},{"_id":"55d3735fb9ef4435006ded92","ref":"","in":"body","required":false,"desc":"The folder where the graphic will be located","default":"","type":"string","name":"folder"}],"url":"/v:version/libraries/:libraryId/graphics"},"isReference":false,"order":2,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-1\": \"Content Type\",\n    \"h-0\": \"File Type\",\n    \"0-1\": \"image/jpeg\",\n    \"1-1\": \"image/gif\",\n    \"2-1\": \"image/png\",\n    \"0-0\": \"jpeg\",\n    \"1-0\": \"gif\",\n    \"2-0\": \"png\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]","excerpt":"Upload a new graphic to a library from an external URL","slug":"upload-graphic-from-url-1","type":"endpoint","title":"Upload Graphic From URL"}

postUpload Graphic From URL

Upload a new graphic to a library from an external URL

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

libraryId:
required
string
The Library ID can be one of the following IDs: User ID, Group ID

Body Params

name:
required
string
Name of the graphic
fileUrl:
required
string
The url that the graphic will be uploaded from.
contentType:
required
string
The content type of the image being uploaded. (See "Upload Graphic" for allowed types)
folder:
string
The folder where the graphic will be located

Examples


Result Format


Documentation

[block:parameters] { "data": { "h-1": "Content Type", "h-0": "File Type", "0-1": "image/jpeg", "1-1": "image/gif", "2-1": "image/png", "0-0": "jpeg", "1-0": "gif", "2-0": "png" }, "cols": 2, "rows": 3 } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}