{"ok": true, "database": "docs", "table": "sections", "rows": [{"id": "internals:internals-datasette-client-actor", "page": "internals", "ref": "internals-datasette-client-actor", "title": "Authenticating as an actor", "content": "All  datasette.client  methods accept an optional  actor=  parameter. When set to a dictionary describing an actor, the request is made with a signed  ds_actor  cookie identifying that actor \u2014 as if the request had been made by a user who is signed in as that actor. \n                     This is a convenient shorthand equivalent to signing the cookie manually using  datasette.client.actor_cookie() . \n                     Example usage: \n                     response = await datasette.client.get(\n    \"/-/actor.json\", actor={\"id\": \"root\"}\n)\nassert response.json() == {\"actor\": {\"id\": \"root\"}} \n                     This parameter works with all HTTP methods ( get ,  post ,  put ,  patch ,  delete ,  options ,  head ) and the generic  request  method. \n                     Passing both  actor=  and a  ds_actor  cookie via  cookies=  raises a  TypeError . Other unrelated cookies can be combined with  actor= .", "breadcrumbs": "[\"Internals for plugins\", \"Datasette class\", \"datasette.client\"]", "references": "[]"}], "primary_keys": ["id"], "primary_key_values": ["internals:internals-datasette-client-actor"], "query_ms": 4.908024999167537, "truncated": false}