{"_id":"5de85dbbb0b885003ddf336a","__v":12,"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"},"user":"56e371538b32a10e00f79750","githubsync":"","parentDoc":null,"project":"56e3719a591f620e00bf5095","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"},"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-22T21:55:30.828Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"name":"","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  \"longDescription\": \"A long description\",\n  \"quantityDescription\": \"people\"\n}","language":"json","status":200},{"name":"","code":"Orbirental API - Bad request.","language":"text","status":400},{"code":"Orbirental API - Service Provider not found.","language":"text","status":409}]},"settings":"","examples":{"codes":[]},"auth":"required","params":[{"_id":"59235f547180400f00049013","ref":"","in":"body","required":true,"desc":"Unique ID of the service provider","default":"","type":"string","name":"serviceProviderUid"},{"_id":"59235f547180400f0004900d","ref":"","in":"body","required":true,"desc":"","default":"","type":"string","name":"title"},{"_id":"59235f547180400f00049012","ref":"","in":"body","required":true,"desc":"Can be PERSONAL_SERVICE, TRANSPORTATION_SERVICE, CLEANING_SERVICE, GREETING_SERVICE, COOKING_SERVICE, TOUR","default":"","type":"string","name":"type"},{"_id":"59235f547180400f00049011","ref":"","in":"body","required":false,"desc":"GUEST_SERVICE, HOST_SERVICE","default":"","type":"string","name":"cateredToType"},{"_id":"59235f547180400f0004900c","ref":"","in":"body","required":false,"desc":"","default":"","type":"string","name":"description"},{"_id":"59235f547180400f0004900b","ref":"","in":"body","required":false,"desc":"","default":"true","type":"boolean","name":"isActive"},{"_id":"59235f547180400f0004900a","ref":"","in":"body","required":false,"desc":"","default":"","type":"string","name":"cancellationPolicy"},{"_id":"59235f547180400f00049009","ref":"","in":"body","required":false,"desc":"","default":"0","type":"int","name":"partyMaximumSize"},{"_id":"59235f547180400f00049008","ref":"","in":"body","required":false,"desc":"","default":"0","type":"int","name":"duration"},{"_id":"5c6a2f906af6a600424efaf9","ref":"","in":"body","required":false,"desc":"The hourly rate for this service, if charging hourly","default":"","type":"double","name":"hourlyRate"},{"_id":"5c6a2f906af6a600424efaf8","ref":"","in":"body","required":false,"desc":"The daily rate for this service, if charging daily","default":"","type":"double","name":"dailyRate"},{"_id":"5c6a30699f37b301a1134da3","ref":"","in":"body","required":false,"desc":"The final price for this service, if priced this way.","default":"","type":"double","name":"price"},{"_id":"5c7f0a5b70f42e001e2c4c2e","ref":"","in":"body","required":false,"desc":"The image representing this service","default":"","type":"string","name":"defaultPicture"},{"_id":"5cd33f9eb49f0301c38e0004","ref":"","in":"body","required":false,"desc":"The long description of the service (longtext)","default":"","type":"string","name":"longDescription"},{"_id":"5d76f834a641cd0011995035","ref":"","in":"body","required":false,"desc":"The description of the quantity","default":"","type":"string","name":"quantityDescription"}],"url":"/services"},"isReference":false,"order":79,"body":"","excerpt":"Create a new service","slug":"services-1","type":"endpoint","title":"/services"}

post/services

Create a new service

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

serviceProviderUid:
required
string
Unique ID of the service provider
title:
required
string
type:
required
string
Can be PERSONAL_SERVICE, TRANSPORTATION_SERVICE, CLEANING_SERVICE, GREETING_SERVICE, COOKING_SERVICE, TOUR
cateredToType:
string
GUEST_SERVICE, HOST_SERVICE
description:
string
isActive:
booleantrue
cancellationPolicy:
string
partyMaximumSize:
integer0
duration:
integer0
hourlyRate:
double
The hourly rate for this service, if charging hourly
dailyRate:
double
The daily rate for this service, if charging daily
price:
double
The final price for this service, if priced this way.
defaultPicture:
string
The image representing this service
longDescription:
string
The long description of the service (longtext)
quantityDescription:
string
The description of the quantity

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