Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

This method updates leads. A single lead can be updated by each call and only if it is not with status Won or Lost. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

The identifier of the Lead to be updated. The allowed lead identifier fields are the following:

...

contact_email

(optional)

...

contact_phone

(optional)

...

The phone of the contact that will be specified on the updated lead

Tip

Available from CRM.COM R11.1.0

...

description

(optional)

...

probability_to_win

(optional)

...

importance

(optional)

...

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

...

priority

(optional)

...

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

...

target_amount

(optional)

...

status_identifier

(optional)

...

The status of the lead. The allowed lead status identifier fields are the following:

...

lost_reason_identifier

(mandatory on conditions)

...

The reason that the lead was lost. This information is mandatory and applicable only if the lead is updated in a status classified as lost. The allowed lead lost reason identifier fields are the following:

...

Tip

Deprecated from CRM.COM R11.1.0

...

billing_address_identifier

(mandatory on conditions)

...


Excerpt

This method updates leads. A single lead can be updated by each call and only if it is not with status Won or Lost. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.

Resource URL

Parameters

...

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request: http://host_name/crmapi/rest/v2/leads/update

Body:

...

languagejs

...

Name

Type

Description

token

String

The token retrieved from the login method

lead_identifier
(mandatory)
Lead Identifier

The identifier of the Lead to be updated. The allowed lead identifier fields are the following:

Include Page
V4:

address

lead_identifier
V4:

address

lead_identifier

TipDeprecated

contact_email

(optional)

StringThe email address of the contact that will be specified on the updated lead

contact_phone

(optional)

String

The phone of the contact that will be specified on the updated lead

Tip

Available from CRM.COM R11.1.0

.

category_identifier


description

(optional)

Lead Category IdentifierThe category
StringA description of the
lead. The allowed
lead
category identifier fields are the following: Include PageV4:lead_category_identifierV4:lead_category_identifierowned_by_group_identifier

probability_to_win

(optional)

NumberThe probability to win the retrieved lead which can vary from 0 to 100

importance

(optional)

Lead Importance

The

identifier of the owned by group informationThe owned by group information of the lead. The allowed group identifier

importance related with the leads that should be returned as a result. The allowed lead importance fields are the following:

Include PageV4:group_identifierV4:group_identifierprivacy_level

IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

target_amount

(optional)

NumberThe amount that is predicted to be gained when winning the retrieved lead

status_identifier

(optional)

The identifier of the privacy level
Lead Status Identifier

The

privacy level

status of the lead. The allowed

privacy level

lead status identifier fields are the following:

Include Page
V4:

privacy

lead_

level

status_identifier
V4:

privacy

lead_

level

status_identifier

udf

lost_

string

reason_

1 

identifier

(

optional)String

User Defined Field of type String

udf_string_2 

(optional)

String

User Defined Field of type String

udf_string_3 

(optional)

String

User Defined Field of type String

udf_string_4 

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6 

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1 

(optional)

Date

User Defined Field of type Date

udf_date_2 

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

start_date
(optional)

DateThe date that the lead started

expected_completion_date
(optional)

DateThe date that the lead is expected to be completed. It is automatically calculated if estimate completion time is specified.estimated_completion_time
(optional)Time Period ObjectThe time that is estimated to complete the lead , measured in minutes, hours, days, weeks, years. It is automatically calculated if expected completion date is specified.

source

(optional)

Lead SourceInformation related with the source of the leadassigned_to
(optional)Assigned to objectThe assignment information for the lead

competitors_set

(optional)

Set of Lead Competitors

A lists of all possible competitors that can reach the same Lead for the same product/goal.

Include PageV4:Web API - Updating SetsV4:Web API - Updating Sets

users_set

(optional)

Set of Lead Users

A list of users that are set as the team involved with the lead

Include PageV4:Web API - Updating SetsV4:Web API - Updating Sets

services_set

(optional)

Set of lead Services Objects

A list of services for which the lead was taken for

Include PageV4:Web API - Updating SetsV4:Web API - Updating Sets

physical_goods_set

(optional)

Set of lead Physical Goods Objects

A list of the physical goods for which the lead was taken for

Include PageV4:Web API - Updating SetsV4:Web API - Updating Sets

fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

...

mandatory on conditions)

Lead Lost Reason Identifier

