Skip to content

Manage Case Links๐Ÿ”—

Create, update, and delete links to external systems (ServiceNow, 4Me, etc.) or internal resources on a case.

mutation createCaseLink($input: CreateCaseLinkInput!) {
    createCaseLink(input: $input) {
        id
        caseId
        url
        title
        type
        isInternal
        createdAt
    }
}

Variables๐Ÿ”—

{
    "input": {
        "caseId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
        "url": "https://company.service-now.com/nav_to.do?uri=/incident.do?sys_id=123abc",
        "reference": "INC0123456",
        "title": "ServiceNow Incident",
        "type": "ServiceNow",
        "isInternal": false
    }
}

Updates are partial (PATCH semantics) โ€” only provided fields are modified.

mutation updateCaseLink($input: UpdateCaseLinkInput!) {
    updateCaseLink(input: $input) {
        id
        caseId
        url
        title
        type
        isInternal
        updatedAt
    }
}

Variables๐Ÿ”—

{
    "input": {
        "id": "550e8400-e29b-41d4-a716-446655440400",
        "title": "ServiceNow Incident (Resolved)",
        "reference": "INC0123456"
    }
}
mutation deleteCaseLink($input: DeleteCaseLinkInput!) {
    deleteCaseLink(input: $input) {
        id
        caseId
        url
    }
}

Variables๐Ÿ”—

{
    "input": {
        "id": "550e8400-e29b-41d4-a716-446655440400"
    }
}

Notes๐Ÿ”—

  • Links can reference external systems (ServiceNow, 4Me, etc.) or internal resources.
  • reference is an optional identifier for the linked resource.
  • isInternal links are only visible to internal users and defaults to false. Only partner/MDR provider users can set it to true.
  • Retrieve a case's existing links via the links field on the case query. See Get a Case.
  • deleteCaseLink is a hard delete. Data will not be recoverable.