object.describe
Description
This call returns a JSON schema description of each object specified.
Parameters
Object Types
An array of object type strings to describe
Locale
Any human oriented text returned will correspond to this locale. This parameter is optional and defaults to "en_US."
Response
An object is returned where each field corresponds to an object type that was passed. The value is a JSON schema description of that object.
Any unrecognized object type requested will be ignored in the response.
Examples
A Sample JSON-RPC Object Describe Request
{ "method": "object.describe", "params": [["role"], "en_US"], "id": 1 }
The JSON-RPC Response
{ "result": [ { "object_type": "role", "schema": { "type": "object", "properties": { "id": { "type": "integer", "readonly": true, "hidden": true, "unique": true, "title": "Role ID" }, "created": { "type": "string", "format": "date-time", "maxLength": 20, "readonly": true, "title": "Created" }, "updated": { "type": "string", "format": "date-time", "maxLength": 20, "readonly": true, "title": "Updated" }, "name": { "type": "string", "maxLength": 32, "optional": false, "unique": true, "title": "Name", "sortable": true }, "description": { "type": "string", "title": "Description" }, "is_assignable": { "type": "boolean", "readonly": true, "hidden": true, "title": "Assignable", "queryable": false }, "is_predefined": { "type": "boolean", "readonly": true, "hidden": true, "title": "Predefined", "queryable": false }, "object_type": { "type": "string", "maxLength": 32, "readonly": true, "default": "role", "hidden": true, "title": "Object Type", "queryable": false } } } } ], "error": null, "id": 1 }
Permissions Required
The user who owns the key used to authenticate the object.describe call must be a member of one of the following roles
- Administrator
- Program Manager
- Community Manager
- Content Manager
- Portal Manager
- Api Manager
See authentication.
Errors
This method returns only standard json-rpc errors and authentication errors.
Docs Navigation
- API Documentation Portal
- IO Docs Definition
- Mashery API Documentation
- Mashery 3.0 API Guide
- Mashery 2.0 API Guide
- OAuth Supporting Methods
- Examples
- JSON RPC
- Authentication
- API Objects
- Fetching Objects
- Query Language
- Creating Objects
- Updating Objects
- Validating Fields
- Deleting Objects
- Applications
- General Object Methods
- Members
- Packages
- Plans
- Package Keys
- Keys
- Developer Classes
- Services
- Roles
- Mashery 2.0 Reporting API Guide
- Event Trigger API
- Differences between Roles and Portal Access Groups
- Managing a Portal Access Group Using Mashery V2 or V3 API
- Mashery Reporting Event Post API Guide
- Tips and Tricks
- Your Portal
- API Traffic Manager
- I/O Docs WSDL requirements