POST
/
lists
/
{listId}
/
items
Add Item to List
curl --request POST \
  --url https://api.village.do/v1/lists/{listId}/items \
  --header 'Content-Type: application/json' \
  --header 'user-identifier: <user-identifier>' \
  --header 'x-access-token: <api-key>' \
  --data '{
  "identifier": "<string>",
  "type": "people"
}'
{
  "data": {
    "id": 101,
    "graph_id": "186532",
    "type": "people",
    "data": {}
  }
}

Authorizations

x-access-token
string
header
required

JWT token obtained from /users/authorization endpoint

Headers

user-identifier
string
required

Specify the user making the request. This identifier should match the one you used when integrating the user with Village. Not needed when using user token authentication.

Path Parameters

listId
integer
required

Body

application/json

Response

201
application/json

Item added

The response is of type object.