The reason that the lead was lost. This information is mandatory and applicable only if the lead is updated in a status classified as lost. The allowed lead lost reason identifier fields are the following:

Include Page
V4:lead_lost_reason_identifier
V4:lead_lost_reason_identifier

Tip

Deprecated from CRM.COM R11.1.0


billing_address_identifier

(mandatory on conditions)

Address identifier

The address that will be used as the accounts receivable billing address in case that the lead is updated to a status classified as won. This information is mandatory and applicable only if the lead is updated in a status classified as won. The allowed address identifier fields are the following:

Include Page
V4:address_identifier
V4:address_identifier

Tip

Deprecated from CRM.COM R11.1.0.


category_identifier

(optional)

Lead Category Identifier

The category of the lead. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

owned_by_group_identifier
(optional)

The identifier of the owned by group information

The owned by group information of the lead. The allowed group identifier fields are the following:

Include Page
V4:group_identifier
V4:group_identifier

privacy_level_identifier
(optional)

The identifier of the privacy level

The privacy level of the lead. The allowed privacy level identifier fields are the following:

Include Page
V4:privacy_level_identifier
V4:privacy_level_identifier

Tip

Deprecated from CRM.COM R18.0.0


lead_ownerUser Identifier

The user which owns the lead. The allowed user identifier fields are the following:

Include Page
V4:user_identifier
V4:user_identifier

Tip

Available from CRM.COM R15.0.0


udf_string_1 

(optional)

String

User Defined Field of type String

udf_string_2 

(optional)

String

User Defined Field of type String

udf_string_3 

(optional)

String

User Defined Field of type String

udf_string_4 

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6 

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1 

(optional)

Date

User Defined Field of type Date

udf_date_2 

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

start_date
(optional)

DateThe date that the lead started

expected_completion_date
(optional)

DateThe date that the lead is expected to be completed. It is automatically calculated if estimate completion time is specified.
estimated_completion_time
(optional)
Time Period ObjectThe time that is estimated to complete the lead , measured in minutes, hours, days, weeks, years. It is automatically calculated if expected completion date is specified.

source

(optional)

Lead SourceInformation related with the source of the lead
assigned_to
(optional)
Assigned to objectThe assignment information for the lead

competitors_set

(optional)

Set of Lead Competitors

A lists of all possible competitors that can reach the same Lead for the same product/goal.

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

Tip

From CRM.COM R18.0.0, Competitors refer to Contact Information Company


users_set

(optional)

Set of Lead Users

A list of users that are set as the team involved with the lead

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

products_set

(optional)

Set of Lead Products Objects

A list of products for which the lead was taken for

Tip

Available from CRM.COM R18.0.0


services_set

(optional)

Set of lead Services Objects

A list of services for which the lead was taken for

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

Tip

Deprecated from CRM.COM R18.0.0


physical_goods_set

(optional)

Set of lead Physical Goods Objects

A list of the physical goods for which the lead was taken for

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

Tip

Deprecated from CRM.COM R18.0.0


subscription_packages

(optional)

Set of lead Subscription Packages Objects

A list of the subscription packages for which the lead was taken for

Tip

Available from CRM.COM R14


Tip

Deprecated from CRM.COM R18.0.0


fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

Anchor
lead_updated referred objects parameters
lead_updated referred objects parameters
Referred Parameter Objects Data

Include Page
V4:time_period_parameters
V4:time_period_parameters

Include Page
V4:lead_source_parameters
V4:lead_source_parameters

Include Page
V4:assigned_to_parameters
V4:assigned_to_parameters

Include Page
V4:lead_competitor_update_parameters
V4:lead_competitor_update_parameters

Include Page
V4:lead_user_update_parameters
V4:lead_user_update_parameters

Include Page
V4:lead_service_update_parameters
V4:lead_service_update_parameters

Include Page
V4:lead_physical_goods_update_parameters
V4:lead_physical_goods_update_parameters

Include Page
V4:lead_product_parameters
V4:lead_product_parameters

Include Page
V4:lead_subscription_packages_parameters
V4:lead_subscription_packages_parameters

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: POST


Request: http://host_name/crmapi/rest/v2/leads/update

Body:

