👋 Welcome to the new Omni docs! We're still migrating, but the old docs are available at docs-legacy.omni.co.
cURL
curl --request POST \ --url https://{instance}.omniapp.co/api/v1/models \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "modelKind": "SCHEMA", "modelName": "<string>", "accessGrants": [ { "name": "<string>", "accessBoostable": true } ] } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "modelKind": "<string>", "name": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Create a new model (schema or shared)
Use either an Organization API Key or Personal Access Token (PAT). Include in the Authorization header as: Bearer YOUR_TOKEN
Bearer YOUR_TOKEN
Connection identifier
Model type
SCHEMA
Model name
Show child attributes
Model created successfully
Was this page helpful?