Skip to main content
PATCH
/
api
/
suppliers
/
{id}
Update Supplier
curl --request PATCH \
  --url https://app.polygonone.com/api/suppliers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fields": {
    "name": "<string>",
    "contactName": "<string>",
    "country": "<string>",
    "email": "jsmith@example.com",
    "address": {
      "street": "<string>",
      "postalCode": "<string>",
      "city": "<string>",
      "additional": "<string>",
      "validated": true,
      "latitude": 123,
      "longitude": 123
    },
    "externalSupplierId": "<string>"
  },
  "articleIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.

Path Parameters

id
string<uuid>
required

Body

application/json
fields
object

Supplier fields to update

articleIds
string<uuid>[]

Replace all article associations with this list of article IDs

Response

Updated successfully

success
boolean