Code Block
languagejs
{
    "token" : "21770F5513004B85AD43AE54A02024B4",
    "lead_identifier" : {"number" : "69"},
    "status_identifier" : { "name" : "Won"},
    "billing_address_identifier" : { "TYPE" : "HOME"},
    "competitors_set" :
    [
        {
            "action" : "add",
            "competitor_identifier" : { "name" : "Competitor 2"}
        },
        {
            "action" : "remove",
            "lead_competitor_identifier" : { "competitor_identifier" : { "name" : "Competitor 1"} }
        }
    ]
}


Response:

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       {
           "actual_completion_date": null,
           "services_set":
           [
               {
                   "product_type": null,
                   "id": "4F8DD6FB68E24919A5F8815E7AFD7C33",
                   "product":
                   {
                       "product_type":
                       {
                           "physical_good_type": null,
                           "service_type": "TERMED",
                           "used_for_provisioning": true,
                           "composition_method": "FLAT",
                           "classification": "SERVICES",
                           "name": "Subscription Packages",
                           "id": "BC954969D3172372D498D3BB2BA590A0",
                           "description": "Subscription main packages",
                           "alternative_code": "SP"
                       },
                       "id": "3FACF409E7E091F96C52318BAD1AEF1C",
                       "description": "Local + Documentaries + Sport",
                       "code": "Local + Documentaries + Sport",
                       "alternative_code": "LDS"
                   }
               },
               {
                   "product_type":
                   {
                       "physical_good_type": null,
                       "service_type": "TERMED",
                       "used_for_provisioning": true,
                       "composition_method": "FLAT",
                       "classification": "SERVICES",
                       "name": "Subscription Packages",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "C51688C39E7846319B668558F9726FDB",
                   "product": null
               }
           ],
           "target_amount": null,
           "udf_float_1": null,
           "udf_float_2": null,
           "udf_float_3": null,
           "number": "69",
           "udf_float_4": null,
           "competitors_set":
           [
               {
                   "id": "53D75E068A874C1E88FCDDDE6339377C",
                   "competitor":
                   {
                       "website": "www.competitor2.com",
                       "name": "Competitor 2",
                       "id": "F868B1EFFFB42A5232186348362A5C91",
                       "description": null
                   }
               },
               {
                   "id": "C6B7D2D0F81545D6B886B19D67B0C6EE",
                   "competitor":
                   {
                       "website": "www.competitor1.com",
                       "name": "Competitor 1",
                       "id": "C671ED66046243565DE5B6B4A1AB5835",
                       "description": null
                   }
               },
               {
                   "id": "73F11E40288445F7AB347E11A66ED97D",
                   "competitor":
                   {
                       "website": "www.competitor4.com",
                       "name": "Competitor 4",
                       "id": "4DC59EB406F3C3DFDFAD46AF213BFC97",
                       "description": null
                   }
               }
           ],
           "udf_string_1": null,
           "udf_string_2": null,
           "assigned_to":
           {
               "unit":
               {
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "user":
               {
                   "person_name": "mpadministrator",
                   "username": "mpadministrator",
                   "id": "1"
               }
           },
           "estimated_completion_time":
           {
               "time_period_value": 3,
               "time_period_uot": "WEEKS"
           },
           "udf_string_3": null,
           "contact_information":
           {
               "last_name": "Constantinou",
               "life_cycle_state": "FINANCIAL",
               "middle_name": null,
               "company_profile": null,
               "title": null,
               "type": "PERSON",
               "first_name": "Filippos",
               "name": "Filippos Constantinou",
               "id": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
               "company_name": null,
               "demographics":
               {
                   "gender": "FEMALE",
                   "passport_issued_by_country": null,
                   "passport_number": null,
                   "social_security_number": null,
                   "industry_sector": null,
                   "date_of_birth":
                   {
                       "month": null,
                       "day": null,
                       "year": null
                   },
                   "name_day":
                   {
                       "month": null,
                       "day": null
                   },
                   "id_number": "121212",
                   "id_issued_by_country": null,
                   "industry": null
               }
           },
           "privacy_level": null,
           "udf_string_4": null,
           "udf_string_5": "udf_string_5",
           "udf_string_6": null,
           "physical_goods_set":
           [
           ],
           "udf_string_7": null,
           "udf_string_8": null,
           "accounts_receivable":
           {
               "account_owner":
               {
                   "last_name": "Constantinou",
                   "life_cycle_state": "FINANCIAL",
                   "middle_name": null,
                   "company_profile": null,
                   "title": null,
                   "type": "PERSON",
                   "first_name": "Filippos",
                   "name": "Filippos Constantinou",
                   "id": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": "FEMALE",
                       "passport_issued_by_country": null,
                       "passport_number": null,
                       "social_security_number": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": null,
                           "day": null,
                           "year": null
                       },
                       "name_day":
                       {
                           "month": null,
                           "day": null
                       },
                       "id_number": "121212",
                       "id_issued_by_country": null,
                       "industry": null
                   }
               },
               "life_cycle_state": "ACTIVE",
               "number": "567",
               "name": "Filippos Constantinou",
               "id": "02BE7465096C47F6B237E2D27F84C06B"
           },
           "id": "DCD9A08C2A4C421EA00FCF84D0974CCA",
           "lead_source":
           {
               "communication":
               {
                   "life_cycle_state": "DRAFT",
                   "number": "204",
                   "id": "0316F16B0700688BCF97CCC9661F4141",
                   "contact_information":
                   {
                       "last_name": "Messi",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "Andres",
                       "company_profile": null,
                       "title": "Mr",
                       "type": "PERSON",
                       "first_name": "Lionel",
                       "name": null,
                       "id": "0A910B939D30FFC942ECCE4082AF42F8",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_number": "4321",
                           "social_security_number": "12345",
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 6,
                               "day": 24,
                               "year": 1987
                           },
                           "name_day":
                           {
                               "month": 4,
                               "day": 2
                           },
                           "id_number": "1234",
                           "industry": null
                       }
                   }
               },
               "type": "COMMUNICATIONS"
           },
           "probability_to_win": null,
           "priority": 3,
           "udf_date_1": null,
           "udf_date_2": null,
           "udf_date_3": null,
           "expected_completion_date": "2015-03-13T17:28:30",
           "udf_date_4": null,
           "start_date": "2015-02-20T17:28:30",
           "users_set":
           [
               {
                   "id": "61CC6B0B140149A1A4AD7C57BC2A8FEE",
                   "user":
                   {
                       "person_name": "mariosmtest",
                       "username": "mariosmtest",
                       "id": "C2730E7C873AB4F5425218BA01378251",
                       "email": null
                   }
               },
               {
                   "id": "97A4844D6A374542AA4BAB46AF599D10",
                   "user":
                   {
                       "person_name": "supervisor",
                       "username": "supervisor",
                       "id": "018CA08BC267612F6206D85011FFC5D1",
                       "email": "super@visor.com"
                   }
               }
           ],
           "time_overdue":
           {
               "time_period_value": 3,
               "time_period_uot": "DAYS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "owned_by_group":
           "action" : "add",{
            "competitor_identifier" : { "name" : "CompetitorCSR 2Group"},
        },       "id": "9F53AE96144CB2F358C38BADE9E2F470",
  {             "actiondescription" : "remove"null,
            "lead_competitor_identifier" : { "competitor_identifier" : { "name" : "Competitor 1"} }
 alternative_code": "CSR"
      }     ]
}

 

