Query parameters for POSTs and PATCHes
You can use the fields
query parameter with POSTs and PATCHes to control
which fields are returned in the response. For example, the following request creates a
new user. The response will contain the default fields for a User resource (such as
active
, id
, username
, and
vacationStatus
).
POST /admin/v1/users
The following request also creates a new user. But, the response will contain only the
id
.
POST /admin/v1/users?fields=id
The
fields
query parameter is the only parameter you can use with POSTs
and PATCHes.