Stop or resume a collect target

POST
/v1/source-management/target-set-enabled

Set collect target enabled state using scope.contribute. Repeating the current state is safe. Resume requires stopped confirmation; it does not restart an ended apply or enable a disabled instance. No revision or retry key is required.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

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

application/json

curl -X POST "https://example.com/v1/source-management/target-set-enabled" \  -H "Content-Type: application/json" \  -d '{    "scope_id": "string",    "target_id": "string",    "enabled": true  }'
{  "target_id": "string",  "tracking": "enabled",  "result": {    "outcome": "saved",    "source_refs": [      {        "source_type": "string",        "source_id": "string",        "locator": {          "kind": "sequence",          "sequence": 0        }      }    ]  },  "error": "string",  "instance_id": "string",  "capability": "string",  "capability_version": "string",  "availability": "online",  "updated_at": "string",  "kind": "collect",  "enabled": true,  "source_refs": [    {      "source_type": "string",      "source_id": "string",      "locator": {        "kind": "sequence",        "sequence": 0      }    }  ],  "last_submitted_at": "string"}