Create or update an External Record Link on a Case
Creates a navigable context link on the Case, or updates labels and data when the same URL is already linked. Requires Idempotency-Key and cases:write.
Creates a navigable context link on the Case, or updates labels and data when the same URL is already linked. Requires Idempotency-Key and cases:write.
Create or update an External Record Link on a Case. Use an organization API key with cases:write. Check the response envelope and meta.requestId before triggering dependent workflow steps.
Required scopes
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idrequired | path | string | Case identifier returned by the Organization API. |
Request body
| Field | Type | Description |
|---|---|---|
| externalSystemrequired | string | Optional unless marked required. |
| externalSystemLabelrequired | string | Optional unless marked required. |
| objectLabelrequired | string | Optional unless marked required. |
| recordLabelrequired | string | Optional unless marked required. |
| urlrequired | string | Optional unless marked required. |
| externalId | string | null | Optional unless marked required. |
| data | object | Optional unless marked required. |
{
"externalSystem": "salesforce",
"externalSystemLabel": "Salesforce",
"objectLabel": "Account",
"recordLabel": "Paul Mundell",
"url": "https://example.my.salesforce.com/lightning/r/Account/001.../view"
}Responses
Updated External Record Link envelope
#/components/schemas/OrgApiResourceEnvelope
Created External Record Link envelope
#/components/schemas/OrgApiResourceEnvelope
Validation or idempotency error
#/components/schemas/OrgApiError
Missing or invalid organization API key
#/components/schemas/OrgApiError
Organization billing access or an endpoint-specific business quota denied the request
#/components/schemas/OrgApiError
Missing required scope: cases:write
#/components/schemas/OrgApiError
Case not found
#/components/schemas/OrgApiError
Idempotency conflict
#/components/schemas/OrgApiError
Rate limit exceeded
#/components/schemas/OrgApiError
Errors
Static examples
curl -X POST "$SOLAROS_BASE_URL/api/v1/cases/$SOLAROS_CASE/external-record-links" \
-H "Authorization: Bearer $SOLAROS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SOLAROS_IDEMPOTENCY_KEY" \
--data '{"externalSystem":"salesforce","externalSystemLabel":"Salesforce","objectLabel":"Account","recordLabel":"Paul Mundell","url":"https://example.my.salesforce.com/lightning/r/Account/001.../view"}'