Skip to main content
PATCH
/
v1
/
api
/
marketplace
Update Marketplace
curl --request PATCH \
  --url https://api.lygosapp.com/v1/api/marketplace/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'api-key: <api-key>' \
  --form name= \
  --form color= \
  --form fee=0 \
  --form 'logo=<string>' \
  --form 'favicon=<string>' \
  --form form_blocks= \
  --form logo.0='@example-file' \
  --form favicon.0='@example-file'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fee": 123,
  "is_active": true,
  "api_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "color": "<string>",
  "logo": {
    "url": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "entityType": "<string>",
    "contentType": "<string>",
    "fileName": "<string>",
    "fileType": "<string>",
    "fileKey": "<string>",
    "fileSize": 123
  },
  "favicon": "<string>",
  "form_blocks": [
    {
      "fieldName": "<string>",
      "fieldType": "<string>",
      "required": true,
      "fieldLabel": "<string>",
      "fieldDescription": "<string>",
      "fieldOptions": [
        {
          "name": "<string>",
          "value": "<string>"
        }
      ]
    }
  ]
}

Headers

api-key
string | null
required

Body

multipart/form-data
name
string | null
default:""
color
string | null
default:""
fee
number | null
default:0
logo
favicon
form_blocks
string | null
default:""

Response

Successful Response

id
string<uuid>
required
fee
number
required
is_active
boolean
required
api_key_id
string<uuid>
required
created_at
string<date-time>
required
name
string
color
string | null
logo
ImageSchema · object
favicon
string | null
form_blocks
MarketFormBlock · object[] | null