DataAccess
Save global FAP template
Writes field_access_defaults on ecosystem project (id=1).
Auth: admin or owner on project 1.
Validates globals and each resource's path_rules. Does not change user projects until apply is called.
put/api/data-access/defaults-template
Request
- Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
- URL: https://api.agentstack.tech/api/data-access/defaults-template
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Headers
Idempotency-Keystring
Client-generated key to make mutating requests idempotent.
Request body
Example request
{
"default_access": "deny",
"globals": {
"max_mask_depth": 128,
"nested_path_mode": "dotted"
},
"resources": {
"orders": {
"__default__": "deny",
"id": "public",
"total": "user"
},
"project_payload": {
"__default__": "user",
"config": "admin"
}
}
}Response
Persisted template object
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.