Attributes

Patch Attribute

Beta
PATCH

This endpoint is in beta and is subject to change. It is provided for early access and testing purposes only.
Updates an existing Attribute

Path parameters

attributeIdstringRequired

Request

This endpoint expects an object.
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
PATCH
1curl -X PATCH https://api.sayari.com/v1/attribute/enEwNGF4WDJkTG45dEU2VzZROFFoZ3xhZGRyZXNzfDBwbEVCMHxVNzhzN21yOUVFTThIZ3pwREM3UDFB \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "value": {
6 "street1": "1600 Pennsylvania Avenue NW",
7 "city": "Washington DC",
8 "state": "Washington DC",
9 "postalCode": "20500",
10 "country": "US"
11 },
12 "date": "2024-02-15",
13 "from_date": "2024-01-01",
14 "to_date": "2024-04-30"
15}'
200
Updated
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}