Attributes

Post Attribute

Beta
POST

This endpoint is in beta and is subject to change. It is provided for early access and testing purposes only.
Adds a new Attribute

Request

This endpoint expects an object.
entity
stringRequired
entity ID
type
stringRequired
type of additional information
value
anyRequired
value of additional information in JSON format
date
stringOptional
as of date of the attribute
from_date
stringOptional
start date of the attribute
to_date
stringOptional
end date of the attribute

Response

This endpoint returns an object
data
object
POST
1curl -X POST https://api.sayari.com/v1/attribute \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "entity": "zq04axX2dLn9tE6W6Q8Qhg",
6 "type": "address",
7 "value": {
8 "street1": "1600 Pennsylvania Avenue NW",
9 "city": "Washington DC",
10 "state": "Washington DC",
11 "postalCode": "20500",
12 "country": "US"
13 },
14 "date": "2024-02-15",
15 "from_date": "2024-01-01",
16 "to_date": "2024-04-30"
17}'
200
Successful
1{
2 "data": {
3 "value": {
4 "street1": "1600 Pennsylvania Avenue NW",
5 "city": "Washington DC",
6 "state": "Washington DC",
7 "postalCode": "20500",
8 "country": "US"
9 },
10 "properties": [
11 {
12 "editable": true,
13 "record_count": 0,
14 "id": "enEwNGF4WDJkTG45dEU2VzZROFFoZ3xhZGRyZXNzfDBwbEVCMHxVNzhzN21yOUVFTThIZ3pwREM3UDFB"
15 }
16 ]
17 }
18}