> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentarea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync Grants

> Mirror workspace membership into the graph backend (idempotent).

Resource ownership is granted at create time by ``grant_resource_owner`` and
was backfilled onto the ``resource`` model, so this endpoint only ensures the
workspace-member tuples that gate group defaults are present.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/access-control/sync
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/access-control/sync:
    post:
      tags:
        - v1
        - protected
        - access-control
      summary: Sync Grants
      description: >-
        Mirror workspace membership into the graph backend (idempotent).


        Resource ownership is granted at create time by ``grant_resource_owner``
        and

        was backfilled onto the ``resource`` model, so this endpoint only
        ensures the

        workspace-member tuples that gate group defaults are present.
      operationId: sync_grants_v1_access_control_sync_post
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/agentarea_api__api__v1__access_control__SyncResponse
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    agentarea_api__api__v1__access_control__SyncResponse:
      properties:
        collections:
          title: Collections
          type: integer
        written:
          title: Written
          type: integer
      required:
        - written
        - collections
      title: SyncResponse
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````