Retrieve a widget type
Returns a single widget type by its identifier.
get/widget_types/{id}/
Authorizations
AuthorizationstringRequired
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Path parameters
idintegerRequired
The unique identifier of the widget type.
Responses
200
The requested widget type.
application/json
A widget type record.
pkintegerRead-onlyOptional
The unique identifier of the widget type.
namestring · max: 255Optional
The unique name of the widget type.
schemaobjectOptionalDefault:
The JSON schema that defines the structure of attributes for widgets of this type.
{}401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
404
The requested widget type does not exist.
application/json
get/widget_types/{id}/
GET /api/v1/remote/1/widget_types/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 1,
"name": "hero_banner",
"schema": {
"title": {
"type": "text",
"required": true
},
"image": {
"type": "image",
"required": false
}
}
}Last updated
Was this helpful?

