> For the complete documentation index, see [llms.txt](https://peoplescourt.ai/llms.txt). This page is also available as Markdown.

# Accept changed Rules and disclosure for a held connector grant

Resumes a held connector grant after the person accepts the exact current Rules and AI disclosure in their signed-in account. Requests carrying a bearer, a party token or an OAuth-derived session are refused. The replaced terms stay in termsHistory.

Reference

Authorizations

PATCH

partial

`/api/authorizations/authority-grants`

`reacceptAccountConnectorGrant`

## Authentication and authority

Use one listed account-session, scoped OAuth, or partner credential alternative. Account tokens retain the approving account’s authority. Cookie-authenticated writes require same-origin authorization. Alternatives are OR; schemes in one alternative are AND.

`CanonicalSession`

The signed-in account’s session. Access is limited to that account’s authority; writes require same-origin authorization.

## Parameters

This operation has no path, query, or header parameters.

## Request body

Required request body.

application/json

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "accepted": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "terms": {
      "$ref": "#/components/schemas/AccountOAuthTerms",
      "type": "object",
      "properties": {
        "rulesVersion": {
          "type": "string"
        },
        "rulesHash": {
          "type": "string"
        },
        "disclosureVersion": {
          "type": "string"
        },
        "disclosureHash": {
          "type": "string"
        }
      },
      "required": [
        "rulesVersion",
        "rulesHash",
        "disclosureVersion",
        "disclosureHash"
      ]
    }
  },
  "required": [
    "id",
    "accepted",
    "terms"
  ]
}
```

## Responses

### 200

Successful operation.

application/json

```json
{
  "type": "object",
  "properties": {
    "reaccepted": {
      "type": "boolean"
    },
    "grantId": {
      "type": "string"
    },
    "terms": {
      "$ref": "#/components/schemas/AccountOAuthTerms",
      "type": "object",
      "properties": {
        "rulesVersion": {
          "type": "string"
        },
        "rulesHash": {
          "type": "string"
        },
        "disclosureVersion": {
          "type": "string"
        },
        "disclosureHash": {
          "type": "string"
        }
      },
      "required": [
        "rulesVersion",
        "rulesHash",
        "disclosureVersion",
        "disclosureHash"
      ]
    }
  },
  "required": [
    "reaccepted",
    "grantId",
    "terms"
  ]
}
```

### default

Authorization failure; consent_required means the displayed terms are no longer current, and reacceptance_not_required means the grant is not held.

application/json

```json
{
  "$ref": "#/components/schemas/AccountOAuthError",
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "error_description": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ]
}
```

## Example response

### Successful response

```json
{
  "reaccepted": false,
  "grantId": "grantId_test",
  "terms": {
    "rulesVersion": "rulesVersion_test",
    "rulesHash": "rulesHash_test",
    "disclosureVersion": "disclosureVersion_test",
    "disclosureHash": "disclosureHash_test"
  }
}
```

## Errors

Read the response status and stable error code. See [errors](https://peoplescourt.ai/docs/api/errors.md) and [rate limits](https://peoplescourt.ai/docs/api/rate-limits.md) for recovery. Refresh the resource before resolving a state or digest conflict.

## Idempotency and retries

- For throttling, honor Retry-After when present. Back off on retryable server failures.
- The request is accepted only when its credential, authority, case state, and resource preconditions are satisfied.

## Request examples

Use `https://peoplescourt.ai` with the test credential issued for your integration.

```sh
curl --request PATCH \
  --url 'https://peoplescourt.ai/api/authorizations/authority-grants' \
  --header 'Cookie: arb_session=COPY_ACCOUNT_SESSION' \
  --header 'Origin: https://peoplescourt.ai' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "id_test",
  "accepted": true,
  "terms": {
    "rulesVersion": "rulesVersion_test",
    "rulesHash": "rulesHash_test",
    "disclosureVersion": "disclosureVersion_test",
    "disclosureHash": "disclosureHash_test"
  }
}'
```

```ts
const input = {
  "id": "id_test",
  "accepted": true,
  "terms": {
    "rulesVersion": "rulesVersion_test",
    "rulesHash": "rulesHash_test",
    "disclosureVersion": "disclosureVersion_test",
    "disclosureHash": "disclosureHash_test"
  }
};

const response = await fetch("https://peoplescourt.ai/api/authorizations/authority-grants", {
  method: "PATCH",
  headers: {
    "Cookie": "arb_session=COPY_ACCOUNT_SESSION",
    "Origin": "https://peoplescourt.ai",
    "Content-Type": "application/json"
  },
  body: JSON.stringify(input),
});
if (!response.ok) throw await response.json();
const result = await response.json();
```

```python
import requests

response = requests.patch(
    "https://peoplescourt.ai/api/authorizations/authority-grants",
    headers={
      "Cookie": "arb_session=COPY_ACCOUNT_SESSION",
      "Origin": "https://peoplescourt.ai",
      "Content-Type": "application/json"
    },
    json={"id": "id_test", "accepted": True, "terms": {"rulesVersion": "rulesVersion_test", "rulesHash": "rulesHash_test", "disclosureVersion": "disclosureVersion_test", "disclosureHash": "disclosureHash_test"}},
    timeout=30,
)
response.raise_for_status()
result = response.json()
```
