{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/services/:uid","auth":"required","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"uid\": \"4f6a3a32-6d57-450d-8b46-44abb3b01994\",\n  \"type\": \"TOUR\",\n  \"serviceProviderUID\": \"4f6a3a32-6d57-450d-8b46-44abb3b01578\",\n  \"cateredToType\": \"GUEST_SERVICE\",\n  \"title\": \"San Francisco Tour\",\n  \"description\": \"Explore the city with us.\",\n  \"isActive\": \"1\",\n  \"cancellationPolicy\": \"No refund\",\n  \"partyMaximumSize\": \"10\",\n  \"duration\": \"3\",\n  \"quantityDescription\": \"people\"\n}","name":""},{"status":400,"language":"text","code":"Orbirental API - Bad request.","name":""},{"status":409,"language":"text","code":"Orbirental API - Service Provider not found."}]},"settings":"","examples":{"codes":[]},"method":"put","params":[{"name":"type","type":"string","default":"","desc":"Can be PERSONAL_SERVICE, TRANSPORTATION_SERVICE, CLEANING_SERVICE, GREETING_SERVICE, COOKING_SERVICE, TOUR","required":false,"in":"body","ref":"","_id":"59235f547180400f00049012"},{"name":"cateredToType","type":"string","default":"","desc":"GUEST_SERVICE, HOST_SERVICE","required":false,"in":"body","ref":"","_id":"59235f547180400f00049011"},{"name":"title","type":"string","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f0004900d"},{"name":"description","type":"string","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f0004900c"},{"name":"isActive","type":"boolean","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f0004900b"},{"name":"cancellationPolicy","type":"string","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f0004900a"},{"name":"partyMaximumSize","type":"int","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f00049009"},{"name":"duration","type":"int","default":"","desc":"","required":false,"in":"body","ref":"","_id":"59235f547180400f00049008"},{"name":"uid","type":"string","default":"","desc":"Unique ID of the service","required":true,"in":"path","ref":"","_id":"5923600aa341250f008c701e"},{"name":"hourlyRate","type":"double","default":"","desc":"","required":false,"in":"body","ref":"","_id":"5c6a3035fbdcaf0062752cc8"},{"name":"dailyRate","type":"double","default":"","desc":"","required":false,"in":"body","ref":"","_id":"5c6a3035fbdcaf0062752cc7"},{"name":"price","type":"double","default":"","desc":"","required":false,"in":"body","ref":"","_id":"5c6a3035fbdcaf0062752cc6"},{"name":"defaultPicture","type":"string","default":"","desc":"","required":false,"in":"body","ref":"","_id":"5c7f0a66cc29dd00571d992f"},{"name":"longDescription","type":"string","default":"","desc":"The long description of the service (longText)","required":false,"in":"body","ref":"","_id":"5cd340cba47a4e002ab4f8d9"},{"name":"quantityDescription","type":"string","default":"","desc":"The description of the quantity","required":false,"in":"body","ref":"","_id":"5d791f8f91fe36005c940032"}]},"next":{"description":"","pages":[]},"title":"/services/:uid","type":"endpoint","slug":"servicesuid-1","excerpt":"Edit a new service","body":"","updates":[],"order":80,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5de85dbbb0b885003ddf336b","category":{"sync":{"isSync":false,"url":""},"pages":["5de85dbbb0b885003ddf3339","5de85dbbb0b885003ddf333a","5de85dbbb0b885003ddf333b","5de85dbbb0b885003ddf333c","5de85dbbb0b885003ddf333d","5de85dbbb0b885003ddf333e","5de85dbbb0b885003ddf333f","5de85dbbb0b885003ddf3340","5de85dbbb0b885003ddf3341","5de85dbbb0b885003ddf3342","5de85dbbb0b885003ddf3343","56e77e22911296190096de13","5de85dbbb0b885003ddf3344","5de85dbbb0b885003ddf3345","5de85dbbb0b885003ddf3346","5de85dbbb0b885003ddf3347","5de85dbbb0b885003ddf3348","5de85dbbb0b885003ddf3349","5de85dbbb0b885003ddf334a"],"title":"Documentation","slug":"documentation","order":0,"from_sync":false,"reference":false,"_id":"5de85dbbb0b885003ddf3334","project":"56e3719a591f620e00bf5095","__v":19,"createdAt":"2016-03-12T01:32:11.359Z","version":"5de85dbbb0b885003ddf339f"},"__v":6,"project":"56e3719a591f620e00bf5095","user":"56e371538b32a10e00f79750","createdAt":"2017-05-22T22:02:50.643Z","parentDoc":null,"version":{"version":"1.5","version_clean":"1.5.0","codename":"Domain","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5de85dbbb0b885003ddf3334","56e7b24ad365390e007baeab","5de85dbbb0b885003ddf3335","5de85dbbb0b885003ddf3336","5de85dbbb0b885003ddf3337","5de85dbbb0b885003ddf3338"],"_id":"5de85dbbb0b885003ddf339f","__v":0,"project":"56e3719a591f620e00bf5095","forked_from":"56e3719a591f620e00bf5098","createdAt":"2016-03-12T01:32:10.751Z","releaseDate":"2016-03-12T01:32:10.751Z"},"githubsync":""}

put/services/:uid

Edit a new service

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

uid:
required
string
Unique ID of the service

Body Params

type:
string
Can be PERSONAL_SERVICE, TRANSPORTATION_SERVICE, CLEANING_SERVICE, GREETING_SERVICE, COOKING_SERVICE, TOUR
cateredToType:
string
GUEST_SERVICE, HOST_SERVICE
title:
string
description:
string
isActive:
boolean
cancellationPolicy:
string
partyMaximumSize:
integer
duration:
integer
hourlyRate:
double
dailyRate:
double
price:
double
defaultPicture:
string
longDescription:
string
The long description of the service (longText)
quantityDescription:
string
The description of the quantity

Result Format


User Information

Try It Out

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