curl --request GET \
--url https://api.withampersand.com/v1/projects/{projectIdOrName}/integrations/{integrationId}/revisions/{revisionId}:hydrate \
--header 'X-Api-Key: <api-key>'{
"id": "revision-id-1",
"specVersion": "1.0.0",
"createTime": "2023-11-07T05:31:56Z",
"content": {
"name": "<string>",
"provider": "<string>",
"displayName": "<string>",
"module": "<string>",
"read": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"destination": "<string>",
"schedule": "<string>",
"error": "Failed to fetch fields from provider",
"mapToName": "people",
"mapToDisplayName": "People",
"requiredFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFieldsAuto": "all",
"allFieldsMetadata": {},
"allFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"backfill": {
"defaultPeriod": {
"days": 30,
"fullHistory": false
}
}
}
]
},
"write": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"valueDefaults": {
"allowAnyFields": true
}
}
]
},
"proxy": {
"enabled": true,
"useModule": true
}
}
}Hydrate a revision with information from the consumer’s SaaS instance.
curl --request GET \
--url https://api.withampersand.com/v1/projects/{projectIdOrName}/integrations/{integrationId}/revisions/{revisionId}:hydrate \
--header 'X-Api-Key: <api-key>'{
"id": "revision-id-1",
"specVersion": "1.0.0",
"createTime": "2023-11-07T05:31:56Z",
"content": {
"name": "<string>",
"provider": "<string>",
"displayName": "<string>",
"module": "<string>",
"read": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"destination": "<string>",
"schedule": "<string>",
"error": "Failed to fetch fields from provider",
"mapToName": "people",
"mapToDisplayName": "People",
"requiredFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFieldsAuto": "all",
"allFieldsMetadata": {},
"allFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"backfill": {
"defaultPeriod": {
"days": 30,
"fullHistory": false
}
}
}
]
},
"write": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"valueDefaults": {
"allowAnyFields": true
}
}
]
},
"proxy": {
"enabled": true,
"useModule": true
}
}
}The Ampersand project ID or project name.
The integration ID.
The revision ID.
The connection ID.
Hydrated revision
The revision ID.
"revision-id-1"
The spec version string.
"1.0.0"
The time the revision was created.
Show child attributes
Show child attributes
Show child attributes
Error message if there was an issue hydrating this object.
"Failed to fetch fields from provider"
An object name to map to.
"people"
A display name to map to.
"People"
Show child attributes
The field name to map to in the destination.
"account_id"
The display name to map to in the destination.
"Account ID"
Show child attributes
The field name to map to in the destination.
"account_id"
The display name to map to in the destination.
"Account ID"
all This is a map of all fields on the object including their metadata (such as display name and type), the keys of the map are the field names.
Show child attributes
Metadata about a field. Please note that different providers have different levels of support for field metadata. Please reach out to [email protected] if need expanded support for a particular provider.
Show child attributes
The name of the field from the provider API.
"Account ID"
The display name of the field from the provider API.
"Account ID"
A normalized field type
string, boolean, singleSelect, multiSelect, date, datetime, int, float, other Raw field type from the provider API.
"timestamp"
Whether the field is read-only.
false
Whether the field is custom field.
false
Whether the field is required when creating a new record.
false
If the valueType is singleSelect or multiSelect, this is a list of possible values
This is a list of all fields on the object for a particular SaaS instance, including their display names. Prefer using allFieldsMetadata instead.
Show child attributes
The field name to map to in the destination.
"account_id"
The display name to map to in the destination.
"Account ID"
Show child attributes
Show child attributes
Number of days in past to backfill from. 0 is no backfill. e.g) if 10, then backfill last 10 days of data. Required if fullHistory is not set.
x >= 030
If true, backfill all history. Required if days is not set.
false
Show child attributes
Show child attributes
Was this page helpful?