Skip to main content
PATCH
/
api
/
v1
/
events
/
{id}
cURL
curl --request PATCH \
  --url https://api.drgreennft.com/api/v1/api/v1/events/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-signature: <api-key>' \
  --data '
{
  "title": "<string>",
  "eventType": "<string>",
  "eventImageUrl": [
    "<string>"
  ],
  "description": "<string>",
  "startTime": "<string>",
  "endTime": "<string>",
  "location": "<string>",
  "ctaText": "<string>",
  "ctaUrl": "<string>",
  "organizedBy": "<string>",
  "isActive": true
}
'
{ "statusCode": 400, "message": "Validation failed", "data": [ "email must be a valid email", "phoneNumber should not be empty" ] }

Authorizations

x-auth-apikey
string
header
required

The holder's Base64-encoded PEM SPKI public key. Issued via POST /keys in the DAPP UI. See docs/02-authentication.md.

x-auth-signature
string
header
required

Base64-encoded ECDSA-SHA256 signature over the canonical payload. Curve: secp256k1. Canonical payload rules depend on HTTP method — POST/PATCH/PUT sign the JSON body; GET/DELETE with query sign urlencode(query); GET/DELETE with no query sign '{}'. See docs/02-authentication.md for the full spec.

Path Parameters

id
string
required

Body

application/json
title
string
required
eventType
string
required
eventImageUrl
string[]
required
description
string
required
startTime
string
required
endTime
string
required
location
string
ctaText
string
ctaUrl
string
organizedBy
string
isActive
boolean

Response