Update Customer

Update Customer

Purpose

To update the prospect/location detail of your organization.

Request URL

https://live.membroz.com/api/prospects/[prospectid]

Request Method

PUT
Note
  • Send authkey in https header
  • You must use only Field API names in the input. You can obtain the field API names from Fields metadata API
  • Enterprise customer can replace domain name with their hosting Url. for example https://app.xyz.com/api/prospects
  • API return updated prospect data in json format or return error message.

Request JSON

Attribute Data Type Mandatory Description
PROSPECTID String Yes The record ID of the prospect you want to update. it is pass in request
/api/prospects/[prospectid]

Sample Request

curl --location --request PUT 'https://live.membroz.com/api/prospects/[prospectid]'\
--header 'authkey:  XXXXXXX'\
--header 'Content-Type: application/json' \
--data-raw ' {
        "_id": "5f632e13d078aaafae412ad1",
        "stage": "NEW",
        "status": "active",
        "fullname": "ravi",
        "branchid": {
            "_id": "5e954c7b9df11624f81e7859",
            "workinghours": {
                "starttime": "8:0",
                "endtime": "20:0",
                "days": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday",
                    "Saturday"
                ]
            },
           
    }'
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, " {\r\n        \"_id\": \"5f632e13d078aaafae412ad1\",\r\n        \"stage\": \"NEW\",\r\n        \"status\": \"active\",\r\n        \"fullname\": \"ravi\",\r\n        \"branchid\": {\r\n            \"_id\": \"5e954c7b9df11624f81e7859\",\r\n            \"workinghours\": {\r\n                \"starttime\": \"8:0\",\r\n                \"endtime\": \"20:0\",\r\n                \"days\": [\r\n                    \"Monday\",\r\n                    \"Tuesday\",\r\n                    \"Wednesday\",\r\n                    \"Thursday\",\r\n                    \"Friday\",\r\n                    \"Saturday\"\r\n                ]\r\n            },\r\n            \"status\": \"active\",\r\n            \"branchname\": \"gym membroz\",\r\n            \"billformat\": {\r\n                \"invoiceformat\": {\r\n                    \"prefix\": \"gymme\",\r\n                    \"header\": \"gym membroz\",\r\n                    \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 100,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"receiptformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 101,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"poformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"prformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"pbformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"cnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"dnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"billingformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n },\r\n \"salesorder\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n }\r\n },\r\n \"solutiontype\": \"Gym, Yoga & Fitness Center\",\r\n \"property\": {\r\n \"country\": \"United States\",\r\n \"demodb\": true,\r\n \"dbbranchid\": \"5e92b6179a3014b1c1644fd8\"\r\n },\r\n \"currency\": \"Indian rupee\",\r\n \"membershipidformat\": \"LLLLLnnnnn\",\r\n \"startingnumber\": \"GYMME10000\",\r\n \"createdAt\": \"2020-04-14T05:39:07.778Z\",\r\n \"updatedAt\": \"2020-09-16T11:57:38.929Z\",\r\n \"billingemail\": \"billing@gmail.com\",\r\n \"branchlogo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1599988282/xqyppcdywjlrcj5awelo.png\",\r\n \"country\": \"IN\",\r\n \"timezone\": \"UTC+05:30 Mumbai, Kolkata, Chennai, New Delhi\",\r\n \"vatnumber\": \"\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\",\r\n \"ismeetingenable\": true,\r\n \"walletsetting\": {\r\n \"paymentType\": [\r\n \"pin\",\r\n \"card\",\r\n \"mobile\"\r\n ],\r\n \"language\": \"English\",\r\n \"iswalletotpenable\": false,\r\n \"walletsymbol\": \"€\",\r\n \"walletAuthEmailId\": \"\"\r\n }\r\n },\r\n \"addedby\": {\r\n \"_id\": \"5e954c7b9df11624f81e785b\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozgym@gmail.com\",\r\n \"password\": \"$2a$10$xE/CIr/hKCKvBaaJwUlZHuV7MFi2Ao.9jwh0RAYpAEfgr3dCfNABq\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [\r\n {\r\n \"_id\": \"5ebd0831a6f1722dbd1a604c\",\r\n \"deviceid\": \"2599db9b1c4af598\"\r\n },\r\n {\r\n \"_id\": \"5ed242a4fa2150bfa757d30a\",\r\n \"deviceid\": \"f7185abc7e9e2480\"\r\n },\r\n {\r\n \"_id\": \"5f0ea9703a10b8350917e075\",\r\n \"deviceid\": \"57c3fb83d15813a2\"\r\n },\r\n {\r\n \"_id\": \"5f215bba9179ab5f9bee1245\",\r\n \"deviceid\": \"8310b78d251fd4de\"\r\n },\r\n {\r\n \"_id\": \"5f215ceb9179ab5f9bee1246\",\r\n \"deviceid\": \"e875606486385cb3\"\r\n }\r\n ],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5ed0b4ad1b4f7c7b2677f62f\",\r\n \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Gym\",\r\n \"mobile_number\": null,\r\n \"email\": \"membrozgym@gmail.com\",\r\n \"country\": \"United States\",\r\n \"membrozid\": \"5e954c7b9df11624f81e7859\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-04-14T05:39:07.850Z\",\r\n \"updatedAt\": \"2020-08-24T12:40:01.713Z\",\r\n \"fullname\": \"Membroz Gym \",\r\n \"namenumber\": \"Membroz Gym \"\r\n },\r\n \"password\": \"$2a$10$ooPwffoAiv/ZGbiqe6AiLOCjXSFFDlhoZb5JXwCaQMbD4agY4Js.W\",\r\n \"property\": {\r\n \"fullname\": \"ravi\",\r\n \"mobile_number\": \"4512784512\"\r\n },\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"createdAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\"\r\n }"); Request request = new Request.Builder() .url("https://live.membroz.com/api/prospects/[prospectid]") .method("PUT", body) .addHeader("authkey", " XXXXXXX") .addHeader("Content-Type", "application/json") .build(); Response response = client.newCall(request).execute();
 "https://live.membroz.com/api/prospects/[prospectid]",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS =>" {\r\n        \"_id\": \"5f632e13d078aaafae412ad1\",\r\n        \"stage\": \"NEW\",\r\n        \"status\": \"active\",\r\n        \"fullname\": \"ravi\",\r\n        \"branchid\": {\r\n            \"_id\": \"5e954c7b9df11624f81e7859\",\r\n            \"workinghours\": {\r\n                \"starttime\": \"8:0\",\r\n                \"endtime\": \"20:0\",\r\n                \"days\": [\r\n                    \"Monday\",\r\n                    \"Tuesday\",\r\n                    \"Wednesday\",\r\n                    \"Thursday\",\r\n                    \"Friday\",\r\n                    \"Saturday\"\r\n                ]\r\n            },\r\n            \"status\": \"active\",\r\n            \"branchname\": \"gym membroz\",\r\n            \"billformat\": {\r\n                \"invoiceformat\": {\r\n                    \"prefix\": \"gymme\",\r\n                    \"header\": \"gym membroz\",\r\n                    \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 100,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"receiptformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 101,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"poformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"prformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"pbformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"cnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"dnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"billingformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n },\r\n \"salesorder\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n }\r\n },\r\n \"solutiontype\": \"Gym, Yoga & Fitness Center\",\r\n \"property\": {\r\n \"country\": \"United States\",\r\n \"demodb\": true,\r\n \"dbbranchid\": \"5e92b6179a3014b1c1644fd8\"\r\n },\r\n \"currency\": \"Indian rupee\",\r\n \"membershipidformat\": \"LLLLLnnnnn\",\r\n \"startingnumber\": \"GYMME10000\",\r\n \"createdAt\": \"2020-04-14T05:39:07.778Z\",\r\n \"updatedAt\": \"2020-09-16T11:57:38.929Z\",\r\n \"billingemail\": \"billing@gmail.com\",\r\n \"branchlogo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1599988282/xqyppcdywjlrcj5awelo.png\",\r\n \"country\": \"IN\",\r\n \"timezone\": \"UTC+05:30 Mumbai, Kolkata, Chennai, New Delhi\",\r\n \"vatnumber\": \"\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\",\r\n \"ismeetingenable\": true,\r\n \"walletsetting\": {\r\n \"paymentType\": [\r\n \"pin\",\r\n \"card\",\r\n \"mobile\"\r\n ],\r\n \"language\": \"English\",\r\n \"iswalletotpenable\": false,\r\n \"walletsymbol\": \"€\",\r\n \"walletAuthEmailId\": \"\"\r\n }\r\n },\r\n \"addedby\": {\r\n \"_id\": \"5e954c7b9df11624f81e785b\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozgym@gmail.com\",\r\n \"password\": \"$2a$10$xE/CIr/hKCKvBaaJwUlZHuV7MFi2Ao.9jwh0RAYpAEfgr3dCfNABq\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [\r\n {\r\n \"_id\": \"5ebd0831a6f1722dbd1a604c\",\r\n \"deviceid\": \"2599db9b1c4af598\"\r\n },\r\n {\r\n \"_id\": \"5ed242a4fa2150bfa757d30a\",\r\n \"deviceid\": \"f7185abc7e9e2480\"\r\n },\r\n {\r\n \"_id\": \"5f0ea9703a10b8350917e075\",\r\n \"deviceid\": \"57c3fb83d15813a2\"\r\n },\r\n {\r\n \"_id\": \"5f215bba9179ab5f9bee1245\",\r\n \"deviceid\": \"8310b78d251fd4de\"\r\n },\r\n {\r\n \"_id\": \"5f215ceb9179ab5f9bee1246\",\r\n \"deviceid\": \"e875606486385cb3\"\r\n }\r\n ],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5ed0b4ad1b4f7c7b2677f62f\",\r\n \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Gym\",\r\n \"mobile_number\": null,\r\n \"email\": \"membrozgym@gmail.com\",\r\n \"country\": \"United States\",\r\n \"membrozid\": \"5e954c7b9df11624f81e7859\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-04-14T05:39:07.850Z\",\r\n \"updatedAt\": \"2020-08-24T12:40:01.713Z\",\r\n \"fullname\": \"Membroz Gym \",\r\n \"namenumber\": \"Membroz Gym \"\r\n },\r\n \"password\": \"$2a$10$ooPwffoAiv/ZGbiqe6AiLOCjXSFFDlhoZb5JXwCaQMbD4agY4Js.W\",\r\n \"property\": {\r\n \"fullname\": \"ravi\",\r\n \"mobile_number\": \"4512784512\"\r\n },\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"createdAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\"\r\n }", CURLOPT_HTTPHEADER => array( "authkey: XXXXXXX", "Content-Type: application/json" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
import requests

url = "https://live.membroz.com/api/prospects/[prospectid]"

payload = " {\r\n        \"_id\": \"5f632e13d078aaafae412ad1\",\r\n        \"stage\": \"NEW\",\r\n        \"status\": \"active\",\r\n        \"fullname\": \"ravi\",\r\n        \"branchid\": {\r\n            \"_id\": \"5e954c7b9df11624f81e7859\",\r\n            \"workinghours\": {\r\n                \"starttime\": \"8:0\",\r\n                \"endtime\": \"20:0\",\r\n                \"days\": [\r\n                    \"Monday\",\r\n                    \"Tuesday\",\r\n                    \"Wednesday\",\r\n                    \"Thursday\",\r\n                    \"Friday\",\r\n                    \"Saturday\"\r\n                ]\r\n            },\r\n            \"status\": \"active\",\r\n            \"branchname\": \"gym membroz\",\r\n            \"billformat\": {\r\n                \"invoiceformat\": {\r\n                    \"prefix\": \"gymme\",\r\n                    \"header\": \"gym membroz\",\r\n                    \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 100,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"receiptformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 101,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"poformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"prformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"pbformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"cnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"dnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"billingformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n },\r\n \"salesorder\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n }\r\n },\r\n \"solutiontype\": \"Gym, Yoga & Fitness Center\",\r\n \"property\": {\r\n \"country\": \"United States\",\r\n \"demodb\": true,\r\n \"dbbranchid\": \"5e92b6179a3014b1c1644fd8\"\r\n },\r\n \"currency\": \"Indian rupee\",\r\n \"membershipidformat\": \"LLLLLnnnnn\",\r\n \"startingnumber\": \"GYMME10000\",\r\n \"createdAt\": \"2020-04-14T05:39:07.778Z\",\r\n \"updatedAt\": \"2020-09-16T11:57:38.929Z\",\r\n \"billingemail\": \"billing@gmail.com\",\r\n \"branchlogo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1599988282/xqyppcdywjlrcj5awelo.png\",\r\n \"country\": \"IN\",\r\n \"timezone\": \"UTC+05:30 Mumbai, Kolkata, Chennai, New Delhi\",\r\n \"vatnumber\": \"\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\",\r\n \"ismeetingenable\": true,\r\n \"walletsetting\": {\r\n \"paymentType\": [\r\n \"pin\",\r\n \"card\",\r\n \"mobile\"\r\n ],\r\n \"language\": \"English\",\r\n \"iswalletotpenable\": false,\r\n \"walletsymbol\": \"€\",\r\n \"walletAuthEmailId\": \"\"\r\n }\r\n },\r\n \"addedby\": {\r\n \"_id\": \"5e954c7b9df11624f81e785b\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozgym@gmail.com\",\r\n \"password\": \"$2a$10$xE/CIr/hKCKvBaaJwUlZHuV7MFi2Ao.9jwh0RAYpAEfgr3dCfNABq\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [\r\n {\r\n \"_id\": \"5ebd0831a6f1722dbd1a604c\",\r\n \"deviceid\": \"2599db9b1c4af598\"\r\n },\r\n {\r\n \"_id\": \"5ed242a4fa2150bfa757d30a\",\r\n \"deviceid\": \"f7185abc7e9e2480\"\r\n },\r\n {\r\n \"_id\": \"5f0ea9703a10b8350917e075\",\r\n \"deviceid\": \"57c3fb83d15813a2\"\r\n },\r\n {\r\n \"_id\": \"5f215bba9179ab5f9bee1245\",\r\n \"deviceid\": \"8310b78d251fd4de\"\r\n },\r\n {\r\n \"_id\": \"5f215ceb9179ab5f9bee1246\",\r\n \"deviceid\": \"e875606486385cb3\"\r\n }\r\n ],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5ed0b4ad1b4f7c7b2677f62f\",\r\n \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Gym\",\r\n \"mobile_number\": null,\r\n \"email\": \"membrozgym@gmail.com\",\r\n \"country\": \"United States\",\r\n \"membrozid\": \"5e954c7b9df11624f81e7859\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-04-14T05:39:07.850Z\",\r\n \"updatedAt\": \"2020-08-24T12:40:01.713Z\",\r\n \"fullname\": \"Membroz Gym \",\r\n \"namenumber\": \"Membroz Gym \"\r\n },\r\n \"password\": \"$2a$10$ooPwffoAiv/ZGbiqe6AiLOCjXSFFDlhoZb5JXwCaQMbD4agY4Js.W\",\r\n \"property\": {\r\n \"fullname\": \"ravi\",\r\n \"mobile_number\": \"4512784512\"\r\n },\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"createdAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\"\r\n }" headers = { 'authkey': ' XXXXXXX', 'Content-Type': 'application/json' } response = requests.request("PUT", url, headers=headers, data = payload) print(response.text.encode('utf8'))
require "uri"
require "net/http"

