Skip to main content

API Patch delete a single field

  • November 10, 2021
  • 5 replies
  • 151 views

Forum|alt.badge.img+4

I can’t find how i can delete a single field thru the API. And i rather stay away of the PUT command and feed everything back from a request, minus the one field i want to delete.
So… how can i empty a field or blank it with a patch command?

5 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • November 11, 2021

You should be able to just send an empty pair of quotation marks like this: ""


Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 11, 2021

I tried that, diden’t work. It’s a currency field. I’ll test if it works with another field type, but i need a solution for the currency field.


Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 11, 2021

So i did some testing. I can only delete a single line text field with a pair of quotation marks. It doesen’t work with the currency field and neither with a number field.


Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 11, 2021

That’s strange. It works with None. I thought i tried that befor but … seems something else wasen’t right, when i tried it the first time. :white_check_mark:


ScottWorld
Forum|alt.badge.img+35
  • Genius
  • November 11, 2021

For a currency field or a number field, just send the word null (without quotation marks around it). The quotation marks would turn it into a text string.