Lead Source

The lead source record exposes a lead source to REST web services.

This record:

For more information about working with lead sources in the UI, see Lead Sources.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for a lead source REST record is leadsource.

Prerequisites

You must enable the CRM feature before you can use this record through REST web services.

Code Samples

The following samples show common actions for a lead source.

POST Request

              POST /services/rest/record/v1/leadsource HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Content-Type: application/json
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""
Content-Length: 115
{
    "description": "Test description",
    "name": "Test name",
    "isInactive": false,
    "externalId": "99"
} 

            

GET Request

              GET /services/rest/record/v1/leadsource/1?expandSubResources=true HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature="" 

            

PATCH Request

              PATCH /services/rest/record/v1/leadsource/1 HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Content-Type: application/json
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""
Content-Length: 131
{
    "description": "Test description updated",
    "name": "Test name updated",
    "isInactive": true,
    "externalId": "999"
} 

            

DELETE Request

              DELETE /services/rest/record/v1/leadsource/1 HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature="" 

            

Related Topics

General Notices