Overview
PUT/ecosystem/applications/{appId}/schema-grantsecosystem

Reconcile an application’s schema permissions

Persists the app’s grants as per-app bucket access-groups. Buckets must belong to the app’s ecosystem (404 otherwise); each table must belong to its bucket.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • appIdpathstring
Request body

application/json · optional

  • grantsobject[]
Example
{
  "grants": [
    {
      "schemaId": "string",
      "crud": "string",
      "tables": [
        {
          "tableId": "string",
          "crud": "string"
        }
      ]
    }
  ]
}
Responses
204

reconciled

No response body.

400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/ecosystem/applications/{appId}/schema-grants" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "grants": [
    {
      "schemaId": "string",
      "crud": "string",
      "tables": [
        {
          "tableId": "string",
          "crud": "string"
        }
      ]
    }
  ]
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/ecosystem/applications/{appId}/schema-grants", {
  method: "PUT",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"grants\": [\n    {\n      \"schemaId\": \"string\",\n      \"crud\": \"string\",\n      \"tables\": [\n        {\n          \"tableId\": \"string\",\n          \"crud\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
});
const data = await res.json();