ScrepyDocs

Update a segment

Update a segment

PATCH/projects/{project_uid}/rank-tracker/segments/{segment_id}

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a REST API key in Settings > Connected Apps. MCP credentials do not authenticate this API.

In: header

Path Parameters

project_uid*string

Accessible project UID. Discover it with GET /projects; do not guess it.

Match^[a-z0-9]{10}$
segment_id*integer

Project-scoped numeric segment ID returned by the segment list.

Range1 <= value

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/projects/string/rank-tracker/segments/1" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "rules": [      {        "field": "path",        "operator": "starts_with",        "value": "string"      }    ]  }'
{  "data": {    "id": 0,    "name": "string",    "rules": [      {        "field": "path",        "operator": "starts_with",        "value": "string"      }    ],    "matched_count": 0,    "avg_position": 0  }}