---
title: "Create a RUM operation link"
method: POST
path: "/api/v2/rum/operations/strong_links"
tags: ["RUM Operations"]
---

# Create a RUM operation link

`POST /api/v2/rum/operations/strong_links`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/rum/operations/strong_links`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/rum/operations/strong_links/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a link between a RUM operation and a journey, confirming that the journey
belongs to the operation. The operation can be identified by `operation_id` or `operation_name`;
if `operation_name` does not match an existing operation, a stub operation is created.

## Request body

- RUMOperationStrongLinkCreateRequest: The request body for creating a RUM operation link.
  - `data` RUMOperationStrongLinkCreateRequestData, required: The data object for creating a RUM operation link.
    - `attributes` RUMOperationStrongLinkCreateRequestAttributes, required: Attributes for creating a RUM operation link.
      - `application_id` string, uuid: The RUM application ID used when creating a stub operation from `operation_name`.
      - `description` string, nullable: A description of the link.
      - `feature_id` string, required: The unique identifier of the journey to link.
      - `operation_id` string: The unique identifier of the RUM operation to link. Either `operation_id` or `operation_name` is required.
      - `operation_name` string: The name of the RUM operation to link. Either `operation_id` or `operation_name` is required. If no operation with this name exists, a stub operation is created.
      - `status` 'DRAFT' | 'CONFIRMED' | 'REJECTED': The status of a RUM operation link.
      - `tags` string[]: A list of tags associated with the link.
    - `type` 'strong_links', required: The JSON:API type for RUM operation link resources.

## Response `201`

Created

- RUMOperationStrongLinkResponse: The response for a single RUM operation link.
  - `data` RUMOperationStrongLinkResponseData, required: The data object in a RUM operation link response.
    - `attributes` RUMOperationStrongLinkResponseAttributes, required: Attributes of a RUM operation link response.
      - `created_at` string, date-time: The timestamp when the link was created.
      - `description` string, nullable: A description of the link.
      - `feature_id` string, required: The unique identifier of the linked journey.
      - `operation_id` string, required: The unique identifier of the linked RUM operation.
      - `status` 'DRAFT' | 'CONFIRMED' | 'REJECTED', required: The status of a RUM operation link.
      - `tags` string[]: A list of tags associated with the link.
      - `updated_at` string, date-time, nullable: The timestamp when the link was last updated.
    - `id` string, required: The unique identifier of the link, formatted as `<operation_id>:<feature_id>`.
    - `type` 'strong_links', required: The JSON:API type for RUM operation link resources.

## Other responses

- `400`: Bad Request
- `404`: Not Found. The referenced `operation_id` does not exist.
- `409`: Conflict. A link between this operation and journey already exists.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
