ResourcesInserts or updates resource details as a contact or person account record.
Response Keys The following keys are used in the response.
POST
Sample Code//POST Request 1 [{ "CorrelationId": "93847jdue7", "LastName": "Smith", "Salutation": "Mr", "FirstName": "John", "Street": "123 Test St", "City": "Philadelphia", "StateOrProvince": "PA", "PostalCode": "12345", "Country": "USA", "Phone": "847-321-4326", "MobilePhone": "555-805-4326", "Email": "test@test.com", "BusinessTitle": "Marketing Consultant", "ReportsTo": "93847jdue2", "ExternalResource": false, "Division": "Sales", "CostCenter": "11223344", "Department": "Mid Market Sales", "Location": "Philadelphia", "ResourceStatus": "A", "ResourceStatusEffectiveDate": "1991-11-20", "ResourceRole": "Architect", "WorkCalendar": "US Default", "CustomField1": "test", "CustomField2": "test2", "CustomField3": "test3", "CustomField4": "test4", "CustomField5": "test5", "CustomField6": "test6", "CustomField7": "test7", "CustomField8": "test8", "CustomField9": "test9", "CustomField10": "test10", "CustomField11": "test11", "CustomField12": "test12", "CustomField13": "test13", "CustomField14": "test14", "CustomField15": "test15" }, { "CorrelationId": "93847jdue0", "LastName": "Smith", "Salutation": "Mr", "FirstName": "Jonathan", "Street": "123 Test St", "City": "Philadelphia", "StateOrProvince": "PA", "PostalCode": "12645", "Country": "USA", "Phone": "847-325-4326", "MobilePhone": "555-815-4326", "Email": "test2@test.com", "BusinessTitle": "Marketing Consultant", "ReportsTo": "93847jdue2", "ExternalResource": false, "Division": "Sales", "CostCenter": "11223344", "Department": "Mid Market Sales", "Location": "Philadelphia", "ResourceStatus": "A", "ResourceStatusEffectiveDate": "1991-11-20", "ResourceRole": "Architect", "WorkCalendar": "US Default", "CustomField1": "test", "CustomField2": "test2", "CustomField3": "test3", "CustomField4": "test4", "CustomField5": "test5", "CustomField6": "test6", "CustomField7": "test7", "CustomField8": "test8", "CustomField9": "test9", "CustomField10": "test10", "CustomField11": "test11", "CustomField12": "test12", "CustomField13": "test13", "CustomField14": "test14", "CustomField15": "test15" } ] //POST Response 1 HTTP/1.1 200 OK //POST Request 2 [{ "CorrelationId": "93847jdue7", "LastName": "Smith", "ABCkey": "1234" }] //POST Response 2 HTTP/1.1 400 Bad Request [{ "CorrelationId": "93847jdue7", "Message": "The following keys are invalid: ABCkey. Contact your administrator." }] PATCH
Sample Code//PATCH Request 1 [{ "CorrelationId": "93847jdue7", "LastName": "Smith", "Salutation": "Mr", "FirstName": "John", "Street": "123 Test St", "City": "Philadelphia", "StateOrProvince": "PA", "PostalCode": "12345", "Country": "USA", "Phone": "847-321-4326", "MobilePhone": "555-805-4326", "Email": "test@test.com", "BusinessTitle": "Marketing Consultant", "ReportsTo": "93847jdue3", "ExternalResource": false, "Division": "Sales", "CostCenter": "11223344", "Department": "Mid Market Sales", "Location": "Philadelphia", "ResourceStatus": "A", "ResourceStatusEffectiveDate": "1991-11-20", "ResourceRole": "Architect", "WorkCalendar": "US Default", "CustomField1": "test", "CustomField2": "test2", "CustomField3": "test3", "CustomField4": "test4", "CustomField5": "test5", "CustomField6": "test6", "CustomField7": "test7", "CustomField8": "test8", "CustomField9": "test9", "CustomField10": "test10", "CustomField11": "test11", "CustomField12": "test12", "CustomField13": "test13", "CustomField14": "test14", "CustomField15": "test15" }, { "CorrelationId": "93847jdue0", "LastName": "Smith", "Salutation": "Mr", "FirstName": "Jonathan", "Street": "123 Test St", "City": "Philadelphia", "StateOrProvince": "PA", "PostalCode": "12645", "Country": "USA", "Phone": "847-325-4326", "MobilePhone": "555-815-4326", "Email": "test2@test.com", "BusinessTitle": "Marketing Consultant", "ReportsTo": "93847jdue6", "ExternalResource": false, "Division": "Sales", "CostCenter": "11223344", "Department": "Mid Market Sales", "Location": "Philadelphia", "ResourceStatus": "A", "ResourceStatusEffectiveDate": "1991-11-20", "ResourceRole": "Architect", "WorkCalendar": "US Default", "CustomField1": "test", "CustomField2": "test2", "CustomField3": "test3", "CustomField4": "test4", "CustomField5": "test5", "CustomField6": "test6", "CustomField7": "test7", "CustomField8": "test8", "CustomField9": "test9", "CustomField10": "test10", "CustomField11": "test11", "CustomField12": "test12", "CustomField13": "test13", "CustomField14": "test14", "CustomField15": "test15" } ] //PATCH Response 1 HTTP/1.1 200 OK //PATCH Request 2 [{ "CorrelationId": "93847jdue7", "LastName": "Smith", "ABCkey": "1234", }] //PATCH Response 2 HTTP/1.1 400 Bad Request [{ "CorrelationId": "93847jdue7", "Message": "The following keys are invalid: ABCkey. Contact your administrator." }] |