Nevermind!
My bad. I was sending incorrect payload.
[
{
“eventId”: “7c314750-05e1-439f-b2eb-f5b0e019be72”,
“eventType”: “$metadata”,
“data”: {
“$maxCount”: 1
}
}
]
Now it works as expected
~> curl -i “http://eventstore-1.local:2113/streams/my-stream” -H “Accept:application/json” --user admin:changeit
HTTP/1.1 200 OK
Access-Control-Allow-Methods: POST, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Cache-Control: max-age=0, no-cache, must-revalidate
Vary: Accept
ETag: “37155;-43840953”
Content-Type: application/json; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 1318
Keep-Alive: timeout=15,max=100
{
“title”: “Event stream ‘my-stream’”,
“id”: “http://eventstore-1.local:2113/streams/my-stream”,
“updated”: “2016-02-08T11:46:36.16208Z”,
“streamId”: “my-stream”,
“author”: {
“name”: “EventStore”
},
“headOfStream”: true,
“selfUrl”: “http://eventstore-1.local:2113/streams/my-stream”,
“eTag”: “37155;248368668”,
“links”: [
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream”,
“relation”: “self”
},
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream/head/backward/20”,
“relation”: “first”
},
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream/37156/forward/20”,
“relation”: “previous”
},
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream/metadata”,
“relation”: “metadata”
}
],
“entries”: [
{
“title”: “37155@my-stream”,
“id”: “http://eventstore-1.local:2113/streams/my-stream/37155”,
“updated”: “2016-02-08T11:46:36.16208Z”,
“author”: {
“name”: “EventStore”
},
“summary”: “tick”,
“links”: [
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream/37155”,
“relation”: “edit”
},
{
“uri”: “http://eventstore-1.local:2113/streams/my-stream/37155”,
“relation”: “alternate”
}
]
}
]
}
``