Get attribute references.
Path Parameters
Either an attribute name or an attribute id Unique identifier
Response
OK
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
An attribute models a standardized data point available for sale on the Narrative marketplace.
Narrative automatically turns data points from provider datasets into attributes so that buyers can purchase well-formed, standardized data from any supplier on the marketplace.
The response will be one of two types:
- AttributeOwnedResponse: When the requesting company owns the attribute (includes company_id and collaborators)
- AttributeSharedResponse: When the requesting company does not own the attribute
An array with elements of any data type.
array The ID of the company that owns this attribute
Defines which companies have access to view and map this attribute
Unique identifier for the attribute.
A description of the type of data the attribute represents, including collection methodology, assumptions, etc.
A public-facing descriptive name for the attribute.
An short identifier for the attribute to be used when it is referenced in validations.
Attribute names must consist of only alphanumeric characters or underscores and be < 255 characters long.
List of tags associated with the attribute
A raw Spark SQL expression determining whether a value for the given column is valid or not.
If more than one validation is specified then all the validation must evaluate to true for the column value to be considered valid.
If validations is not specified or empty then all rows will match the access rule.
E.g. for an attribute with the following definition:
{
"name": "unique_id",
"type": "object",
"properties": {
"identifier_value": {
"type": "string"
},
"identifier_type": {
"type": "string"
},
"timestamp": {
"type": "timestamptz"
}
},
"required": [
"value"
]
}Valid validations include:
- Is the ID type lowercased?
"identifier_type": {
"type": "string",
"validations": [
"lower($this.identifier_type) = $this.identifier_type"
]
}- Was the row collected within the last 90 days?
"timestamp": {
"type": "timestamptz",
"validations": [
"$this.timestamp > date_sub(current_date(), 90)"
]
}
