Title: REST API v2 &#8211; post (save) custom fields
Last modified: September 6, 2018

---

# REST API v2 – post (save) custom fields

 *  [arielesp](https://wordpress.org/support/users/arielesp/)
 * (@arielesp)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-v2-post-save-custom-fields/)
 * Hi,
    I’m trying to use wp api v2 endpoint for save new posts(and update) for 
   a wordpress. I can save normal post data … but I need save too the meta custom
   fields… The problem is… this doesnt works… custom fields arent save in DB
 * Anyone can help me ?
 * thanks

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-v2-post-save-custom-fields/#post-10665136)
 * Yeah, meta data is a little different. You must explicitly expose to the API 
   the meta data you want to get or manipulate. See [https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/](https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/)
 * The reason for this is some installations can have a ton of meta data which, 
   if all was arbitrarily sent with post requests, could significantly increase 
   the data transmitted, slowing down the entire process. By requiring us to expose
   meta data we’re interested in to the API, the amount of data sent for any given
   request will be much more efficient.

Viewing 1 replies (of 1 total)

The topic ‘REST API v2 – post (save) custom fields’ is closed to new replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-v2-post-save-custom-fields/#post-10665136)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