Response:

Code Block
languagejs
},
   {        "statuslog_information":
       {    {
       "message": null,         "updated_date": "2015-03-16T14:40:54",
  "description": null,            "codecreated_by_unit": "OK"
       },        "data":{
       {            "actual_completion_datename": "Admin nullUnit",
           "services_set":        "id": "48305F8849E3C18B227C5BE3A27BA6DF",
    [                {"description": "r1",
                   "productalternative_typecode": null, "MG"
               },
               "idcreated_date": "4F8DD6FB68E24919A5F8815E7AFD7C332015-03-16T14:32:14",
   
               "productupdated_by_unit":
               {
   {                "community_name": "Main Community",
     "product_type":              "group_name": "Main Group",
       {            "name": "Admin Unit",
             "physical_good_type": null,        "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "service_typedescription": "TERMEDr1",
                   "alternative_code": "MG"
      "used_for_provisioning": true,            },
               "compositioncreated_by_methoduser": "FLAT",
               {
           "classification": "SERVICES",       "person_name": "mpadministrator",
                   "nameusername": "Subscription Packagesmpadministrator",
      
                    "id": "BC954969D3172372D498D3BB2BA590A0",1"
               },
               "descriptionupdated_by_user":
     "Subscription main packages",        {
                   "alternativeperson_codename": "SPMarios Lannister",
                       },
"username": "mpadministrator",
                      "id": "3FACF409E7E091F96C52318BAD1AEF1C1",
               }
          "description": "Local + Documentaries + Sport", },
           "status":
           {
   "code": "Local + Documentaries + Sport",       "name": "Won",
               "alternative_codeid": "LDSCE3D8565F49E82F5B7F3BB62C43A1B06",
               "description": null,
  }             "alternative_code": "WON"
 },          },
     {        "importance": "IMPORTANCE2",
           "productlife_cycle_typestate": "WON",
           "type":
      {        {
               "physical_good_typename": "Software nullPurchase",
               "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
       "service_type": "TERMED",       "description": null,
               "usedalternative_for_provisioningcode": true,"SP"
           },
           "composition_methoddescription": "FLAT"null,
           "contact_email": "webapi2@test.com",
           "classificationcategory": "SERVICES",
           {
               "name": "SubscriptionSoftware PackagesPurchase",
    
                  "id": "BC954969D3172372D498D3BB2BA590A0C60F332D0B4CB8DD22A0159413951434",
       
               "description": "Subscriptionnull,
main packages",              "code": "SP"
        "alternative_code": "SP"  },
           "lost_reason": null
    },   }
    }



Expand
titleExample 2

HTTP Method: POST


Request: {{server}}/crmapi/rest/v2/leads/update

Body:

Code Block
languagejs
{
    "token":"{{token}}",
    "lead_identifier" : {"idnumber" : "C51688C39E7846319B668558F9726FDB127"},
    "status_identifier" : { "name" : "Reach"},
    "billing_address_identifier" : { "TYPE" : "productHOME":},
null    "lead_products_set" :
     [
    }    {
       ],            "target_amount": null"action" : "add",
           "udflead_floatproduct_1identifier": null,
   { "product_identifier" : { "code" : "123"}}
       "udf_float_2": null,
      },
     "udf_float_3": null,  
         "number": "69",{
            "udf_float_4action" : null,"remove",
              "competitorslead_product_setidentifier":{"product_identifier" : { "code" : "MAD MAX"}}
     [      },
         {
      
            "idaction" : "53D75E068A874C1E88FCDDDE6339377Cadd",
    
              "competitorlead_product_identifier":{"product_type_identifier" : { "name" : "Additional Services"}}
         },
   {           {
            "websiteaction" : "www.competitor2.comremove",
             "lead_product_identifier":{ "product_type_identifier"        : { "name" : "Competitor 2",Add-ons"}}
        },
         {
    "id": "F868B1EFFFB42A5232186348362A5C91",       "action" : "add",
              "descriptionlead_product_identifier": null
          {"product_brand_identifier" : { "name" : "Corso Shoes"}}
        },
          {
    },        "action"        {: "remove",
                   "id"lead_product_identifier": "C6B7D2D0F81545D6B886B19D67B0C6EE",
      {"product_brand_identifier" : { "name" : "API's Check Update"}}
            "competitor":},
          {
        {    "action" : "add",
              "lead_product_identifier":{"product_family_identifier" : { "websitename" : "www.competitor1.com",Channels"}}
        },
         {
    "name": "Competitor 1",      "action" : "remove",
               "id": "C671ED66046243565DE5B6B4A1AB5835",
  "lead_product_identifier":{"product_family_identifier" : { "name" : "Dry Stock"}}
        }
    ],
    "subscription_package_identifier": { "descriptionname" : null
  "Simple Package"},
    "competitors_set" :
    [
        {
   }         "action" : "add",
    },        "competitor_identifier" : { "name" : "MagnaQuest"}
  {      }
    ]
}


Response:

Code Block
languagejs
 {
      "iddata": "73F11E40288445F7AB347E11A66ED97D",{
          "target_amount": null,
        "competitorcontact_phone": null,
          "log_information": {
       {       "created_by_unit": {
                "websitealternative_code": "www.competitor4.comadminunit",
      
                "group_name": "CompetitorMain 4Group",
      
                "idcommunity_name": "4DC59EB406F3C3DFDFAD46AF213BFC97Community",
                "name":       "description": null"Admin Unit",
                "description": "admin unit",
  }              "id": "1"
}            ]},
            "udfupdated_stringby_1unit": null,{
           "udf_string_2": null,
           "assignedalternative_tocode":            {"adminunit",
                "unitgroup_name": "Main Group",
             {   "community_name": "Community",
                "name": "Admin Unit",
  
                "iddescription": "48305F8849E3C18B227C5BE3A27BA6DFadmin unit",
                   "descriptionid": "r1",1"
            },
            "alternativecreated_codedate": "MG"
 2018-01-22T10:02:58",
             },
  "updated_date": "2018-01-22T10:30:42",
            "updated_by_user":
               {
  
                "person_name": "mpadministratorCRM COM",
  
                "usernameid": "mpadministrator1",
                "email": null,
 "id": "1"              "username": "MPAdministrator"
}            },
            "estimatedcreated_completionby_timeuser":            {{
                "timeperson_period_valuename": "CRM 3COM",
                "time_period_uotid": "WEEKS"
      1",
    },            "udf_string_3email": null,
           "contact_information":     "username": "MPAdministrator"
            }
{        },
        "last_nameimportance": "ConstantinouIMPORTANCE1",
        "subscription_package": {
            "lifesubscription_cycle_statepackage": {
"FINANCIAL",                "middlealternative_namecode": null"SP",
                "company_profilename": null"Simple Package",
                "titledescription": null,
                "typeid": "PERSON0015B6F5645F4454A442051E823E3B4D",
                "first_nameclassification": "FilipposPACKAGE",
            }
  "name": "Filippos Constantinou",       },
        "idlead_source": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
  {
            "company_name": null,
  "test",
            "demographicstype":   "CUSTOM2"
        },
   {       "owned_by_group": {
            "genderalternative_code": "FEMALEMG",
      
            "passport_issued_by_countrycommunity_name": null"Community",
            "name": "Main Group",
      "passport_number": null,     "description": "Main Group",
            "social_security_numberid": null,"1"
         },
         "industry_sectordescription": null,
        "contact_information": {
            "datecompany_of_birthprofile": null,
            "company_name": null,
     {       "name": null,
            "last_name": "Panagi",
 "month": null,          "id": "12F12B2F406A42E699A7E98646ADD1FB",
            "daylife_cycle_state": null"FINANCIAL",
            "middle_name": null,
            "yeartitle": null,
            "type": "PERSON",
      },      "first_name": "Kokos",
            "name_daydemographics": {
                "name_day":  {
 
                     "month": null,
                       "day": null
  
                },

                  "id_number": "1212129896546",
                "gender": null,
        "id_issued_by_country": null,        "country_of_residence": {
                    "alternative_code": "industry": null"IRN",
                 }   "three_character_code": null,
        },            "privacy_levelname": null,"IRAN (ISLAMIC REPUBLIC OF)",
        "udf_string_4": null,            "udf_string_5id": "udf_string_5231",
   
       "udf_string_6": null,            "physicaltwo_goodscharacter_setcode": null
          [       },
    ],            "udfdate_stringof_7birth": null,{
           "udf_string_8": null,
           "accounts_receivablemonth":       null,
    {                "account_owneryear": null,
              {      "day": null
            "last_name": "Constantinou",   },
                "lifeindustry_cycle_statesector": "FINANCIAL",
  null,
                "middlepassport_namenumber": null,
  
                "company_profileindustry": null,
  
                "titlesocial_security_number": null,
  
                "typeid_issued_by_country": "PERSON",
  null,
                "first_namepassport_issued_by_country": "Filippos",null
            }
      "name": "Filippos Constantinou"},
        "type": {
            "idalternative_code": "829CA6CAFFAB434C9E1B3FB72BE3DAB1NC",
            "name": "New Customer",
     "company_name": null,      "description": null,
            "demographicsid": "696C0E5F273B4D548F875F63F9DE77C2"
        },
        "udf_date_2": null,
{        "udf_date_1": null,
        "products_set": [
    "gender": "FEMALE",       {
                "passport_issued_by_countryproduct_family": null,
      
                "passport_numberproduct": null,
      
                "socialproduct_security_numbertype": null,{
                       "industry_sector"meter_reading_type": null,
  
                    "dateservice_of_birthtype": "TERMED",
                      {
      "used_for_provisioning": true,
                    "monthalternative_code": null,
      "AS",
                    "dayudr_type": null,
                    "composition_method": "FLAT",
     "year": null              "name": "Additional Services",
       },             "description": null,
            "name_day":        "id": "C8321F0BCA8A4051857BC35CEEE41555",
              {      "classification": "SERVICES",
                    "monthphysical_good_type": null,
                },
                "dayid": null"8FBA0B4E1AA6490592992CEB438AAFB6",
                "product_brand": null
     },       },
            {
   "id_number": "121212",            "product_family": null,
          "id_issued_by_country": null,     "product": null,
                 "industryproduct_type": null,
                "id": "9A29EC3ED67F4030B4EA57F2D4C0CAD1",
  }              "product_brand": {
    },                "lifealternative_cycle_statecode": "ACTIVECS",
                    "numbername": "567Corso Shoes",
                    "namedescription": "Filippos Constantinou", null,
                    "id": "02BE7465096C47F6B237E2D27F84C06B5A917782ACA648B3BEAF417D1E64C43F"
                },
           "id": "DCD9A08C2A4C421EA00FCF84D0974CCA" },
           "lead_source": {
          {      "product_family": {
        "communication":                {"code": "CH",
                    "life_cycle_statename": "DRAFTChannels",
                    "numberdescription": "204"null,
                    "id": "0316F16B0700688BCF97CCC9661F41415432773B865246E3B10A47CD130183C7",
                },
  "contact_information":              "product": null,
    {            "product_type": null,
                "last_nameid": "Messi77D222EA6C4E4169B3560F5CA926FAE4",
                "product_brand": null
           "life_cycle_state": "FINANCIAL" },
             {
         "middle_name": "Andres",      "product_family": null,
                "company_profileproduct": null,
  {
                    "titlecode": "Mr123",
                       "product_type": {
"PERSON",                        "firstmeter_reading_nametype": "Lionel"null,
                        "nameservice_type": null,
                        "idused_for_provisioning": "0A910B939D30FFC942ECCE4082AF42F8"true,
                        "companyalternative_namecode": null"STB",
                        "demographicsudr_type": null,
                      {  "composition_method": "FLAT",
                        "gendername": "MALESET TOP BOX",
  
                        "passport_numberdescription": "4321SET TOP BOX",
  
                        "social_security_numberid": "12345E8BA9A6F34A24019A89892D5B3ACD9DF",
  
                        "industry_sectorclassification": null"PHYSICALGOODS",
                           "datephysical_ofgood_birthtype": "TRACEABLE"
                    },
     {               "alternative_code": "1_13",
               "month": 6,    "description": "desc",
                          "day": 24,"id": "99E46901A95B4E31A60BBE67280F2522",
                    "priority_level": null
            "year": 1987   },
                "product_type": null,
      },          "id": "1D08C46265F44BC68BF8C8BD0AD43FB7",
                "nameproduct_daybrand": null
            }
        ],
    {    "udf_date_4": null,
              "contact_email": null,
           "month"udf_date_3": 4null,
        "number": "127",
           "udf_float_3": null,
         "dayudf_float_4": 2null,
        "estimated_completion_time": {
            "time_period_uot": "MONTHS",
   },         "time_period_value": 1
        },
        "idprobability_to_numberwin": "1234"null,
        "id": "4DF94747AE1C4DA4916DD5012F245DCE",
        "udf_float_1": null,
        "industryudf_float_2": null,
        "start_date": "2018-01-22T10:02:58",
        "assigned_to": {
   }         "unit": {
         }                },"alternative_code": "adminunit",
                "typegroup_name": "COMMUNICATIONSMain Group",
           },        "community_name": "Community",
   "probability_to_win": null,            "priorityname": 3"Admin Unit",
           "udf_date_1": null,     "description": "admin unit",
                "udf_date_2id": null,"1"
           "udf_date_3": null, },
            "expected_completion_dateuser": "2015-03-13T17:28:30", {
                "udfperson_date_4name": "CRM null,COM",
                "start_dateid": "2015-02-20T17:28:301",
 
         "users_set":       "email": null,
   [             "username": "MPAdministrator"
 {           }
        "id": "61CC6B0B140149A1A4AD7C57BC2A8FEE"},
          "udf_string_2": null,
        "userudf_string_3": null,
        "udf_string_4": null,
        {
"actual_completion_date": null,
             "udf_string_5": null,
        "personprivacy_namelevel": "mariosmtest"null,
        "users_set": [],
             "username"udf_string_1": "mariosmtest"null,
          "accounts_receivable": {
            "idnumber": "C2730E7C873AB4F5425218BA01378251ACR0000000094",
          
            "emailname": null
      "ACR0000000094 Kokos Panagi",
            }
"id": "F3A5B0ED175A4A1AA6A418CBD9FF8A0F",
              }"life_cycle_state": "ACTIVE",
               {
  "account_owner": {
                "idcompany_profile": "97A4844D6A374542AA4BAB46AF599D10",
  null,
                "usercompany_name": null,
                  {
   "name": null,
                   "personlast_name": "supervisorPanagi",
                       "username"id": "supervisor12F12B2F406A42E699A7E98646ADD1FB",
      
                "idlife_cycle_state": "018CA08BC267612F6206D85011FFC5D1FINANCIAL",
      
                "emailmiddle_name": "super@visor.com"null,
                   }
   "title": null,
           }     "type": "PERSON",
     ],
           "timefirst_overduename": "Kokos",
          {      "demographics": {
        "time_period_value": 3,
               "timename_period_uotday": {
"DAYS"            },            "time_to_completionmonth":   null,
        {                "time_period_valueday": null,
               "time_period_uot": null    },
        },            "ownedid_by_groupnumber":  "9896546",
         {                "namegender": "CSR Group",
  null,
            "id": "9F53AE96144CB2F358C38BADE9E2F470",       "country_of_residence": {
       "description": null,                "alternative_code": "CSRIRN",
            },            "logthree_character_informationcode":   null,
        {                "updated_datename": "2015-03-16T14:40:54",
IRAN (ISLAMIC REPUBLIC OF)",
              "created_by_unit":          "id": "231",
    {                    "nametwo_character_code": "Adminnull
Unit",                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",},
                    "descriptiondate_of_birth": "r1",{
                   "alternative_code": "MG"        "month": null,
       },                "created_date": "2015-03-16T14:32:14",year": null,
                 "updated_by_unit":       "day": null
                    },
{                    "communityindustry_namesector": "Main Community",null,
                    "grouppassport_namenumber": "Main Group",null,
                    "nameindustry": "Admin Unit",null,
                    "idsocial_security_number": "48305F8849E3C18B227C5BE3A27BA6DF"null,
                   "description "id_issued_by_country": "r1"null,
                    "alternative_codepassport_issued_by_country": "MG" null
                }
            },
        },
        "createdlife_bycycle_userstate":  "PENDING",
        "priority": 1,
   {     "time_to_completion": {
             "persontime_period_nameuot": "mpadministratorMONTHS",
            "time_period_value": 1
       "username": "mpadministrator" },
          "lost_reason": null,
        "idcompetitors_set": "1"[
              {
},                "updated_by_usercompetitor": {
               {     "website": null,
                    "person_name": "Marios LannisterMagnaQuest",
                    "usernamedescription": "mpadministrator"null,
                    "id": "1640A12797E964BFC99F8AF0EA538EEEA"
                }
      ,
    },            "status":
           {
id": "A83933A180EF4547B3D21093147F8A51"
            }
 "name": "Won",       ],
        "idtime_overdue": "CE3D8565F49E82F5B7F3BB62C43A1B06",
  {
            "descriptiontime_period_uot": null,
  
            "alternativetime_period_codevalue": "WON"
  null
        },
  
        "importancecategory": {
"IMPORTANCE2",            "life_cycle_statecode": "WONNC",
            "typename": "New Customer",
         {   "description": null,
            "nameid": "35EB799C52F14A8984FE2F397A852A78"Software
 Purchase",       },
        "idudf_string_6": "F60FFE7AAD3F5B9B6E66A42266FA37C4",null,
        "expected_completion_date": "2018-02-22T10:02:58",
        "descriptionudf_string_7": null,
 
             "alternative_code": "SP"
           },
  "udf_string_8": null,
        "descriptionstatus": {
null,            "contactalternative_emailcode": "webapi2@test.comRCH",
            "categoryname": "Reach",
          {  "description": null,
            "nameid": "Software PurchaseE9977550B9AA4DB78E08379B0F744E5A",
               "id"life_cycle_state": "C60F332D0B4CB8DD22A0159413951434PENDING",
        }
      "description": null},
    "status":  {
        "code": "SPOK",
           },
  "description": "",
        "lost_reasonmessage": null
  ""
    }
   
}