All Versions

Version 1
Version 2


Page tree

Supplier API v2

Skip to end of metadata
Go to start of metadata

Updates basic information for a member who already exists within our API.

Endpoint Path

PATCH /members/{memberId}

Authentication

This endpoint requires Authentication.

Response Type

The response status will be 200: OK on success, or an appropriate Error Response.

Request Parameters

This request requires an appropriately encoded request body as defined in the section on making PATCH requests. Valid paths for PATCH are indicated by the PATCH column on the Members resource. 

A PATCH request may apply changes only to a single resource, but may update multiple paths on that resource with one request. For efficiency, you should only PATCH the appropriate paths that have changed from the API's current values for the member.

Examples

import requests
import json

uri = https://supplier-api.cmix.com/api/v2/members/M68674
headers = {
  "Authorization": "Basic Y3JpdGljYWxtaXg6dG9wc2VjcmV0",
  "Accept": "application/json",
  "Accept-Version": "1.0"
}
payload = {
  [
    {
      "op": "replace",
      "path": "address/postalcode",
      "value": "43558"
    },
    {
      "op": "replace",
      "path": "email",
      "value": "new.email@example.com"
    }
  ]
}
response = requests.patch(uri, headers=headers, json=payload)

 

  • No labels
Write a comment…