pods icon indicating copy to clipboard operation
pods copied to clipboard

Cannot modify custom field via REST API if added to Media content type

Open hakakou opened this issue 3 years ago • 0 comments

Description

I have added a field named "checksum" to a custom post type and to the media type:

Of course 1) REST API tab / Enable is checked and 2) the field options / REST API / both Read and Write via REST is enabled.

Via the rest endpoint, I can view the value of checksum on each media page that I've added via the WP editor. However I cannot update it via the REST endpoint.

  • In the json uploaded, the property looks like: { ... "checksum": "42" ... }
  • Also tried: { ... "checksum": 42 ... }
  • The JSON returned in both cases via the post method: contains {..."checksum": [False] ... } and the value is not updated.

This happens only to the Media type. The same exact field works correctly in a custom content type I created.

Version

2.8.8.1

Testing Instructions

No response

Screenshots / Screencast

image

Possible Workaround

No response

Site Health Information

No response

Pods Package

No response

hakakou avatar Jan 27 '22 00:01 hakakou