cURL
curl --request PUT \ --url https://api.puppetvendors.com/v2/vendors/{vendorId}/profile \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "fields": [ {} ] } '
Update a vendor’s custom profile fields
field
value
{ "success": true, "data": { "profile": { "fields": [ { "field": "Company Registration", "value": "12345678" }, { "field": "Website", "value": "https://acmesupplies.com" }, { "field": "Tax ID", "value": "GB987654321" } ] } } }
{ "success": false, "error": { "message": "Fields array is required and must contain 1-50 items", "code": "VALIDATION_ERROR" } }
{ "success": false, "error": { "message": "Vendor not found", "code": "NOT_FOUND" } }
curl -X PUT https://api.puppetvendors.com/v2/vendors/507f1f77bcf86cd799439011/profile \ -H "Content-Type: application/json" \ -H "x-access-token: YOUR_JWT_TOKEN" \ -d '{ "fields": [ { "field": "Tax ID", "value": "GB987654321" }, { "field": "Website", "value": "https://acmesupplies.com" } ] }'