Create a new list in your address book.

Examples

curl -i -H "Content-Type: application/json" -d '{"list":{"name":"Work", "person_ids":["12ab8e008f0d0c8a090f9c0b"]}}' https://api.passdock.com/api/v1/lists?api_token=75778a65dfdae310a107d2ef0bbd3780

Supported Formats

json

Success Response:

201 Created
              
{
  id: "5342a521434236f5e7000007",
  name: "Work",
  person_ids: [
    "5342a53e86d256f5e7000006",
    "5342a53e86d256f5e7000016"
  ]
}
          

Errors

400 Bad Request
401 Unauthorized

Params

Param name Description
api_token
required

Your Passdock API key


Value: Must be String
list
required

Object that contains List's informations


Value: Must be a Hash
list[name]
required

List's name


Value: Must be String
list[list_ids]
optional

IDs of people that belongs to list


Value: Must be Array