Add a comment to an expiry

posthttps://api.expiryedge.com/v1/createExpiryComment
any member of the expiry's organization60/minIdempotency-Key
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/createExpiryComment' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "expiryId": "exp_4Tq9sLm2",
  "text": "Renewal form submitted to the board."
}'
Antwort
{
  "comment": {
    "id": "cmt_2Lx8",
    "expiryId": "exp_4Tq9sLm2",
    "text": "Renewal form submitted to the board.",
    "userId": "u_71bXq",
    "username": "Priya Shah",
    "edited": false,
    "timestamp": "2026-09-27T14:05:00.000Z"
  }
}

text is plain text (max 5000 characters); it is stored HTML-escaped with newlines as <br>.

Header

  • Idempotency-Keystring
    Optional client-generated key (1-255 characters of letters, digits, - _ : .).
    pattern: ^[A-Za-z0-9_\-:.]{1,255}$

Body-Parameter

application/json
  • expiryIdstringerforderlich
  • textstringerforderlich
    max length: 5000

Rückgabe

201
Comment created.
  • commentobjecterforderlich
    A comment on an expiry. text is HTML-escaped with newlines stored as <br>.

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
405
The endpoint does not accept this HTTP method.
409
A request with the same Idempotency-Key is still being processed. Retry after Retry-After seconds.
422
The Idempotency-Key was already used with a different request body.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.