createObject


SoftLayer_Account_Contact::createObject

This method creates an account contact.

Description

This method creates an account contact. The accountId is fixed, other properties can be set during creation. The typeId indicates the SoftLayer_Account_Contact_Type for the contact. This method returns the SoftLayer_Account_Contact object that is created.

Parameters

Name Type Description
templateObject SoftLayer_Account_Contact The SoftLayer_Account_Contact object that you wish to create.

Required Headers

Optional Headers

Return Values

Error Handling

  • Throws the error ‘Only the master user for an account may modify account contact information.’ if a user other than the master user attempts to create a contact.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Account_Contact]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Account_Contact/createObject'