Dismiss a LinkedIn draft

Dismiss an open draft with an optional reason. An approved change is not dismissed; its owner cancels it in the app.

POSThttps://app.trygtm.com/api/v1/linkedin/drafts/{item_id}/dismiss
Scope
write

Path parameters

item_idstringrequired
The draft's id (itemId), from list_linkedin_drafts or a drafting tool.

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Body

reasonstring | nulloptional
Why, in the person's words.

Request

curl -X POST https://app.trygtm.com/api/v1/linkedin/drafts/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10/dismiss \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "manual"
  }'

Response

{
  "data": {
    "item_id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
    "state": "dismissed"
  }
}

Was this page helpful?