Kontaktperson v2 /api/v2/:prinicpal_slug/business/contacts/:id

Überblick

Klasse / Datentyp
Kontaktperson
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/:prinicpal_slug/business/contacts/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Contact ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                  : "5b126afa56820b41d3b2e7e5",
    "firstname"           : "Petra",
    "lastname"            : "Balmer",
    "email"               : "info@petrabalmer.ch",
    "birthday"            : null,
    "phone_number_1"      : null,
    "phone_number_2"      : null,
    "fax_number"          : null,
    "mobile_phone_number" : null,
    "title"               : null,
    "partner"             : null
  },
  "meta" : {
    "resource_class" : "Business::Contact",
    "id"             : "5b126afa56820b41d3b2e7e5",
    "to"             : {"string" : "Balmer Petra","param" : "5b126afa56820b41d3b2e7e5"},
    "created_at"     : "2018-06-02T12:01:30.508+02:00",
    "updated_at"     : "2018-07-03T07:02:01.662+02:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"},
    "can"            : {"update" : true,"destroy" : true}
  }
}