API Reference

# Start editing a draft

Pause pending automatic work before editing the opportunity draft. Read get\_opportunity for the current revision.

Server URL`https://api.rankhog.com/`

POST

``/`agent`/`v1`/`growth`/`begin-opportunity-draft-edit`

Send

Authorization

Body

Pause pending automatic work before editing the opportunity draft. Read get\_opportunity for the current revision. Cache policy: live. Idempotency: required. Auth modes: api\_key, mcp\_oauth, session\_bearer.

## [Authorization](/content/docs/api/reference/begin_opportunity_draft_edit/index.html#authorization)

`apiKeyAuth`

AuthorizationBearer <token>

Rankhog organization API key sent as `Authorization: Bearer rhog_...`.

In: `header`

## [Request Body](/content/docs/api/reference/begin_opportunity_draft_edit/index.html#request-body)

`application/json`

TypeScript Definitions

Use the request body type in TypeScript.

Copy

organizationId\*string

Length`1 <= length <= 160`

websiteId\*string

Length`1 <= length <= 160`

managedRedditAccountId\*string

Length`1 <= length <= 160`

redditAccountId?string

Length`1 <= length <= 160`

idempotencyKey\*string

Length`1 <= length <= 200`

opportunityId\*string

Length`1 <= length <= 160`

## [Response Body](/content/docs/api/reference/begin_opportunity_draft_edit/index.html#response-body)

### 200  `application/json`

### 400  `application/json`

### 401  `application/json`

### 402  `application/json`

### 403  `application/json`

### 404  `application/json`

### 409  `application/json`

### 429  `application/json`

cURL

JavaScript

Go

Python

Java

C#

```
curl -X POST "https://api.rankhog.com/agent/v1/growth/begin-opportunity-draft-edit" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_demo",
    "websiteId": "site_demo",
    "managedRedditAccountId": "mra_demo",
    "idempotencyKey": "growth-request-1",
    "opportunityId": "opp_demo"
  }'
```

200400401402403404409429

```
{
  "status": "updated",
  "jobId": null
}
```

```
{
  "error": {
    "code": "agentic_invalid_input",
    "message": "Invalid capability input."
  }
}
```

```
{
  "error": {
    "code": "agentic_unauthorized",
    "message": "Authentication is required."
  }
}
```

```
{
  "error": {
    "code": "agentic_paid_plan_required",
    "message": "An active paid product is required."
  }
}
```

```
{
  "error": {
    "code": "agentic_missing_scope",
    "message": "The required permission has not been granted."
  }
}
```

```
{
  "error": {
    "code": "agentic_website_not_found",
    "message": "Product not found."
  }
}
```

```
{
  "error": {
    "code": "agentic_idempotency_conflict",
    "message": "This idempotency key was already used with different input."
  }
}
```

```
{
  "error": {
    "code": "agentic_write_rate_limited",
    "message": "Growth mutations are limited to 120 per actor and organization per hour."
  }
}
```

[Restart strategy setupPOST\\
\\
Retry failed strategy setup subject to the existing recovery cooldown and credit limits. Does not bypass the cooldown.](/content/docs/api/reference/recover_strategy_setup/index.html) [Recheck a card's Reddit postPOST\\
\\
Refresh the exact opportunity post and parent comment availability and metrics. Deduplicated and rate limited; never submits a Reddit action.](/content/docs/api/reference/refresh_opportunity_source/index.html)
