Partially update a widget type
Updates one or more fields of a widget type. Only the fields included in the request body are changed.
If name is provided, it must remain unique across all widget types.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the widget type.
The body of a widget type partial update request. Only the fields included are changed.
The unique name of the widget type.
The JSON schema that defines the structure of attributes for widgets of this type.
The updated widget type.
A widget type record.
The unique identifier of the widget type.
The unique name of the widget type.
The JSON schema that defines the structure of attributes for widgets of this type.
{}The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested widget type does not exist.
PATCH /api/v1/remote/1/widget_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"schema": {
"title": {
"type": "text",
"required": true
}
}
}{
"pk": 1,
"name": "hero_banner",
"schema": {
"title": {
"type": "text",
"required": true
},
"image": {
"type": "image",
"required": false
}
}
}Last updated
Was this helpful?

