Anyone know how to set contactRole in REST API ? ...
# general
d
Anyone know how to set contactRole in REST API ? I can create the contact but no role is being assigned I've tried both of these: POST: https://XXXXXX.suitetalk.api.netsuite.com/services/rest/record/v1/contact
Copy code
{
    "entityId": "John Doe",
    "company": {
        "id": "567",                     
        "type": "customer"               
    },
    "contactRole": {
        "id": "12",                      
        "name": "Sales Manager"          
    },
    "email": "john.doe@example.com",    
    "phone": "123-456-7890"             
}

{
    "entityId": "John Doe",
    "company": {
        "id": "567",                     
        "type": "customer"               
    },
    "contactRole":"12",
    "email": "john.doe@example.com",    
    "phone": "123-456-7890"             
}