Initiate Copy Swap API
Learn how to initiate a Copy Swap for a new CL2C NFT using the `/v1/cl2c/copyswap` endpoint.
The PUT /v1/cl2c/copyswap
endpoint allows you to initiate a Copy Swap for a new CL2C NFT by providing the necessary identifiers for the NFT, the user, and the new owner.
Endpoint
PUT
/v1/cl2c/copyswap
Initiates the Copy Swap process for a new CL2C NFT.
Parameters
Name | Type | Location | Required | Description |
---|---|---|---|---|
tenant | string | Header | Yes | Tenant ID for accessing this API. |
X-API-Key | string | Header | Yes | API Key ID for accessing this API. |
Request Body
Content Type: application/json
Field | Type | Required | Description |
---|---|---|---|
nftId | string | Yes | The unique ID of the NFT being swapped. |
cL2CUserId | string | Yes | The ID of the CL2C user associated with the NFT. |
newOwnerId | string | Yes | The ID of the new owner for the NFT. |
Example Request Body
Responses
Success (200)
Content Type: application/json
The response returns the ID of the initiated Copy Swap process.
Example Response
Error Responses
The endpoint may return standard error responses for invalid requests or server issues.
Code Samples
Usage in Different Frameworks
Node.js Example