---
updatedAt: 2025-11-06T00:11:15.000Z
agentTools:
  projectIndex: https://developer.luniverse.io/llms.txt
---

# updateIssuedPassbyId

이미 발급된 Pass를 재발급 받기 위한 API입니다. 기존에 발급된 이력이 있는 Pass Id와 Holder 주소에 대해 Pass를 재발행하고자 할 때 사용합니다.

## `lunvs-account-id`헤더에 들어갈 값은 어디서 확인할 수 있나요?

`lunvs-account-id`는 루니버스 계정 ID를 의미하는 값으로, 콘솔 사용자 ID를 구분하기 위한 값으로 사용됩니다. 모든 Web3 Pass API 요청에는 이 헤더가 공통으로 포함되어야 합니다. 입력 값은 루니버스 콘솔 우측 상단 프로필 > IAM 메뉴로 진입 후 아래와 같은 화면에서 'Alias'에 해당하는 값을 사용합니다 (붉은색 박스 영역).

![](https://files.readme.io/a9601a7-image.png)

<br />

## `signedMessage` 포맷 가이드

패스 생성을 위한 요청 메시지 원본인 signedMessage는 Object 형식으로, 아래와 같은 필드를 포함해야 합니다.

* `holder`: Pass를 발급할 NFT Holder의 주소입니다.
* `contractAddress`: NFT 컨트랙트의 주소입니다.
* `tokenId`: 해당 Holder가 보유한 토큰의 ID입니다. 한 Holder가 여러 토큰을 보유하고 있는 경우 대표 ID 하나만 사용합니다. 정수 형식으로 입력합니다.
* `environmentId`: Pass 발급을 요청하는 대상 환경 ID입니다.

<br />

## `signature` 생성 가이드

서명 데이터는 signedMessage를 eth\_signTypedData\_v4 형식으로 서명하여 생성합니다. 대표적인 지갑 어플리케이션인 MetaMask를 통해 eth\_signTypedData\_v4 형식의 서명 데이터를 만드는 방법 예시는 [여기](https://docs.metamask.io/wallet/how-to/sign-data/)에서 확인하실 수 있습니다.

아래 코드는 Chrome의 개발자 도구 콘솔에서 쉽게 서명 데이터를 만들어볼 수 있는 예제 코드입니다. API 테스트를 위해 활용해보세요.

```javascript
message = {
    "domain": {
      "name": "luniverse-pass",
      "version": "1"
    },
    "message": {
      "holder": "{EOA_ADDRESS}",
      "contractAddress": "{CONTRACT_ADDRESS}",
      "tokenId": 0,
      "environmentId": "{LUNIVERSE_ENVIRONMENT_ID}"
    },
    "primaryType": "Pass",
    "types": {
      "EIP712Domain": [
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "version",
          "type": "string"
        }
      ],
      "Pass": [
        {
          "name": "holder",
          "type": "address"
        },
        {
          "name": "contractAddress",
          "type": "address"
        },
        {
          "name": "tokenId",
          "type": "uint256"
        },
        {
          "name": "environmentId",
          "type": "string"
        }
      ]
    }
  }

msgParams = JSON.stringify(message)
ethereum.enable()
ethereum.request({method:'eth_signTypedData_v4', params:[ethereum.selectedAddress, msgParams], from: ethereum.selectedAddress})
```

<br />

## `eventId`는 어디서 확인할 수 있나요?

Event ID는 루니버스 콘솔의 좌측 메뉴에서 Web3 Pass > Events & Passes 메뉴 진입하여 Pass를 생성하고자 하는 대상 Event를 클릭하여 Event 상세 화면으로 진입한 후 주소창에서 확인하실 수 있습니다. 해당 페이지의 주소는 `https://console.luniverse.io/nft/events/{EventID}` 형식으로 구성되므로, /events/ 이후의 값을 복사하여 API 요청시 사용해주세요.

![](https://files.readme.io/3c7554a-image.png)

<br />

## `passId`는 어디서 확인할 수 있나요?

Pass ID는 Event 상세 화면 내 Pass 목록에서 실제 발행을 원하는 Pass를 클릭한 뒤 주소창에서 확인하실 수 있습니다. 해당 페이지 주소는 `https://console.luniverse.io/nft-pass/passes/{PassID}` 형식으로 구성되므로, /passes/ 이후의 값을 복사하여 API 요청시 사용해주세요.

![](https://files.readme.io/4ad9aa4-image.png)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "luniverse-web3-pass",
    "version": "1.0.3"
  },
  "servers": [
    {
      "url": "https://api.luniverse.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "AUTH-TOKEN"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pass/v1/issued-passes/{id}/holder": {
      "put": {
        "summary": "updateIssuedPassbyId",
        "description": "이미 발급된 Pass를 재발급 받기 위한 API입니다. 기존에 발급된 이력이 있는 Pass Id와 Holder 주소에 대해 Pass를 재발행하고자 할 때 사용합니다.",
        "operationId": "updateissuedpassbyid",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "재발급 요청된 Pass의 홀더 id",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lunvs-account-id",
            "in": "header",
            "description": "루니버스 IAM 계정의 Alias. 루니버스 콘솔 IAM 메뉴에서 확인할 수 있는 값으로, 사용자 구분자입니다.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "signature",
                  "signedMessage",
                  "eventId",
                  "passId"
                ],
                "properties": {
                  "signature": {
                    "type": "string",
                    "description": "signedMessage를 개인키로 서명한 서명 값."
                  },
                  "signedMessage": {
                    "type": "object",
                    "description": "Pass 생성 요청을 위한 요청 메시지 본문. 메시지 명세는 API 문서 페이지를 참고해주세요.",
                    "required": [
                      "holder",
                      "contractAddress",
                      "tokenId",
                      "environmentId"
                    ],
                    "properties": {
                      "holder": {
                        "type": "string",
                        "description": "NFT를 보유한 홀더의 주소입니다."
                      },
                      "contractAddress": {
                        "type": "string",
                        "description": "네트워크에 배포된 컨트랙트 주소입니다."
                      },
                      "tokenId": {
                        "type": "integer",
                        "description": "holder가 보유하고 있는 NFT의 ID 입니다.",
                        "format": "int32"
                      },
                      "environmentId": {
                        "type": "string",
                        "description": "생성한 노드 환경에 부여되는 ID. 19자리 숫자형식입니다."
                      }
                    }
                  },
                  "eventId": {
                    "type": "string",
                    "description": "재발급 요청된 Pass가 포함된 Event의 Id 값"
                  },
                  "passId": {
                    "type": "string",
                    "description": "재발급 요청된 Pass의 Id 값"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"result\": true,\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"2f5cfb56-9bc9-4f45-8162-a35d2f28f7af\",\n        \"holder\": \"0x40424f0b9183ce85fb6a947d5e9aae3c1ef94055\",\n        \"contractAddress\": \"0xb0497dc4a5d4146862f72f43373574c94d61a018\",\n        \"environmentId\": \"1644975539329967674\",\n        \"tokenId\": 6,\n        \"passId\": \"fda3c2ba-f9cb-4124-999c-0b380f0d9f2b\",\n        \"eventId\": \"a642d217-74e4-4e25-bf62-3b4c1c3d33e1\",\n        \"count\": 1000\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "2f5cfb56-9bc9-4f45-8162-a35d2f28f7af"
                        },
                        "holder": {
                          "type": "string",
                          "example": "0x40424f0b9183ce85fb6a947d5e9aae3c1ef94055"
                        },
                        "contractAddress": {
                          "type": "string",
                          "example": "0xb0497dc4a5d4146862f72f43373574c94d61a018"
                        },
                        "environmentId": {
                          "type": "string",
                          "example": "1644975539329967674"
                        },
                        "tokenId": {
                          "type": "integer",
                          "example": 6,
                          "default": 0
                        },
                        "passId": {
                          "type": "string",
                          "example": "fda3c2ba-f9cb-4124-999c-0b380f0d9f2b"
                        },
                        "eventId": {
                          "type": "string",
                          "example": "a642d217-74e4-4e25-bf62-3b4c1c3d33e1"
                        },
                        "count": {
                          "type": "integer",
                          "example": 1000,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```