{"_id":"5866d08ba2cbb31900f6f1ac","project":"5435693035740020002a1c1c","parentDoc":null,"category":{"_id":"5866c905a2cbb31900f6f1aa","version":"5435693035740020002a1c1f","__v":0,"project":"5435693035740020002a1c1c","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-12-30T20:52:21.720Z","from_sync":false,"order":8,"slug":"events","title":"Events"},"user":"543568c135740020002a1c10","version":{"_id":"5435693035740020002a1c1f","__v":14,"project":"5435693035740020002a1c1c","createdAt":"2014-10-08T16:41:20.702Z","releaseDate":"2014-10-08T16:41:20.702Z","categories":["5435693035740020002a1c20","551c03c1ff892b3700d1c57a","551ca3927405910d00900a59","551cac6448564a2f0024d89e","551cb4d848564a2f0024d8a3","551cb52db7a32b3b00d1ef78","5526e2064a7ac121004c6073","5526e5147d4a4417009516b3","5526e9877d4a4417009516bb","5528362cd9e1db2d00cd924d","5580240ebe698419008f2ba2","5580a7dabe698419008f2db6","568161799de23c0d00c54750","5866c905a2cbb31900f6f1aa"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-30T21:24:27.573Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"PUT /v1.0/events/23481830/confirmation HTTP/1.1\nHost: api.robinpowered.com\nContent-Type: application/json\nAuthorization: Access-Token :accessToken\n\n{\n}","language":"http"}]},"method":"put","results":{"codes":[{"name":"","code":"{\n  \"meta\": {\n    \"status_code\": 201,\n    \"status\": \"CREATED\",\n    \"message\": \"\",\n    \"more_info\": {}\n  },\n  \"data\": {\n    \"event_id\": \"23481830\",\n    \"user_id\": 42,\n    \"device_id\": null,\n    \"confirmed_at\": \"2016-12-30T21:24:08+0000\"\n  }\n}","language":"json","status":201},{"code":"{\n  \"meta\": {\n    \"status_code\": 400,\n    \"status\": \"BAD_REQUEST\",\n    \"message\": \"Too early to create a confirmation for this event.\",\n    \"more_info\": {}\n  },\n  \"data\": {}\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"551c07da23a1ee190034d0f7","ref":"","in":"path","required":true,"desc":"The ID of the event to get the confirmation for.","default":"","type":"string","name":"id"},{"_id":"5866d08ba2cbb31900f6f1ad","ref":"","in":"body","required":true,"desc":"Required if not authorized as a user.","default":"","type":"int","name":"device_id"}],"url":"/events/:id/confirmation"},"isReference":true,"order":4,"body":"","excerpt":"Confirms an event.","slug":"eventsidconfirmation-1","type":"endpoint","title":"/events/:id/confirmation"}

put/events/:id/confirmation

Confirms an event.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
The ID of the event to get the confirmation for.

Body Params

device_id:
required
integer
Required if not authorized as a user.

Examples


Result Format


User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}