Lists
Create a List
Changed on| ⚠️ This endpoint is currently in BETA |
|---|
Create a new List.
The List type determines the kind of entities (Companies, Persons, or Opportunities) that can be added. The requester is recorded as the creator and the owner.
post/v2/lists
Request
- Base URLhttps://api.affinity.co
- URLhttps://api.affinity.co/v2/lists
- AuthHTTP bearer
Request body
Example request
{
"name": "My Companies",
"type": "company"
}Response
Created
Example response
{
"id": 1,
"name": "All companies",
"creatorId": 1,
"ownerId": 1,
"type": "company",
"createdAt": "2024-03-07T20:21:42Z"
}Changes
- info
added
authenticationauthorizationbad-requestconflictmethod-not-allowednot-acceptablenot-foundnot-implementedrate-limitservertimeoutunprocessable-entityunsupported-media-typevalidationdiscriminator mapping keys to the/response property for the response status - info
added
bad-requestvalidationdiscriminator mapping keys to the/response property for the response status
- info