Create a contact list

post

/api/REST/1.0/assets/contact/list

Creates a contact list that matches the criteria specified by the request body.

Request

Supported Media Types
Body ()
The request body defines the details of the contact list to be created.
Root Schema : ContactList
Type: object
Title: ContactList
Show Source
Nested Schema : membershipAdditions
Type: array
The number of contact membership additions in the contact list.
Show Source
Nested Schema : membershipDeletions
Type: array
The number of contact membership deletions in the contact list.
Show Source
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : ContactList
Type: object
Title: ContactList
Show Source
Nested Schema : membershipAdditions
Type: array
The number of contact membership additions in the contact list.
Show Source
Nested Schema : membershipDeletions
Type: array
The number of contact membership deletions in the contact list.
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 contact list:


POST /api/REST/1.0/assets/contact/list 
Content-Type: application/json 
			

Request body:


{
    "name":"test contact list" ,
    "description":"this is a test contact list."
}
			

Response:


{
    "type":"ContactList",
    "id":"86",
    "createdAt":"1434980628",
    "createdBy":"19",
    "depth":"complete",
    "description":"this is a test contact list.",
    "folderId":"48",
    "name":"test contact list",
    "permissions":"fullControl",
    "updatedAt":"1434980628",
    "updatedBy":"19",
    "count":"0",
    "dataLookupId":"4f27ab85-e90c-4217-a4e9-ca9deb607a47",
    "scope":"global"
}
			
Back to Top