Update Person

When you call Person Service with PUT  method, you can update a person on next4biz CRM.

Your request body must be contain 4 properties.

  • tenant_slug This is your subdomain on selphiu URL. For example: if your selphiu domain is “acme.selpihu.com” then your tenant_slug is “acme”
  • access_token next4biz CRM provide an access_token via access_token service. Every access_token expires after 15 minutes. Best Practice, you request a new access_token for each service request.
  • channel This is bussines channel id. If you don’t know your bussiness_channels and there’s id numbers. You can learn via bussiness_channel service.
  • person This is an array includes objects as person property is an object contain you want to update person values. You must set id property. But others are arbitrary. You can sent 500 person each request
Name Value
REST-API METHOD Update Person
HTTP METHOD PUT
RESPONSE TYPE JSON
URL https://api.crm.next4biz.com/person/
REQUEST HEAD Accept: application/json; Content-Type: application/json
ENDPOINT DEFINITION
PUT
SAMPLE REQUEST BODY
{
	"tenant_slug": "acme",
	"channel": "555",
	"access_token": "[YOUR ACCESSYTOKEN]",
	"person": [
		{
			"id": "283134",
			"name": "Jhony"
		}
	]
}
SAMPLE RESPONSE BODY
{
	"code": 200,
	"status": "Success",
	"result": [
		{
			"person_id": "283134",
			"name": "Jhony",
			"mname": null,
			"surname": "Doe",
			"full_name": "Jhony Doe",
			"title_text": "IT Manager",
			"resource": null,
			"created_at": "2017-09-04",
			"updated_at": "2017-09-04",
			"linkedin_id": "987654321",
			"linkedin_url": "https://www.linkedin.com/in/jhondoe/",
			"citizenship_number": null,
			"create_owner": null,
			"last_update_owner": null,
			"unique_id": null,
			"channel": {
				"channel_id": "555",
				"channel_name": "Acme Global",
				"channel_slug": "acme-global",
				"is_active": true,
				"created_at": "2015-04-04 14:24:59",
				"lang": "tr",
				"is_builtin": true,
				"business_type": 1
			},
			"custom_data": [],
			"default_address": {
				"person_address_id": "178689",
				"address": "elm sokağı no:16",
				"country": {
					"country_id": 225,
					"country_name": "Turkey",
					"country_code": "TR"
				},
				"district": {
					"district_id": "158",
					"district": "Mengen",
					"city_id": 5030,
					"country_id": 225
				},
				"city": {
					"city_id": 5030,
					"city_name": "Bolu",
					"country_id": 225
				},
				"person_id": "283134"
			},
			"title": {
				"title_id": 13,
				"title_name": "itmanager",
				"tenant": {
					"tenant_id": 555,
					"tenant_name": "Acme Company",
					"tenant_slug": "acme",
					"created_at": "2015-02-16 21:15:06"
				}
			},
			"default_phone": {
				"person_phone_id": "192006",
				"person_id": "283134",
				"created_at": "2017-09-04 15:56:16",
				"phone": "05325553322"
			}
		}
	]
}