url = URI("https://live.membroz.com/api/prospects/[prospectid]")

https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true

request = Net::HTTP::Put.new(url)
request["authkey"] = " XXXXXXX"
request["Content-Type"] = "application/json"
request.body = " {\r\n        \"_id\": \"5f632e13d078aaafae412ad1\",\r\n        \"stage\": \"NEW\",\r\n        \"status\": \"active\",\r\n        \"fullname\": \"ravi\",\r\n        \"branchid\": {\r\n            \"_id\": \"5e954c7b9df11624f81e7859\",\r\n            \"workinghours\": {\r\n                \"starttime\": \"8:0\",\r\n                \"endtime\": \"20:0\",\r\n                \"days\": [\r\n                    \"Monday\",\r\n                    \"Tuesday\",\r\n                    \"Wednesday\",\r\n                    \"Thursday\",\r\n                    \"Friday\",\r\n                    \"Saturday\"\r\n                ]\r\n            },\r\n            \"status\": \"active\",\r\n            \"branchname\": \"gym membroz\",\r\n            \"billformat\": {\r\n                \"invoiceformat\": {\r\n                    \"prefix\": \"gymme\",\r\n                    \"header\": \"gym membroz\",\r\n                    \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 100,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"receiptformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 101,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"poformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"prformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"pbformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"cnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"dnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"billingformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n },\r\n \"salesorder\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n }\r\n },\r\n \"solutiontype\": \"Gym, Yoga & Fitness Center\",\r\n \"property\": {\r\n \"country\": \"United States\",\r\n \"demodb\": true,\r\n \"dbbranchid\": \"5e92b6179a3014b1c1644fd8\"\r\n },\r\n \"currency\": \"Indian rupee\",\r\n \"membershipidformat\": \"LLLLLnnnnn\",\r\n \"startingnumber\": \"GYMME10000\",\r\n \"createdAt\": \"2020-04-14T05:39:07.778Z\",\r\n \"updatedAt\": \"2020-09-16T11:57:38.929Z\",\r\n \"billingemail\": \"billing@gmail.com\",\r\n \"branchlogo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1599988282/xqyppcdywjlrcj5awelo.png\",\r\n \"country\": \"IN\",\r\n \"timezone\": \"UTC+05:30 Mumbai, Kolkata, Chennai, New Delhi\",\r\n \"vatnumber\": \"\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\",\r\n \"ismeetingenable\": true,\r\n \"walletsetting\": {\r\n \"paymentType\": [\r\n \"pin\",\r\n \"card\",\r\n \"mobile\"\r\n ],\r\n \"language\": \"English\",\r\n \"iswalletotpenable\": false,\r\n \"walletsymbol\": \"€\",\r\n \"walletAuthEmailId\": \"\"\r\n }\r\n },\r\n \"addedby\": {\r\n \"_id\": \"5e954c7b9df11624f81e785b\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozgym@gmail.com\",\r\n \"password\": \"$2a$10$xE/CIr/hKCKvBaaJwUlZHuV7MFi2Ao.9jwh0RAYpAEfgr3dCfNABq\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [\r\n {\r\n \"_id\": \"5ebd0831a6f1722dbd1a604c\",\r\n \"deviceid\": \"2599db9b1c4af598\"\r\n },\r\n {\r\n \"_id\": \"5ed242a4fa2150bfa757d30a\",\r\n \"deviceid\": \"f7185abc7e9e2480\"\r\n },\r\n {\r\n \"_id\": \"5f0ea9703a10b8350917e075\",\r\n \"deviceid\": \"57c3fb83d15813a2\"\r\n },\r\n {\r\n \"_id\": \"5f215bba9179ab5f9bee1245\",\r\n \"deviceid\": \"8310b78d251fd4de\"\r\n },\r\n {\r\n \"_id\": \"5f215ceb9179ab5f9bee1246\",\r\n \"deviceid\": \"e875606486385cb3\"\r\n }\r\n ],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5ed0b4ad1b4f7c7b2677f62f\",\r\n \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Gym\",\r\n \"mobile_number\": null,\r\n \"email\": \"membrozgym@gmail.com\",\r\n \"country\": \"United States\",\r\n \"membrozid\": \"5e954c7b9df11624f81e7859\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-04-14T05:39:07.850Z\",\r\n \"updatedAt\": \"2020-08-24T12:40:01.713Z\",\r\n \"fullname\": \"Membroz Gym \",\r\n \"namenumber\": \"Membroz Gym \"\r\n },\r\n \"password\": \"$2a$10$ooPwffoAiv/ZGbiqe6AiLOCjXSFFDlhoZb5JXwCaQMbD4agY4Js.W\",\r\n \"property\": {\r\n \"fullname\": \"ravi\",\r\n \"mobile_number\": \"4512784512\"\r\n },\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"createdAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\"\r\n }" response = https.request(request) puts response.read_body
var client = new RestClient("https://live.membroz.com/api/prospects/[prospectid]");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("authkey", " XXXXXXX");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", " {\r\n        \"_id\": \"5f632e13d078aaafae412ad1\",\r\n        \"stage\": \"NEW\",\r\n        \"status\": \"active\",\r\n        \"fullname\": \"ravi\",\r\n        \"branchid\": {\r\n            \"_id\": \"5e954c7b9df11624f81e7859\",\r\n            \"workinghours\": {\r\n                \"starttime\": \"8:0\",\r\n                \"endtime\": \"20:0\",\r\n                \"days\": [\r\n                    \"Monday\",\r\n                    \"Tuesday\",\r\n                    \"Wednesday\",\r\n                    \"Thursday\",\r\n                    \"Friday\",\r\n                    \"Saturday\"\r\n                ]\r\n            },\r\n            \"status\": \"active\",\r\n            \"branchname\": \"gym membroz\",\r\n            \"billformat\": {\r\n                \"invoiceformat\": {\r\n                    \"prefix\": \"gymme\",\r\n                    \"header\": \"gym membroz\",\r\n                    \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 100,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"receiptformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\",\r\n \"format\": 101,\r\n \"footerinfo\": \"


\"\r\n },\r\n \"poformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"prformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"pbformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"cnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"dnformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{vendorid.fullname}]

\"\r\n },\r\n \"billingformat\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n },\r\n \"salesorder\": {\r\n \"prefix\": \"gymme\",\r\n \"header\": \"gym membroz\",\r\n \"headerinfo\": \"

$[{memberid.fullname}]

$[{memberid.membernumber}]

\"\r\n }\r\n },\r\n \"solutiontype\": \"Gym, Yoga & Fitness Center\",\r\n \"property\": {\r\n \"country\": \"United States\",\r\n \"demodb\": true,\r\n \"dbbranchid\": \"5e92b6179a3014b1c1644fd8\"\r\n },\r\n \"currency\": \"Indian rupee\",\r\n \"membershipidformat\": \"LLLLLnnnnn\",\r\n \"startingnumber\": \"GYMME10000\",\r\n \"createdAt\": \"2020-04-14T05:39:07.778Z\",\r\n \"updatedAt\": \"2020-09-16T11:57:38.929Z\",\r\n \"billingemail\": \"billing@gmail.com\",\r\n \"branchlogo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1599988282/xqyppcdywjlrcj5awelo.png\",\r\n \"country\": \"IN\",\r\n \"timezone\": \"UTC+05:30 Mumbai, Kolkata, Chennai, New Delhi\",\r\n \"vatnumber\": \"\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\",\r\n \"ismeetingenable\": true,\r\n \"walletsetting\": {\r\n \"paymentType\": [\r\n \"pin\",\r\n \"card\",\r\n \"mobile\"\r\n ],\r\n \"language\": \"English\",\r\n \"iswalletotpenable\": false,\r\n \"walletsymbol\": \"€\",\r\n \"walletAuthEmailId\": \"\"\r\n }\r\n },\r\n \"addedby\": {\r\n \"_id\": \"5e954c7b9df11624f81e785b\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozgym@gmail.com\",\r\n \"password\": \"$2a$10$xE/CIr/hKCKvBaaJwUlZHuV7MFi2Ao.9jwh0RAYpAEfgr3dCfNABq\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [\r\n {\r\n \"_id\": \"5ebd0831a6f1722dbd1a604c\",\r\n \"deviceid\": \"2599db9b1c4af598\"\r\n },\r\n {\r\n \"_id\": \"5ed242a4fa2150bfa757d30a\",\r\n \"deviceid\": \"f7185abc7e9e2480\"\r\n },\r\n {\r\n \"_id\": \"5f0ea9703a10b8350917e075\",\r\n \"deviceid\": \"57c3fb83d15813a2\"\r\n },\r\n {\r\n \"_id\": \"5f215bba9179ab5f9bee1245\",\r\n \"deviceid\": \"8310b78d251fd4de\"\r\n },\r\n {\r\n \"_id\": \"5f215ceb9179ab5f9bee1246\",\r\n \"deviceid\": \"e875606486385cb3\"\r\n }\r\n ],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5ed0b4ad1b4f7c7b2677f62f\",\r\n \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Gym\",\r\n \"mobile_number\": null,\r\n \"email\": \"membrozgym@gmail.com\",\r\n \"country\": \"United States\",\r\n \"membrozid\": \"5e954c7b9df11624f81e7859\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-04-14T05:39:07.850Z\",\r\n \"updatedAt\": \"2020-08-24T12:40:01.713Z\",\r\n \"fullname\": \"Membroz Gym \",\r\n \"namenumber\": \"Membroz Gym \"\r\n },\r\n \"password\": \"$2a$10$ooPwffoAiv/ZGbiqe6AiLOCjXSFFDlhoZb5JXwCaQMbD4agY4Js.W\",\r\n \"property\": {\r\n \"fullname\": \"ravi\",\r\n \"mobile_number\": \"4512784512\"\r\n },\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"createdAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedAt\": \"2020-09-17T09:36:19.196Z\",\r\n \"updatedby\": \"5e954c7b9df11624f81e785b\"\r\n }", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);

