POST Agents/Person/CreateDefaultFromCredential
Some tooltip text!
• 15 minutes to read
• 15 minutes to read
POST /api/v1/Agents/Person/CreateDefaultFromCredential
Creates a PersonEntity with default values based on the contactId and credentials.
Query String Parameters
Parameter Name | Type | Description |
---|---|---|
$select | string | Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields. |
POST /api/v1/Agents/Person/CreateDefaultFromCredential?$select=name,department,category/id
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: request
ContactId, CredentialType, CredentialValue, CredentialDisplayValue
Property Name | Type | Description |
---|---|---|
ContactId | Integer | |
CredentialType | String | |
CredentialValue | String | |
CredentialDisplayValue | String |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: PersonEntity
Property Name | Type | Description |
---|---|---|
PersonId | int32 | Primary key |
Firstname | string | First name |
MiddleName | string | Middle name or 'van' etc. |
Lastname | string | Last name |
Mrmrs | string | e.g. Mrs sex_title Use MDO List name "mrmrs" to get list items. |
Title | string | Title |
UpdatedDate | date-time | Last updated date in UTC. |
CreatedDate | date-time | Registered date in UTC. |
BirthDate | date-time | The Person birth date as UTC Date. Year 1 = Null. Year 2 = unknown year. |
CreatedBy | Associate | The user that created the person object |
Emails | array | A collection of the person's emails |
Description | string | The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases |
IsAssociate | bool | Checks if the person object is an associate. The property is read-only. |
PrivatePhones | array | Returns a collection of phone numbers that belong to the contact person. |
Faxes | array | Returns a collection of fax numbers that belong to the contact person. |
MobilePhones | array | Returns a collection of mobile phone numbers that belong to the contact person. |
OfficePhones | array | Returns a collection of office phone numbers that belong to the contact person. |
OtherPhones | array | Returns a collection of pagers that belong to the contact person. |
Position | Position | The position. This is a predefined SuperOffice value, different from Title Use MDO List name "perspos" to get list items. |
UpdatedBy | Associate | The person that last updated the person object |
Contact | Contact | The contact the contact person is registered on. This is required unless the 'MandatoryContactOnPerson' preference is set. Use MDO List name "contact_new" to get list items. |
Country | Country | The country this contact person is located in. Use MDO List name "country" to get list items. |
Interests | array | The person's available and selected interests. Use MDO List name "persint" to get list items. |
PersonNumber | string | Alphanumeric user field |
FullName | string | The person's full name localized to the current culture/country. (internal name used in clients for employees) |
NoMailing | bool | Spam filter. Indicates if this person should retrieve advertising. |
UsePersonAddress | bool | True if the person's address should be used as mailing address, instead of the contact's address. |
Retired | bool | True if the user is retired and should have no rights, not appear in lists, etc. |
Urls | array | The urls related to this person. |
FormalName | string | Get formal name for a person, as used in labels. (Full name + person title + academic title) |
Address | Address | Structure holding formatted address data. The layout of the array structure indicates the layout of the localized address. |
Post3 | string | Postal address, used in Japanese versions only |
Post2 | string | Postal address, used in Japanese versions only |
Post1 | string | Postal address, used in Japanese versions only |
Kanalname | string | Kana last name, used in Japanese versions only |
Kanafname | string | Kana first name, used in Japanese versions only |
CorrespondingAssociate | Associate | The associate corresponding to this person. Will be empty if the person is not a user (internal associate user, external user). |
Category | Category | Person's category. Usually null. Refer to the Contact.Category instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank) Use MDO List name "category" to get list items. |
Business | Business | Person's business - usually blank. Use Contact.Business instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank) Use MDO List name "business" to get list items. |
Associate | Associate | The associate owning this person (similar to contact.Associate) - usually blank. Use the Person.Contact.Associate instead. Intended for use when individual persons are created (i.e. when Person.Contact is blank) Use MDO List name "associate" to get list items. |
Salutation | string | Academic title, populated from Salutation list but can be overwritten with anything at all Use MDO List name "salutation" to get list items. |
ActiveInterests | int32 | The number of active interests. |
SupportAssociate | Associate | Use MDO List name "associate" to get list items. |
TicketPriority | TicketPriority | Use MDO List name "ticketpriority" to get list items. |
CustomerLanguage | CustomerLanguage | Use MDO List name "customerlanguage" to get list items. |
DbiAgentId | int32 | Integration agent (eJournal) |
DbiKey | string | The primary key for the integrated entry in the external datasource. |
DbiLastModified | date-time | When the entry was last modified. |
DbiLastSyncronized | date-time | Last external syncronization. |
SentInfo | int32 | Has information on username/password been sent (ejournal) |
ShowContactTickets | int32 | Should tickets related to the company be shown to this person |
UserInfo | UserInfo | Information about the user if this person is a user. If IsAssociate (e.g. is user is true) the UserInfo will be provided. |
ChatEmails | array | |
InternetPhones | array | |
Source | int32 | How did we get this person? For future integration needs |
ActiveErpLinks | int32 | How many active ERP links are there for this person? |
ShipmentTypes | array | The person's available and selected shipment types. |
Consents | array | The person's available consent information. Missing consents are not deleted. To remove a consent, mark its legalbase as 'WITHDRAWN' |
BounceEmails | array | Email addresses with a positive bounce counter. |
ActiveStatusMonitorId | int32 | Active status monitor identity with the lowest rank for person |
CreatedByFormId | int32 | The form id of the form that created the person |
UserDefinedFields | object | Deprecated: Use {SuperOffice.CRM.Services.PersonEntity.CustomFields} instead. Dictionary of user defined field data. The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234" |
ExtraFields | object | Deprecated: Use {SuperOffice.CRM.Services.PersonEntity.CustomFields} instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc. |
CustomFields | object | Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual {SuperOffice.CRM.Services.PersonEntity.ExtraFields} and UserDefinedFields properties are deprecated in favor of this combined collection. |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/Person/CreateDefaultFromCredential
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv
Content-Type: application/json; charset=utf-8
{
"ContactId": 596,
"CredentialType": "exercitationem",
"CredentialValue": "facere",
"CredentialDisplayValue": "non"
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"PersonId": 149,
"Firstname": "Hilma",
"MiddleName": "Hegmann LLC",
"Lastname": "Smitham",
"Mrmrs": "repellat",
"Title": "ea",
"UpdatedDate": "2025-02-21T16:32:39.5084251+01:00",
"CreatedDate": "2021-04-23T16:32:39.5084251+02:00",
"BirthDate": "2016-09-15T16:32:39.5084251+02:00",
"CreatedBy": null,
"Emails": [
{
"Value": "consequuntur",
"StrippedValue": "dolorem",
"Description": "Face to face high-level paradigm",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 519
}
}
},
{
"Value": "consequuntur",
"StrippedValue": "dolorem",
"Description": "Face to face high-level paradigm",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 519
}
}
}
],
"Description": "Exclusive hybrid open architecture",
"IsAssociate": false,
"PrivatePhones": [
{
"Value": "aliquam",
"StrippedValue": "nihil",
"Description": "Quality-focused bi-directional contingency",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 793
}
}
},
{
"Value": "aliquam",
"StrippedValue": "nihil",
"Description": "Quality-focused bi-directional contingency",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 793
}
}
}
],
"Faxes": [
{
"Value": "eius",
"StrippedValue": "vero",
"Description": "Phased incremental solution",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 531
}
}
},
{
"Value": "eius",
"StrippedValue": "vero",
"Description": "Phased incremental solution",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 531
}
}
}
],
"MobilePhones": [
{
"Value": "sit",
"StrippedValue": "consectetur",
"Description": "Expanded tertiary capacity",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 68
}
}
},
{
"Value": "sit",
"StrippedValue": "consectetur",
"Description": "Expanded tertiary capacity",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 68
}
}
}
],
"OfficePhones": [
{
"Value": "eos",
"StrippedValue": "earum",
"Description": "User-centric client-server knowledge base",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 711
}
}
},
{
"Value": "eos",
"StrippedValue": "earum",
"Description": "User-centric client-server knowledge base",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 711
}
}
}
],
"OtherPhones": [
{
"Value": "aut",
"StrippedValue": "impedit",
"Description": "Organized mission-critical website",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 21
}
}
},
{
"Value": "aut",
"StrippedValue": "impedit",
"Description": "Organized mission-critical website",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 21
}
}
}
],
"Position": null,
"UpdatedBy": null,
"Contact": null,
"Country": null,
"Interests": [
{
"Id": 351,
"Name": "Gorczany, Gutkowski and Kshlerin",
"ToolTip": "Illo quo nihil ut quae facere.",
"Deleted": true,
"Rank": 174,
"Type": "recusandae",
"ColorBlock": 152,
"IconHint": "officiis",
"Selected": true,
"LastChanged": "2006-11-08T16:32:39.5084251+01:00",
"ChildItems": [
{},
{}
],
"ExtraInfo": "rerum",
"StyleHint": "sint",
"Hidden": true,
"FullName": "Prof. Kyra Greg Greenfelder Jr.",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 36
}
}
}
],
"PersonNumber": "454344",
"FullName": "Ransom Rohan",
"NoMailing": false,
"UsePersonAddress": false,
"Retired": false,
"Urls": [
{
"Value": "quia",
"StrippedValue": "id",
"Description": "Streamlined client-driven core",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 331
}
}
},
{
"Value": "quia",
"StrippedValue": "id",
"Description": "Streamlined client-driven core",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 331
}
}
}
],
"FormalName": "Gulgowski-O'Connell",
"Address": null,
"Post3": "commodi",
"Post2": "est",
"Post1": "velit",
"Kanalname": "in",
"Kanafname": "consequatur",
"CorrespondingAssociate": null,
"Category": null,
"Business": null,
"Associate": null,
"Salutation": "praesentium",
"ActiveInterests": 757,
"SupportAssociate": null,
"TicketPriority": null,
"CustomerLanguage": null,
"DbiAgentId": 257,
"DbiKey": "tempore",
"DbiLastModified": "2019-10-16T16:32:39.5084251+02:00",
"DbiLastSyncronized": "2020-07-20T16:32:39.5084251+02:00",
"SentInfo": 394,
"ShowContactTickets": 764,
"UserInfo": null,
"ChatEmails": [
{
"Value": "dolore",
"StrippedValue": "doloremque",
"Description": "Optional optimizing Graphic Interface",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 834
}
}
},
{
"Value": "dolore",
"StrippedValue": "doloremque",
"Description": "Optional optimizing Graphic Interface",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 834
}
}
}
],
"InternetPhones": [
{
"Value": "labore",
"StrippedValue": "officiis",
"Description": "Re-contextualized didactic interface",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 841
}
}
},
{
"Value": "labore",
"StrippedValue": "officiis",
"Description": "Re-contextualized didactic interface",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 841
}
}
}
],
"Source": 644,
"ActiveErpLinks": 953,
"ShipmentTypes": [
{
"Id": 570,
"Name": "Bartoletti, Ernser and Heller",
"ToolTip": "Molestiae itaque tempore dolorem.",
"Deleted": false,
"Rank": 761,
"Type": "quia",
"ColorBlock": 532,
"IconHint": "beatae",
"Selected": false,
"LastChanged": "2019-11-13T16:32:39.5084251+01:00",
"ChildItems": [
{},
{}
],
"ExtraInfo": "sint",
"StyleHint": "aut",
"Hidden": false,
"FullName": "Elouise Fritsch",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 187
}
}
}
],
"Consents": [
{
"ConsentPersonId": 931,
"Comment": "veritatis",
"Registered": "2010-04-04T16:32:39.5084251+02:00",
"RegisteredAssociateId": 41,
"Updated": "1998-03-13T16:32:39.5084251+01:00",
"UpdatedAssociateId": 340,
"LegalBaseId": 961,
"LegalBaseKey": "quis",
"LegalBaseName": "Leannon Group",
"ConsentPurposeId": 137,
"ConsentPurposeKey": "aut",
"ConsentPurposeName": "Kreiger Inc and Sons",
"ConsentSourceId": 21,
"ConsentSourceKey": "dicta",
"ConsentSourceName": "Moore, Bernier and Erdman",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 297
}
}
}
],
"BounceEmails": [
"shaniya_bogan@erdman.info",
"sylvia_windler@bechtelar.com"
],
"ActiveStatusMonitorId": 32,
"CreatedByFormId": 115,
"UserDefinedFields": {
"SuperOffice:1": "True",
"SuperOffice:2": "525954478"
},
"ExtraFields": {
"ExtraFields1": "enim",
"ExtraFields2": "quod"
},
"CustomFields": {
"CustomFields1": "quod",
"CustomFields2": "natus"
},
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 645
}
}
}