{
  "id": "xidmprecord",
  "title": "XIDMPRECORD",
  "url": "https://redis.io/docs/latest/commands/xidmprecord/",
  "summary": "An internal command for setting IDMP metadata on an existing stream message.",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-05-25T10:30:01-07:00",
  "page_type": "content",
  "content_hash": "9e279c6bb1deb5f8321e741b1026f281a8152eee1a90d7eb0b9afa1e3ea6e681",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "`XIDMPRECORD` is an internal command for setting IDMP metadata on an existing stream message, which would be replayed during AOF loading.\nUsers should not call this command directly."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nis the name of a stream key.\n\n</details>\n\n<details open><summary><code>pid</code></summary>\n\nis a producer ID.\n\n</details>\n\n<details open><summary><code>iid</code></summary>\n\nis an IDMP (idempotency) ID.\n\n</details>\n\n<details open><summary><code>stream-id</code></summary>\n\nis the ID of an existing stream message.\n\n</details>"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n\n- A [simple string reply](https://redis.io/docs/latest/develop/reference/protocol-spec/#simple-strings) - `OK` when the provided pid/iid pair already maps to the same stream ID (that is, the command is idempotent).\n- A [simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in one of the following cases:\n    - the key does not exist\n    - the key does not refer to a stream\n    - the stream ID refers to an non-existent or deleted entry\n    - pid and/or iid are empty\n    - the pid/iid pair already maps to a different stream ID\n\n**RESP3:**\n\nOne of the following:\n\n- A [simple string reply](https://redis.io/docs/latest/develop/reference/protocol-spec/#simple-strings) - `OK` when the provided pid/iid pair already maps to the same stream ID (that is, the command is idempotent).\n- A [simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in one of the following cases:\n    - the key does not exist\n    - the key does not refer to a stream\n    - the stream ID refers to an non-existent or deleted entry\n    - pid and/or iid are empty\n    - the pid/iid pair already maps to a different stream ID"
    }
  ],
  "examples": []
}
