Create a rules engine timeline comment

Request

Creates a rules engine timeline comment.

Security
SecretApiKey or JWT
Path
eventTypestringrequired

Type of event.

Bodyapplication/jsonrequired

Rules engine timeline resource.

messagestring

Contents of the timeline message.

curl -i -X POST \
  'https://www.rebilly.com/_mock/catalog/all/events/{eventType}/timeline' \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "message": "string"
  }'

Responses

Rules engine timeline comment created.

Headers
Locationstring, (uri)

Location of the related resource.

Example:"https://api.rebilly.com/example"
X-RateLimit-Limitinteger

Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.

Example:3600
X-RateLimit-Remaininginteger

Remaining number of rate limit tokens for this request within the rate limit period. For example, in the sandbox environment, rate limits for non-GET endpoints are set at 3000 requests per 10 minutes.

Example:3600
Bodyapplication/json
idstring, <= 50 charactersread-only

ID of the timeline message.

Example:"tmln_0YV8Q9WEF5DTA8HFXS27D1G6GC"
typestringread-only

Type of timeline message.

Enum:"timeline-comment-created""ruleset-created""ruleset-changed"
triggeredBystringread-only

Specifies who, or what, triggered the timeline event.

Enum:"rebilly""app""direct-api"
messagestring

Contents of the timeline message.

extraDataobject(TimelineExtraData)read-only

Additional data.

occurredTimestring, (date-time)(ServerTimestamp)read-only

Date and time when the timeline message occurred.

Response
{ "id": "tmln_0YV8Q9WEF5DTA8HFXS27D1G6GC", "type": "timeline-comment-created", "triggeredBy": "rebilly", "message": "string", "extraData": { "actions": [], "tables": [], "author": {}, "mentions": {}, "links": [] }, "occurredTime": "2019-08-24T14:15:22Z", "_links": [ {} ] }