Authentication
WRITE API
- Write
READ API
- Read
PLATFORM API
- OAuth
- Project
- Provider App
- Integration
- Revision
- Installation
- Objects & Fields
- Operation
- Provider
- API Key
- Connection
- Group
- Consumer
- Destination
- Upload URL
- Org
- User
- Billing Account
Hydrate a revision
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>",
"displayName": "<string>",
"provider": "<string>",
"read": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"mapToName": "people",
"mapToDisplayName": "People",
"destination": "<string>",
"schedule": "<string>",
"requiredFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFieldsAuto": "all",
"allFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"allFieldsMetadata": {},
"backfill": {
"defaultPeriod": {
"days": 30,
"fullHistory": false
}
}
}
]
},
"write": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"valueDefaults": {
"allowAnyFields": true
}
}
]
},
"proxy": {
"enabled": true
}
}
}
Authorizations
Query Parameters
Response
The revision ID.
"revision-id-1"
The spec version string.
"1.0.0"
The time the revision was created.
An object name to map to.
"people"
A display name to map to.
"People"
The field name to map to in the destination.
"account_id"
The display name to map to in the destination.
"Account ID"
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 list of all fields on the object for a particular SaaS instance, including their display names.
The field name to map to in the destination.
"account_id"
The display name to map to in the destination.
"Account ID"
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.
Was this page helpful?
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>",
"displayName": "<string>",
"provider": "<string>",
"read": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"mapToName": "people",
"mapToDisplayName": "People",
"destination": "<string>",
"schedule": "<string>",
"requiredFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"optionalFieldsAuto": "all",
"allFields": [
{
"fieldName": "<string>",
"displayName": "<string>",
"mapToName": "account_id",
"mapToDisplayName": "Account ID"
}
],
"allFieldsMetadata": {},
"backfill": {
"defaultPeriod": {
"days": 30,
"fullHistory": false
}
}
}
]
},
"write": {
"objects": [
{
"objectName": "<string>",
"displayName": "<string>",
"valueDefaults": {
"allowAnyFields": true
}
}
]
},
"proxy": {
"enabled": true
}
}
}