Add Support

Add Support

Purpose

To add new support/location to your organization.

Request URL

https://live.membroz.com/api/supports

Request Method

POST
Note
  • Send authkey in https header
  • You can add only one support per POST request.
  • 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/supports
  • API will return inserted support data in JSON format or error message.

Request JSON

Attribute Data Type Mandatory Description
supportname text yes support/location/company name
currency text
country text
timezone text
city text
companyphone text
contactperson text

Sample Request

curl --location --request POST 'https://live.membroz.com/api/supports' \
--header 'authkey: XXXXXXXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
    "supportfor": "Member",
    "attachments": [],
    "_id": "5ecccaa479b40e583fa6387e",
    "subject": "test",
    "memberid": "5e9598377fb65a4204aab603",
    "category": "Support",
    "content": "test desc",
    "response": [],
    "branchid": "5e954c7b9df11624f81e7859",
    "addedby": "5e9598377fb65a4204aab603",
    "onModel": "Member",
    "status": "Open",
    "createdAt": "2020-05-26T07:52:04.544Z",
    "updatedAt": "2020-08-15T16:24:51.676Z"
}'
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n    \"supportfor\": \"Member\",\r\n    \"attachments\": [],\r\n    \"_id\": \"5ecccaa479b40e583fa6387e\",\r\n    \"subject\": \"test\",\r\n    \"memberid\": {\r\n        \"firsttimelogin\": false,\r\n        \"paymentterms\": [\r\n            \"5ec7b001953ef63a4b7daf82\"\r\n        ],\r\n        \"status\": \"active\",\r\n        \"_id\": \"5e9598377fb65a4204aab603\",\r\n        \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n        \"role\": \"59c1fb52b985482b2c610cee\",\r\n        \"age\": 0,\r\n        \"property\": {\r\n            \"dob\": \"1949-10-28T00:29:12.071Z\",\r\n            \"email\": \"jacob.kongsvik@example.com\",\r\n            \"gender\": \"male\",\r\n            \"city\": \"Bruflat\",\r\n            \"country\": \"Norway\",\r\n            \"postcode\": \"319\",\r\n            \"state\": \"Nordland\",\r\n            \"streetname\": \"Hartmanns vei\",\r\n            \"streetnumber\": 2051,\r\n            \"fullname\": \"Mr Jacob Kongsvik\",\r\n            \"mobile_number\": \"93881418\",\r\n            \"mobile_number_2\": \"28305346\"\r\n        },\r\n        \"username\": \"SAMPL10100\",\r\n        \"membernumber\": \"SAMPL10100\",\r\n        \"fullname\": \"Mr Jacob Kongsvik \",\r\n        \"membernumbername\": \"SAMPL10100 | Mr Jacob Kongsvik  | 93881418 | 28305346\",\r\n        \"profilepic\": \"https://randomuser.me/api/portraits/men/6.jpg\",\r\n        \"addons\": [\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc43b1e04ae5db687ec43\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab631\",\r\n                \"membershipstart\": \"2020-05-25T18:42:28.112Z\",\r\n                \"membershipend\": \"2020-06-25T00:00:00.000Z\"\r\n            },\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc4721e04ae5db687ec45\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab619\",\r\n                \"membershipstart\": \"2020-05-25T18:43:22.410Z\",\r\n                \"membershipend\": \"2021-05-25T00:00:00.000Z\"\r\n            }\r\n        ],\r\n        \"anroiddevices\": [\r\n            {\r\n                \"_id\": \"5ecd0ee479b40e583fa638a2\",\r\n                \"deviceid\": \"e24b6f8ea1f0b710\",\r\n                \"registrationid\": \"c1Yc6eFDLJI:APA91bGU35yLz3k0Z3iZvU33Hmai--cAC_OkZs3-C2-DNr6PcxtBLk-f4UKT5EHMxTQPCJ92QzU1PSK4QbrbxAG98K3sSfjUrKIZMCwoGfCZ4fKMzI4AMTkwGE49GBbHBwwwSN6hwAeA\"\r\n            }\r\n        ],\r\n        \"createdAt\": \"2020-04-13T05:26:25.273Z\",\r\n        \"iosdevices\": [],\r\n        \"password\": \"$2a$10$odIB0nqCEmzj1jElflGdq.5fuawjKOAjpOJ5jAqh7SWhqU7mxWFEW\",\r\n        \"updatedAt\": \"2020-08-15T13:52:33.032Z\",\r\n        \"membershipend\": \"2021-05-21T18:30:00.000Z\",\r\n        \"membershipid\": {\r\n            \"seasonupgrade\": [],\r\n            \"addons\": [],\r\n            \"status\": \"active\",\r\n            \"_id\": \"5e9598377fb65a4204aab619\",\r\n            \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n            \"membershipname\": \"Massage - 12M - 24S\",\r\n            \"price\": 13544,\r\n            \"property\": {\r\n                \"membershipname\": \"Massage - 12M - 24S\",\r\n                \"tenure_month\": 12\r\n            },\r\n            \"tenure\": 12,\r\n            \"packagesession\": [],\r\n            \"memberhsipOffers\": []\r\n        },\r\n        \"membershipstart\": \"2020-05-22T18:30:00.000Z\",\r\n        \"wfuserid\": []\r\n    },\r\n    \"category\": \"Support\",\r\n    \"content\": \"test desc\",\r\n    \"response\": [],\r\n    \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n    \"addedby\": \"5e9598377fb65a4204aab603\",\r\n    \"onModel\": \"Member\",\r\n    \"status\": \"Open\",\r\n    \"createdAt\": \"2020-05-26T07:52:04.544Z\",\r\n    \"updatedAt\": \"2020-08-15T16:24:51.676Z\"\r\n}");
Request request = new Request.Builder()
  .url("https://live.membroz.com/api/supports")
  .method("POST", body)
  .addHeader("authkey", "XXXXXXXXXX")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
 "https://live.membroz.com/api/supports",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS =>"{\r\n    \"supportfor\": \"Member\",\r\n    \"attachments\": [],\r\n    \"_id\": \"5ecccaa479b40e583fa6387e\",\r\n    \"subject\": \"test\",\r\n    \"memberid\": {\r\n        \"firsttimelogin\": false,\r\n        \"paymentterms\": [\r\n            \"5ec7b001953ef63a4b7daf82\"\r\n        ],\r\n        \"status\": \"active\",\r\n        \"_id\": \"5e9598377fb65a4204aab603\",\r\n        \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n        \"role\": \"59c1fb52b985482b2c610cee\",\r\n        \"age\": 0,\r\n        \"property\": {\r\n            \"dob\": \"1949-10-28T00:29:12.071Z\",\r\n            \"email\": \"jacob.kongsvik@example.com\",\r\n            \"gender\": \"male\",\r\n            \"city\": \"Bruflat\",\r\n            \"country\": \"Norway\",\r\n            \"postcode\": \"319\",\r\n            \"state\": \"Nordland\",\r\n            \"streetname\": \"Hartmanns vei\",\r\n            \"streetnumber\": 2051,\r\n            \"fullname\": \"Mr Jacob Kongsvik\",\r\n            \"mobile_number\": \"93881418\",\r\n            \"mobile_number_2\": \"28305346\"\r\n        },\r\n        \"username\": \"SAMPL10100\",\r\n        \"membernumber\": \"SAMPL10100\",\r\n        \"fullname\": \"Mr Jacob Kongsvik \",\r\n        \"membernumbername\": \"SAMPL10100 | Mr Jacob Kongsvik  | 93881418 | 28305346\",\r\n        \"profilepic\": \"https://randomuser.me/api/portraits/men/6.jpg\",\r\n        \"addons\": [\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc43b1e04ae5db687ec43\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab631\",\r\n                \"membershipstart\": \"2020-05-25T18:42:28.112Z\",\r\n                \"membershipend\": \"2020-06-25T00:00:00.000Z\"\r\n            },\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc4721e04ae5db687ec45\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab619\",\r\n                \"membershipstart\": \"2020-05-25T18:43:22.410Z\",\r\n                \"membershipend\": \"2021-05-25T00:00:00.000Z\"\r\n            }\r\n        ],\r\n        \"anroiddevices\": [\r\n            {\r\n                \"_id\": \"5ecd0ee479b40e583fa638a2\",\r\n                \"deviceid\": \"e24b6f8ea1f0b710\",\r\n                \"registrationid\": \"c1Yc6eFDLJI:APA91bGU35yLz3k0Z3iZvU33Hmai--cAC_OkZs3-C2-DNr6PcxtBLk-f4UKT5EHMxTQPCJ92QzU1PSK4QbrbxAG98K3sSfjUrKIZMCwoGfCZ4fKMzI4AMTkwGE49GBbHBwwwSN6hwAeA\"\r\n            }\r\n        ],\r\n        \"createdAt\": \"2020-04-13T05:26:25.273Z\",\r\n        \"iosdevices\": [],\r\n        \"password\": \"$2a$10$odIB0nqCEmzj1jElflGdq.5fuawjKOAjpOJ5jAqh7SWhqU7mxWFEW\",\r\n        \"updatedAt\": \"2020-08-15T13:52:33.032Z\",\r\n        \"membershipend\": \"2021-05-21T18:30:00.000Z\",\r\n        \"membershipid\": {\r\n            \"seasonupgrade\": [],\r\n            \"addons\": [],\r\n            \"status\": \"active\",\r\n            \"_id\": \"5e9598377fb65a4204aab619\",\r\n            \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n            \"membershipname\": \"Massage - 12M - 24S\",\r\n            \"price\": 13544,\r\n            \"property\": {\r\n                \"membershipname\": \"Massage - 12M - 24S\",\r\n                \"tenure_month\": 12\r\n            },\r\n            \"tenure\": 12,\r\n            \"packagesession\": [],\r\n            \"memberhsipOffers\": []\r\n        },\r\n        \"membershipstart\": \"2020-05-22T18:30:00.000Z\",\r\n        \"wfuserid\": []\r\n    },\r\n    \"category\": \"Support\",\r\n    \"content\": \"test desc\",\r\n    \"response\": [],\r\n    \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n    \"addedby\": \"5e9598377fb65a4204aab603\",\r\n    \"onModel\": \"Member\",\r\n    \"status\": \"Open\",\r\n    \"createdAt\": \"2020-05-26T07:52:04.544Z\",\r\n    \"updatedAt\": \"2020-08-15T16:24:51.676Z\"\r\n}",
  CURLOPT_HTTPHEADER => array(
    "authkey: XXXXXXXXXX",
    "Content-Type: application/json"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://live.membroz.com/api/supports"

payload = "{\r\n    \"supportfor\": \"Member\",\r\n    \"attachments\": [],\r\n    \"_id\": \"5ecccaa479b40e583fa6387e\",\r\n    \"subject\": \"test\",\r\n    \"memberid\": {\r\n        \"firsttimelogin\": false,\r\n        \"paymentterms\": [\r\n            \"5ec7b001953ef63a4b7daf82\"\r\n        ],\r\n        \"status\": \"active\",\r\n        \"_id\": \"5e9598377fb65a4204aab603\",\r\n        \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n        \"role\": \"59c1fb52b985482b2c610cee\",\r\n        \"age\": 0,\r\n        \"property\": {\r\n            \"dob\": \"1949-10-28T00:29:12.071Z\",\r\n            \"email\": \"jacob.kongsvik@example.com\",\r\n            \"gender\": \"male\",\r\n            \"city\": \"Bruflat\",\r\n            \"country\": \"Norway\",\r\n            \"postcode\": \"319\",\r\n            \"state\": \"Nordland\",\r\n            \"streetname\": \"Hartmanns vei\",\r\n            \"streetnumber\": 2051,\r\n            \"fullname\": \"Mr Jacob Kongsvik\",\r\n            \"mobile_number\": \"93881418\",\r\n            \"mobile_number_2\": \"28305346\"\r\n        },\r\n        \"username\": \"SAMPL10100\",\r\n        \"membernumber\": \"SAMPL10100\",\r\n        \"fullname\": \"Mr Jacob Kongsvik \",\r\n        \"membernumbername\": \"SAMPL10100 | Mr Jacob Kongsvik  | 93881418 | 28305346\",\r\n        \"profilepic\": \"https://randomuser.me/api/portraits/men/6.jpg\",\r\n        \"addons\": [\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc43b1e04ae5db687ec43\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab631\",\r\n                \"membershipstart\": \"2020-05-25T18:42:28.112Z\",\r\n                \"membershipend\": \"2020-06-25T00:00:00.000Z\"\r\n            },\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc4721e04ae5db687ec45\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab619\",\r\n                \"membershipstart\": \"2020-05-25T18:43:22.410Z\",\r\n                \"membershipend\": \"2021-05-25T00:00:00.000Z\"\r\n            }\r\n        ],\r\n        \"anroiddevices\": [\r\n            {\r\n                \"_id\": \"5ecd0ee479b40e583fa638a2\",\r\n                \"deviceid\": \"e24b6f8ea1f0b710\",\r\n                \"registrationid\": \"c1Yc6eFDLJI:APA91bGU35yLz3k0Z3iZvU33Hmai--cAC_OkZs3-C2-DNr6PcxtBLk-f4UKT5EHMxTQPCJ92QzU1PSK4QbrbxAG98K3sSfjUrKIZMCwoGfCZ4fKMzI4AMTkwGE49GBbHBwwwSN6hwAeA\"\r\n            }\r\n        ],\r\n        \"createdAt\": \"2020-04-13T05:26:25.273Z\",\r\n        \"iosdevices\": [],\r\n        \"password\": \"$2a$10$odIB0nqCEmzj1jElflGdq.5fuawjKOAjpOJ5jAqh7SWhqU7mxWFEW\",\r\n        \"updatedAt\": \"2020-08-15T13:52:33.032Z\",\r\n        \"membershipend\": \"2021-05-21T18:30:00.000Z\",\r\n        \"membershipid\": {\r\n            \"seasonupgrade\": [],\r\n            \"addons\": [],\r\n            \"status\": \"active\",\r\n            \"_id\": \"5e9598377fb65a4204aab619\",\r\n            \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n            \"membershipname\": \"Massage - 12M - 24S\",\r\n            \"price\": 13544,\r\n            \"property\": {\r\n                \"membershipname\": \"Massage - 12M - 24S\",\r\n                \"tenure_month\": 12\r\n            },\r\n            \"tenure\": 12,\r\n            \"packagesession\": [],\r\n            \"memberhsipOffers\": []\r\n        },\r\n        \"membershipstart\": \"2020-05-22T18:30:00.000Z\",\r\n        \"wfuserid\": []\r\n    },\r\n    \"category\": \"Support\",\r\n    \"content\": \"test desc\",\r\n    \"response\": [],\r\n    \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n    \"addedby\": \"5e9598377fb65a4204aab603\",\r\n    \"onModel\": \"Member\",\r\n    \"status\": \"Open\",\r\n    \"createdAt\": \"2020-05-26T07:52:04.544Z\",\r\n    \"updatedAt\": \"2020-08-15T16:24:51.676Z\"\r\n}"
headers = {
  'authkey': 'XXXXXXXXXX',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data = payload)

print(response.text.encode('utf8'))
require "uri"
require "net/http"

url = URI("https://live.membroz.com/api/supports")

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

request = Net::HTTP::Post.new(url)
request["authkey"] = "XXXXXXXXXX"
request["Content-Type"] = "application/json"
request.body = "{\r\n    \"supportfor\": \"Member\",\r\n    \"attachments\": [],\r\n    \"_id\": \"5ecccaa479b40e583fa6387e\",\r\n    \"subject\": \"test\",\r\n    \"memberid\": {\r\n        \"firsttimelogin\": false,\r\n        \"paymentterms\": [\r\n            \"5ec7b001953ef63a4b7daf82\"\r\n        ],\r\n        \"status\": \"active\",\r\n        \"_id\": \"5e9598377fb65a4204aab603\",\r\n        \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n        \"role\": \"59c1fb52b985482b2c610cee\",\r\n        \"age\": 0,\r\n        \"property\": {\r\n            \"dob\": \"1949-10-28T00:29:12.071Z\",\r\n            \"email\": \"jacob.kongsvik@example.com\",\r\n            \"gender\": \"male\",\r\n            \"city\": \"Bruflat\",\r\n            \"country\": \"Norway\",\r\n            \"postcode\": \"319\",\r\n            \"state\": \"Nordland\",\r\n            \"streetname\": \"Hartmanns vei\",\r\n            \"streetnumber\": 2051,\r\n            \"fullname\": \"Mr Jacob Kongsvik\",\r\n            \"mobile_number\": \"93881418\",\r\n            \"mobile_number_2\": \"28305346\"\r\n        },\r\n        \"username\": \"SAMPL10100\",\r\n        \"membernumber\": \"SAMPL10100\",\r\n        \"fullname\": \"Mr Jacob Kongsvik \",\r\n        \"membernumbername\": \"SAMPL10100 | Mr Jacob Kongsvik  | 93881418 | 28305346\",\r\n        \"profilepic\": \"https://randomuser.me/api/portraits/men/6.jpg\",\r\n        \"addons\": [\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc43b1e04ae5db687ec43\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab631\",\r\n                \"membershipstart\": \"2020-05-25T18:42:28.112Z\",\r\n                \"membershipend\": \"2020-06-25T00:00:00.000Z\"\r\n            },\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc4721e04ae5db687ec45\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab619\",\r\n                \"membershipstart\": \"2020-05-25T18:43:22.410Z\",\r\n                \"membershipend\": \"2021-05-25T00:00:00.000Z\"\r\n            }\r\n        ],\r\n        \"anroiddevices\": [\r\n            {\r\n                \"_id\": \"5ecd0ee479b40e583fa638a2\",\r\n                \"deviceid\": \"e24b6f8ea1f0b710\",\r\n                \"registrationid\": \"c1Yc6eFDLJI:APA91bGU35yLz3k0Z3iZvU33Hmai--cAC_OkZs3-C2-DNr6PcxtBLk-f4UKT5EHMxTQPCJ92QzU1PSK4QbrbxAG98K3sSfjUrKIZMCwoGfCZ4fKMzI4AMTkwGE49GBbHBwwwSN6hwAeA\"\r\n            }\r\n        ],\r\n        \"createdAt\": \"2020-04-13T05:26:25.273Z\",\r\n        \"iosdevices\": [],\r\n        \"password\": \"$2a$10$odIB0nqCEmzj1jElflGdq.5fuawjKOAjpOJ5jAqh7SWhqU7mxWFEW\",\r\n        \"updatedAt\": \"2020-08-15T13:52:33.032Z\",\r\n        \"membershipend\": \"2021-05-21T18:30:00.000Z\",\r\n        \"membershipid\": {\r\n            \"seasonupgrade\": [],\r\n            \"addons\": [],\r\n            \"status\": \"active\",\r\n            \"_id\": \"5e9598377fb65a4204aab619\",\r\n            \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n            \"membershipname\": \"Massage - 12M - 24S\",\r\n            \"price\": 13544,\r\n            \"property\": {\r\n                \"membershipname\": \"Massage - 12M - 24S\",\r\n                \"tenure_month\": 12\r\n            },\r\n            \"tenure\": 12,\r\n            \"packagesession\": [],\r\n            \"memberhsipOffers\": []\r\n        },\r\n        \"membershipstart\": \"2020-05-22T18:30:00.000Z\",\r\n        \"wfuserid\": []\r\n    },\r\n    \"category\": \"Support\",\r\n    \"content\": \"test desc\",\r\n    \"response\": [],\r\n    \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n    \"addedby\": \"5e9598377fb65a4204aab603\",\r\n    \"onModel\": \"Member\",\r\n    \"status\": \"Open\",\r\n    \"createdAt\": \"2020-05-26T07:52:04.544Z\",\r\n    \"updatedAt\": \"2020-08-15T16:24:51.676Z\"\r\n}"

response = https.request(request)
puts response.read_body
var client = new RestClient("https://live.membroz.com/api/supports");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authkey", "XXXXXXXXXX");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n    \"supportfor\": \"Member\",\r\n    \"attachments\": [],\r\n    \"_id\": \"5ecccaa479b40e583fa6387e\",\r\n    \"subject\": \"test\",\r\n    \"memberid\": {\r\n        \"firsttimelogin\": false,\r\n        \"paymentterms\": [\r\n            \"5ec7b001953ef63a4b7daf82\"\r\n        ],\r\n        \"status\": \"active\",\r\n        \"_id\": \"5e9598377fb65a4204aab603\",\r\n        \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n        \"role\": \"59c1fb52b985482b2c610cee\",\r\n        \"age\": 0,\r\n        \"property\": {\r\n            \"dob\": \"1949-10-28T00:29:12.071Z\",\r\n            \"email\": \"jacob.kongsvik@example.com\",\r\n            \"gender\": \"male\",\r\n            \"city\": \"Bruflat\",\r\n            \"country\": \"Norway\",\r\n            \"postcode\": \"319\",\r\n            \"state\": \"Nordland\",\r\n            \"streetname\": \"Hartmanns vei\",\r\n            \"streetnumber\": 2051,\r\n            \"fullname\": \"Mr Jacob Kongsvik\",\r\n            \"mobile_number\": \"93881418\",\r\n            \"mobile_number_2\": \"28305346\"\r\n        },\r\n        \"username\": \"SAMPL10100\",\r\n        \"membernumber\": \"SAMPL10100\",\r\n        \"fullname\": \"Mr Jacob Kongsvik \",\r\n        \"membernumbername\": \"SAMPL10100 | Mr Jacob Kongsvik  | 93881418 | 28305346\",\r\n        \"profilepic\": \"https://randomuser.me/api/portraits/men/6.jpg\",\r\n        \"addons\": [\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc43b1e04ae5db687ec43\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab631\",\r\n                \"membershipstart\": \"2020-05-25T18:42:28.112Z\",\r\n                \"membershipend\": \"2020-06-25T00:00:00.000Z\"\r\n            },\r\n            {\r\n                \"paymentterms\": [\r\n                    \"5ec7b001953ef63a4b7daf82\"\r\n                ],\r\n                \"_id\": \"5ecbc4721e04ae5db687ec45\",\r\n                \"membershipid\": \"5e9598377fb65a4204aab619\",\r\n                \"membershipstart\": \"2020-05-25T18:43:22.410Z\",\r\n                \"membershipend\": \"2021-05-25T00:00:00.000Z\"\r\n            }\r\n        ],\r\n        \"anroiddevices\": [\r\n            {\r\n                \"_id\": \"5ecd0ee479b40e583fa638a2\",\r\n                \"deviceid\": \"e24b6f8ea1f0b710\",\r\n                \"registrationid\": \"c1Yc6eFDLJI:APA91bGU35yLz3k0Z3iZvU33Hmai--cAC_OkZs3-C2-DNr6PcxtBLk-f4UKT5EHMxTQPCJ92QzU1PSK4QbrbxAG98K3sSfjUrKIZMCwoGfCZ4fKMzI4AMTkwGE49GBbHBwwwSN6hwAeA\"\r\n            }\r\n        ],\r\n        \"createdAt\": \"2020-04-13T05:26:25.273Z\",\r\n        \"iosdevices\": [],\r\n        \"password\": \"$2a$10$odIB0nqCEmzj1jElflGdq.5fuawjKOAjpOJ5jAqh7SWhqU7mxWFEW\",\r\n        \"updatedAt\": \"2020-08-15T13:52:33.032Z\",\r\n        \"membershipend\": \"2021-05-21T18:30:00.000Z\",\r\n        \"membershipid\": {\r\n            \"seasonupgrade\": [],\r\n            \"addons\": [],\r\n            \"status\": \"active\",\r\n            \"_id\": \"5e9598377fb65a4204aab619\",\r\n            \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n            \"membershipname\": \"Massage - 12M - 24S\",\r\n            \"price\": 13544,\r\n            \"property\": {\r\n                \"membershipname\": \"Massage - 12M - 24S\",\r\n                \"tenure_month\": 12\r\n            },\r\n            \"tenure\": 12,\r\n            \"packagesession\": [],\r\n            \"memberhsipOffers\": []\r\n        },\r\n        \"membershipstart\": \"2020-05-22T18:30:00.000Z\",\r\n        \"wfuserid\": []\r\n    },\r\n    \"category\": \"Support\",\r\n    \"content\": \"test desc\",\r\n    \"response\": [],\r\n    \"branchid\": \"5e954c7b9df11624f81e7859\",\r\n    \"addedby\": \"5e9598377fb65a4204aab603\",\r\n    \"onModel\": \"Member\",\r\n    \"status\": \"Open\",\r\n    \"createdAt\": \"2020-05-26T07:52:04.544Z\",\r\n    \"updatedAt\": \"2020-08-15T16:24:51.676Z\"\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

{
    "supportfor": "Member",
    "attachments": [],
    "_id": "5f756a66d698d643837e2f22",
    "subject": "test",
    "memberid": "5e9598377fb65a4204aab603",
    "category": "Support",
    "content": "test desc",
    "response": [],
    "branchid": "5e954c7b9df11624f81e7859",
    "addedby": "5e954c7b9df11624f81e785b",
    "status": "Open",
    "createdAt": "2020-10-01T05:34:30.846Z",
    "updatedAt": "2020-10-01T05:34:30.846Z",
    "updatedby": "5e954c7b9df11624f81e785b"
}
Send Message
Hello!
How can we help!