mutation UpsertSourceEntries($input: UpsertSourceEntriesInput!) {
upsertSourceEntries(input: $input) {
receipt {
id
}
}
}{
"input": {
"entries": [
{
"entryId": "string",
"properties": [
{
"propertyId": "string",
"value": {}
}
]
}
],
"sourceId": "string"
}
}{
"data": {
"upsertSourceEntries": {
"receipt": {
"id": "value"
}
}
}
}upsertSourceEntries
Creates or updates entries of one data source from typed values. Properties left out stay unchanged. Before any write it runs the shared import checks, and nothing is written if any check fails, if a property isn’t configured on the data source, or if a value doesn’t match its data type. The import is stamped with the server’s clock. Returns once the source entries are stored and readable; related entries and destinations update asynchronously. The payload has no errors list; a failure comes back as a top-level GraphQL error whose extensions.code is one of: BAD_USER_INPUT for type and property failures (per-property failures under extensions.validation), restricted characters or lengths in entry ids, property ids or language codes, entry ids that are duplicates ignoring case, occtoosys* system properties, or a payload over the tenant’s import ceilings; NOT_FOUND for an unknown data source; CONFLICT while the data source is being purged; or WRITE_FAILED when the configuration lookup or the write fails.
upsertSourceEntries(input: UpsertSourceEntriesInput!): UpsertSourceEntriesPayload!Arguments
Returns
mutation UpsertSourceEntries($input: UpsertSourceEntriesInput!) {
upsertSourceEntries(input: $input) {
receipt {
id
}
}
}{
"input": {
"entries": [
{
"entryId": "string",
"properties": [
{
"propertyId": "string",
"value": {}
}
]
}
],
"sourceId": "string"
}
}{
"data": {
"upsertSourceEntries": {
"receipt": {
"id": "value"
}
}
}
}Was this page helpful?