{"_id":"5de85dbbb0b885003ddf338c","project":"56e3719a591f620e00bf5095","version":{"_id":"5de85dbbb0b885003ddf339f","__v":0,"project":"56e3719a591f620e00bf5095","forked_from":"56e3719a591f620e00bf5098","createdAt":"2016-03-12T01:32:10.751Z","releaseDate":"2016-03-12T01:32:10.751Z","categories":["5de85dbbb0b885003ddf3334","56e7b24ad365390e007baeab","5de85dbbb0b885003ddf3335","5de85dbbb0b885003ddf3336","5de85dbbb0b885003ddf3337","5de85dbbb0b885003ddf3338"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"Domain","version_clean":"1.5.0","version":"1.5"},"category":{"_id":"5de85dbbb0b885003ddf3334","pages":["5de85dbbb0b885003ddf3339","5de85dbbb0b885003ddf333a","5de85dbbb0b885003ddf333b","5de85dbbb0b885003ddf333c","5de85dbbb0b885003ddf333d","5de85dbbb0b885003ddf333e","5de85dbbb0b885003ddf333f","5de85dbbb0b885003ddf3340","5de85dbbb0b885003ddf3341","5de85dbbb0b885003ddf3342","5de85dbbb0b885003ddf3343","56e77e22911296190096de13","5de85dbbb0b885003ddf3344","5de85dbbb0b885003ddf3345","5de85dbbb0b885003ddf3346","5de85dbbb0b885003ddf3347","5de85dbbb0b885003ddf3348","5de85dbbb0b885003ddf3349","5de85dbbb0b885003ddf334a"],"project":"56e3719a591f620e00bf5095","__v":19,"version":"5de85dbbb0b885003ddf339f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-12T01:32:11.359Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"user":"56e371538b32a10e00f79750","__v":9,"parentDoc":null,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-10-22T08:08:10.143Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -k -X POST \\\n  https://api.orbirental.com/v1/photos \\\n  -H 'Cache-Control: no-cache' \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-ORBIRENTAL-APIKEY: [YOUR_API_KEY]' \\\n  -d '{\n        \"propertyUid\":\"03134e91-5cd9-3333-84ee-67427e112aac\",\n        \"url\":\"https://www.myimages.com/5d742d19-dd57-4525-bc80-fe647e877bd4\"\n}'","language":"curl"}]},"settings":"","results":{"codes":[{"language":"json","code":"{\n  \"uid\": \"d1011595-98eb-4bc7-9e5b-7e914798e56c\",  //the uid of the new photo\n  \"description\": \"description\",\n  \"displayOrder\": 1,\n  \"url\": \"https://orbirental-images.s3.amazonaws.com/d1011595-98eb-4bc7-9e5b-7e914798e56c\"\n}","name":"","status":200},{"status":400,"language":"text","code":"Orbirental API - Bad request.","name":""},{"status":409,"language":"text","code":"Orbirental API - Agency not found."}]},"method":"post","auth":"required","params":[{"_id":"56e792971e071c22001a0488","ref":"","in":"body","required":true,"desc":"URL of the photo to upload from another web location","default":"","type":"string","name":"url"},{"_id":"56e788a19b25270e001d1269","ref":"","in":"body","required":true,"desc":"The unique id of the property","default":"","type":"string","name":"propertyUid"}],"url":"/photos"},"isReference":false,"order":48,"body":"","excerpt":"Create a new photo for the property represented by propertyUid. NOTE that this API is not supported on our sandbox server. It is only supported in production.","slug":"photos","type":"endpoint","title":"/photos"}

post/photos

Create a new photo for the property represented by propertyUid. NOTE that this API is not supported on our sandbox server. It is only supported in production.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

url:
required
string
URL of the photo to upload from another web location
propertyUid:
required
string
The unique id of the property

Examples


Result Format


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 }}