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 usethis query to retrieve the uuid corresponding to that resource/entity numeric id

Arguments

ArgumentTypeRequiredDefaultDescription
legacy_idInt!Yes
entityEntityType!Yes
analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

LegacyIdQueryResult

Query

query uuid(
  $legacy_id: Int!,
  $entity: EntityType!,
  $analyze: Boolean
) {
  uuid(
    legacy_id: $legacy_id,
    entity: $entity,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LegacyIdFragment
    }
  }
}

Variables

{
  "legacy_id": 987,
  "entity": "Account",
  "analyze": true
}

Response

{
  "data": {
    "uuid": {
      "request_id": "abc123",
      "complexity": 987,
      "data": LegacyId
    }
  }
}