uuid
When using the old webhooks, you might receive resource IDs as numeric IDs. If you need any of those IDs in one of our new queries or mutations, you can use this query to retrieve the UUID corresponding to that resource or entity's numeric ID.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
legacy_id | BigInt! | Yes | ||
entity | EntityType! | Yes | ||
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query uuid(
$legacy_id: BigInt!,
$entity: EntityType!,
$analyze: Boolean
) {
uuid(
legacy_id: $legacy_id,
entity: $entity,
analyze: $analyze
) {
request_id
complexity
data {
legacy_id
id
}
}
}Variables
{
"legacy_id": BigInt,
"entity": "Account",
"analyze": true
}Response
{
"data": {
"uuid": {
"request_id": "abc123",
"complexity": 987,
"data": LegacyId
}
}
}