# Partially Solved: New record via POSTMAN is created with a null value

**URL:** <https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143>\
**Category:** Uncategorized\
**Created:** [October 5, 2015, 2:16am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143 "2015-10-05T02:16:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![askar](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/askar/32/78_2.png) [@askar](https://discuss.jsonapi.org/u/askar)\
**Post date:** [October 5, 2015, 2:16am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143/1 "2015-10-05T02:16:22Z")

</div>

Backend based on @tkellen 's [endpoints](https://github.com/endpoints/endpoints):

[http://node-api-pg.herokuapp.com/v1/posts/](http://node-api-pg.herokuapp.com/v1/posts/)

As in the screenshot, I specified only `title` as `post15`, but it’s creating `title` with a `null` value.

 ![](https://us1.discourse-cdn.com/flex016/uploads/jsonapi/original/1X/2774ea23304c0f9835781884a04e279f67f82055.png)

---

<div class="post-metadata">

**Author:** ![askar](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/askar/32/78_2.png) [@askar](https://discuss.jsonapi.org/u/askar)\
**Post date:** [October 5, 2015, 2:46am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143/2 "2015-10-05T02:46:05Z")

</div>

I was able to create a new record by:

1. Specifying the headers with `Content-Type` and `Accept` with `application/vnd.api+json`

2. Input in Body as `raw` with the following format:

**Question:** Can’t we create a record by specifying a `key-value` ?

---

<div class="post-metadata">

**Author:** ![ethanresnick](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ethanresnick](https://discuss.jsonapi.org/u/ethanresnick)\
**Post date:** [October 12, 2015, 12:17am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143/3 "2015-10-12T00:17:42Z")

</div>

JSON API-compliant APIs expect data submitted to them to be in JSON. However, when you use Postman to submit key-value combinations (with the form-data checkbox), the data submitted to the server is _not_ JSON. Instead, it’s `multipart/form-data` data. Therefore, it won’t work with any APIs that expect JSON (whether the API is JSON API compliant or not).

---

<div class="post-metadata">

**Author:** ![askar](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/askar/32/78_2.png) [@askar](https://discuss.jsonapi.org/u/askar)\
**Post date:** [October 12, 2015, 12:39am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143/4 "2015-10-12T00:39:25Z")

</div>

Can’t I submit data in JSON format in Postman at all?

---

<div class="post-metadata">

**Author:** ![ethanresnick](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ethanresnick](https://discuss.jsonapi.org/u/ethanresnick)\
**Post date:** [October 12, 2015, 3:26am UTC](https://discuss.jsonapi.org/t/partially-solved-new-record-via-postman-is-created-with-a-null-value/143/5 "2015-10-12T03:26:19Z")

</div>

Yes, you can do it just like you did earlier. That is, you use the raw option in Postman for the body, and enter the JSON there. Then you set the Content-Type header to `application/vnd.api+json`