Possible Errors

HTTP Status Error Code Message Reason
permission denied 403 You do not have permission

Sample Response

{
    "stage": "NEW",
    "status": "active",
    "_id": "5f6998e5d0835e3764321605",
    "fullname": "ravi ",
   
    "addedby": {
        "isfirstlogin": true,
        "status": "active",
        "_id": "5ece552879b40e583fa63927",
        "username": "membrozrestaurant@gmail.com",
        "password": "$2a$10$Ix3It0Is5zcW2xOGUqcXjOADAw5GjOgjjtR4tGVnY2XoxBDGVY11W",
        "role": "5dd7e27680199f0aecd400b1",
        "anroiddevices": [],
        "iosdevices": [],
        "designationid": "5c9a0e1112b3f913dc5ab3ba",
        "branchid": "5ece552879b40e583fa63925",
        "property": {
            "fullname": "Membroz Restaurant",
            "mobile_number": "43344334",
            "email": "membrozrestaurant@gmail.com",
            "country": "India",
            "membrozid": "5ece552879b40e583fa63925",
            "isadmin": false
        },
        "createdAt": "2020-05-27T11:55:20.808Z",
        "updatedAt": "2020-05-27T11:55:20.808Z",
        "fullname": "Membroz Restaurant ",
        "namenumber": "Membroz Restaurant  | 43344334",
        "salarycomponent": []
    },
    "password": "$2a$10$nz3S0bpgfL4VZxyrcfzzq.nrq/UIIFZwwUGlfAlJ/ba7Vkk9L1KH2",
    "property": {
        "fullname": "ravi",
        "mobile_number": "4512784512"
    },
    "anroiddevices": [],
    "iosdevices": [],
    "createdAt": "2020-09-22T05:59:13.993Z",
    "updatedAt": "2020-09-22T11:13:29.585Z",
    "updatedby": "5e954c7b9df11624f81e785b"
}
Send Message
Hello!
How can we help!