Update an attribute
https://api.faraday.ai/v1/attributes/{attribute_id}Update the configuration of an attribute
Authentication
Provide your API key in the Authorization header. You can find your API key in the Settings page of the dashboard.
Authorization: Bearer YOUR_TOKENpath parameters
The UUID of an attribute
Responses
200Information about the attribute
Configuration for how to aggregate multiple assertions for this attribute.
archived_atstring<date-time>If not null, this resource will no longer receive updates, but will still be visable.
A category describing the type of attribute.
fig/demography, fig/environment, fig/geography, fig/identity, fig/lifestyle, fig/life_event, fig/property, fig/reachability, fig/society, fig/financial, user_definedWhen this resource was created.
Default selector hints organized by purpose (modeling, inference, append). These provide guidance to consumers but are not automatically applied by the attribute system.
deprecatedbooleanWhether this attribute is deprecated.
deprecation_notesstringNotes about the deprecation of the attribute. Should be present if and only if deprecated is true.
If applicable, describes the meaning of any directionality in the values.
"Higher numbers indicate older individuals"The UUID of the feature store this attribute belongs to.
"9c7b2a8f-4e1d-4d3c-8b9a-1f2e3d4c5b6a"A unique ID for this resource.
interpretation_mapdictionary[string, string]For enumerable attributes, a mapping from values to their interpretations. The key type matches the attribute's data type, and the value is always a string interpretation.
last_read_input_atstring<date-time>The last time this resource's input was read.
last_updated_config_atstring<date-time>The last time this resource's configuration was updated. If this is more recent than last_updated_output_at, the resource will be rebuilt.
last_updated_output_atstring<date-time>The last time this resource successfully built.
The slug name of the attribute. Must start with a letter and contain only lowercase letters, numbers, and underscores.
"age"^[a-z][a-z0-9_]*$If a unary null replacement isn't applicable or viable, this describes how NULLs should be interpreted when encountered.
"Unknown"null_value_replacementone of 3 typesIf set, null values should be coalesced with this replacement to avoid any NULLs.
The type of this resource.
The current state of this resource and any updates.
"pending"new, starting, running, ready, errorstatus_changed_atstring<date-time>When the status of this resource was last updated.
status_errorstringIf this resource has status == "error", this will contain an error message.
The name of the stream containing the assertions for this attribute.
"age_assertions"When this resource was last updated.
The name of the property in the stream that contains the assertion value. This indicates which property is special and represents the attribute's value.
"value"400The request was invalid.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
401No API key was supplied.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
403Access to this resource was forbidden.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
404The requested resource ID was not found.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
409The request was formatted correctly, but conflicted with an existing resource.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
500An internal server error occurred.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
Tags
Test request
Request snippet
curl -X PATCH 'https://api.faraday.ai/v1/attributes/{attribute_id}' \
-H 'Content-Type: application/json+merge-patch' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"aggregation": {
"method": "or",
"sort": [
{
"direction": "asc",
"priority": [
"epsilon",
"verisk"
],
"property_name": "authority"
}
]
},
"category": "fig/demography",
"default_selector_by_purpose": {
"append": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
},
"inference": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
},
"modeling": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
}
},
"deprecated": false,
"deprecation_notes": "string",
"description": "The person's age in years",
"directionality_interpretation": "Higher numbers indicate older individuals",
"feature_store_id": "9c7b2a8f-4e1d-4d3c-8b9a-1f2e3d4c5b6a",
"interpretation_map": {
"key": "string"
},
"literate": "Age",
"name": "age",
"null_value_interpretation": "Unknown",
"null_value_replacement": false,
"stream_name": "age_assertions",
"tier": "standard",
"value_property_name": "value"
}'Example response
{
"aggregation": {
"method": "or",
"sort": [
{
"direction": "asc",
"priority": [
"epsilon",
"verisk"
],
"property_name": "authority"
}
]
},
"archived_at": "2024-01-01T12:00:00Z",
"category": "fig/demography",
"created_at": "2024-01-01T12:00:00Z",
"default_selector_by_purpose": {
"append": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
},
"inference": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
},
"modeling": {
"authority": [
"epsilon",
"verisk"
],
"derivations": [
"modeled",
"collected"
],
"precision": [
"person"
],
"quality": [
"1"
]
}
},
"deprecated": false,
"deprecation_notes": "string",
"description": "The person's age in years",
"directionality_interpretation": "Higher numbers indicate older individuals",
"feature_store_id": "9c7b2a8f-4e1d-4d3c-8b9a-1f2e3d4c5b6a",
"id": "123e4567-e89b-12d3-a456-426614174000",
"interpretation_map": {
"key": "string"
},
"last_read_input_at": "2024-01-01T12:00:00Z",
"last_updated_config_at": "2024-01-01T12:00:00Z",
"last_updated_output_at": "2024-01-01T12:00:00Z",
"literate": "Age",
"name": "age",
"null_value_interpretation": "Unknown",
"null_value_replacement": false,
"resource_type": "string",
"status": "pending",
"status_changed_at": "2024-01-01T12:00:00Z",
"status_error": "string",
"stream_name": "age_assertions",
"tier": "standard",
"updated_at": "2024-01-01T12:00:00Z",
"value_property_name": "value"
}