Create an account

post

/api/REST/1.0/data/account

Creates an account that matches the criteria specified by the request body.

Request

Supported Media Types
Body ()
The request body defines the details of the account to be created.
Root Schema : Account
Type: object
Title: Account
Show Source
Nested Schema : crmSystemMappings
Type: array
Lists CRM Users linked to the Account. Each crmSystemMappings contains a type, CRMUsername(s), and Eloqua loginName values for all of the Eloqua Users linked to the Account. This property is only returned if Eloqua Users are linked to the Account. For instructions on how to link Eloqua Users to Accounts, refer to the linkUsers parameter in this tutorial. This property is also only returned when the request depth is complete.
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the accountFields associated with a given account.
Show Source
Nested Schema : CrmSystemMapping
Type: object
Title: CrmSystemMapping
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : Account
Type: object
Title: Account
Show Source
Nested Schema : crmSystemMappings
Type: array
Lists CRM Users linked to the Account. Each crmSystemMappings contains a type, CRMUsername(s), and Eloqua loginName values for all of the Eloqua Users linked to the Account. This property is only returned if Eloqua Users are linked to the Account. For instructions on how to link Eloqua Users to Accounts, refer to the linkUsers parameter in this tutorial. This property is also only returned when the request depth is complete.
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the accountFields associated with a given account.
Show Source
Nested Schema : CrmSystemMapping
Type: object
Title: CrmSystemMapping
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Create a new account:


POST /api/REST/1.0/data/account
Content-Type: application/json 
			

Request body:


{
    "name":"Hudsucker Industries",
    "address1":"2020 Broadway Ave.",
    "city":"New York",
    "country":"United States"
}
			

Response:


{
    "type":"Account",
    "id":"14",
    "createdAt":"1433527975",
    "depth":"complete",
    "description":"",
    "name":"Hudsucker Industries",
    "updatedAt":"1433527975",
    "address1":"2020 Broadway Ave.",
    "address2":"",
    "address3":"",
    "businessPhone":"",
    "city":"New York",
    "country":"United States",
    "fieldValues":[],
    "postalCode":"",
    "province":""
}
			
Back to Top