Get Involved
Edit on GitHub

UpsertResourceInput

UpsertResourceInput

Upsert a resource for the given parent and type and with the given data. Optionally provide custom metadata, tags and akas. If akas are passed, the first one in the array will be used to look up if the resource already exists. If no akas are passed, the first resource type AKA metadata template will be rendered using the resource data and used to look up if the resource already exists

akas[String!]Optional akas for the resource to upsert
dataScalar!The data of the resource to upsert
metadataScalarOptional custom metadata of the resource to upsert
parentIDOptional: The parent of the resource to upsert, either as an id, or an AKA
tagsScalarOptional tags for the resource to upsert
typeID!The type of the resource to upsert, either as an id, or an AKA