cURL
curl --request PUT \ --url https://api.us.lexful.app/v1/entities/{entityTypeName}/{entityId}/access_grants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-Account-ID: <api-key>' \ --data ' [ { "id": "019983a9-c4c0-73af-aec9-463feeadc2e7", "subject_type": "user" }, { "id": "019983a9-c4c1-7abc-def0-123456789abc", "subject_type": "group" } ] '
{ "status": 123, "message": "<string>", "error_id": "<string>", "error_code": "<string>", "developer_message": "<string>" }
Grant read access to users or groups for an entity (idempotent - duplicates ignored)
Bearer token
Account ID
Entity type name
Entity ID
Array of users or groups to grant or revoke access (max 100)
1 - 100
User or group ID
Type of subject (user or group)
user
group
Allowed IP deleted successfully
Was this page helpful?