# Relationship attributes in POST body

**URL:** <https://discuss.jsonapi.org/t/relationship-attributes-in-post-body/1951>\
**Category:** Uncategorized\
**Created:** [May 20, 2020, 6:42am UTC](https://discuss.jsonapi.org/t/relationship-attributes-in-post-body/1951 "2020-05-20T06:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakeshmalik91](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/rakeshmalik91/32/689_2.png) [@rakeshmalik91](https://discuss.jsonapi.org/u/rakeshmalik91)\
**Post date:** [May 20, 2020, 6:42am UTC](https://discuss.jsonapi.org/t/relationship-attributes-in-post-body/1951/1 "2020-05-20T06:42:30Z")

</div>

We have following response in JSON:API format for GET

GET api/v1//book/123

> ```
> {
> "data": {
> "type": "book",
> "id": "123",
> "attributes": {
> "name": "Origin"
> },
> "relationships": {
> "author": {
> "type" : "person",
> "id": "123"
> }
> },
> "included": [{
> "type" : "person",
> "id": "123",
> "attributes": {
> "name": "Dan Brown"
> }
> }]
> }
> }
> 
> ```

for POST input body how should we place the attributes for author

One possible way I could think of is the following

POST api/v1/book

> ```
> {
> "data": {
> "type": "book",
> "attributes": {
> "name": "Origin"
> },
> "relationships": {
> "author": {
> "type" : "person",
> "attributes": {
> "name": "Dan Brown"
> }
> }
> }
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![cmeeren](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/cmeeren/32/596_2.png) [@cmeeren](https://discuss.jsonapi.org/u/cmeeren)\
**Post date:** [May 22, 2020, 4:58pm UTC](https://discuss.jsonapi.org/t/relationship-attributes-in-post-body/1951/2 "2020-05-22T16:58:25Z")

</div>

Unfortunately, the spec currently doesn’t support this. It’s heavily requested and discussed, though. Search this forum and the [GitHub issues](https://github.com/json-api/json-api/issues/) for phrases like “sideposting”, “sideloading” and “post related”, and you’ll get many relevant results. 🙂
