cURL
curl --request PUT \ --url https://api.puppetvendors.com/v1/vendors/{vendorId}/profile \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "field": "<string>", "value": {} } '
Update a vendor’s custom profile fields
[ { "field": "companyName", "value": "Acme Corp" }, { "field": "taxId", "value": "GB123456789" } ]
{ "message": "Vendor profile updated successfully.", "vendor": { ... } }
curl -X PUT "https://api.puppetvendors.com/v1/vendors/6157faecbebcf01bf49097d9/profile" \ -H "Content-Type: application/json" \ -H "x-access-token: YOUR_JWT_TOKEN" \ -d '[ { "field": "companyName", "value": "Acme Corp" }, { "field": "phone", "value": "+44 20 7946 0958" } ]'