Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The POST verb allows you to create a new object. All required fields must be in the payloadthe payload. Let's create a country with the following details:

...

The PUT verb allows you to update properties of an object. You must use the update request header and supply only the properties that need updating with the Update Request header. For more details see Update see Update Requests.

PATCH

The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once. Many objects in the platform are hierarchical in nature - consider an account package that has services and those services in turn have usage identifiers. To update the parent object we would use PUT. But, if you want to update one or more of the children/grandchildren use PATCH. Patch offers a couple of benefits over PUT in that:

...