Update Model Record

patch
Update some or all model record fields by primary key

https://YOUR_JET_BRIDGE_HOSTNAME/jet_api/models/:model/:pk/
Request
Response
Request
Path Parameters
model
required
string
Unique model name
pk
required
string
Model primary key
Headers
Authorization
optional
string
Token authentication, example: Authorization: Token f42a3cab3f146b283701a4e314f1c7ba57fdb59e
Form Data Parameters
FIELD_NAME_1
optional
string
FIELD_NAME_2
optional
number
FIELD_NAME_3
optional
boolean
Response
202: Accepted
Returns updated record with all fields (not only passed)
{
"id": 2,
"slug": "china",
"unique_name": "China",
"name": "China",
"alpha_3": "CHN",
"continent": null,
"order": 1,
// (optional) How to display record in interface
"__str__": "China"
}
403: Forbidden