owncloud / owncloud/ocis

/graph api PATCH requests should by default not return a body

Open
#5,186 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

sth like
```
PATCH https://cloud.ocis.test/graph/v1.0/users/{id}
Content-type: application/json

{
"displayName": "Test User"
}
```

should return
```
HTTP/1.1 204 No Content
```

without a body.

If the representation is needed clients can send a `Prefer: return=representation` header.

See http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#_Toc31358878

Currenty, the /users endpoint always returns the full object.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.