Attributes

Post Attribute

POST
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
$curl -X POST https://api.sayari.com/v1/attribute \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "entity": "zq04axX2dLn9tE6W6Q8Qhg",
> "type": "address",
> "value": {
> "street1": "1600 Pennsylvania Avenue NW",
> "city": "Washington DC",
> "state": "Washington DC",
> "postalCode": "20500",
> "country": "US"
> },
> "date": "2024-02-15",
> "from_date": "2024-01-01",
> "to_date": "2024-04-30"
>}'
Response
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}