Skip to main content
PATCH
/
collections
/
{network}
/
{contract}
Update Collection Metadata
curl --request PATCH \
  --url https://api.inprocess.world/api/collections/{network}/{contract} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "newCollectionName": "<string>",
  "newUri": "<string>"
}
'
import requests

url = "https://api.inprocess.world/api/collections/{network}/{contract}"

payload = {
"newCollectionName": "<string>",
"newUri": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({newCollectionName: '<string>', newUri: '<string>'})
};

fetch('https://api.inprocess.world/api/collections/{network}/{contract}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inprocess.world/api/collections/{network}/{contract}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'newCollectionName' => '<string>',
'newUri' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.inprocess.world/api/collections/{network}/{contract}"

payload := strings.NewReader("{\n \"newCollectionName\": \"<string>\",\n \"newUri\": \"<string>\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.inprocess.world/api/collections/{network}/{contract}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"newCollectionName\": \"<string>\",\n \"newUri\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.inprocess.world/api/collections/{network}/{contract}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"newCollectionName\": \"<string>\",\n \"newUri\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "hash": "<string>",
  "chainId": 123
}
{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}

Authorizations

x-api-key
string
header
required

Artist API key for authentication. Get your API key from https://inprocess.world/manage/api-keys

Path Parameters

network
string
required

CAIP-2 chain reference in the format eip155:{chainId} (e.g. eip155:8453 for Base mainnet)

Example:

"eip155:8453"

contract
string
required

CAIP-style asset reference in the format erc1155:{address} (e.g. erc1155:0xabc...)

Example:

"erc1155:0x1234567890abcdef1234567890abcdef12345678"

Body

application/json
newCollectionName
string
required

New name of the Collection

newUri
string
required

New metadata URI (e.g., Arweave URI)

Response

Successful response

hash
string
required

Transaction hash of the update operation

chainId
integer
required

Chain ID where the transaction was executed