Owner Check
Verify whether the supplied X-Owner-Token or X-Manage-Key owns the resource
Changed onReturns {isOwner, type}, plus format for an html-type resource. 404 or 410 exactly as reading the resource would answer. 200 with isOwner:false when no credential is sent or it does not own the resource.
get/api/{ns}/{id}/owner-check
Request
- Base URLhttps://brewpage.app
- Auth
- none
- or API key in header X-Owner-Token
- or API key in header X-Manage-Key
Path parameters
ns, string required
id, string required
Headers
X-Owner-Token, unknown
Owner token to verify
X-Manage-Key, unknown
Management key to verify
Response
OK
Owner Check Response required
type, string required
Resource type (html, kv, json, file, site)
format, 'html' | 'other'
Only for an html-type resource: html for an HTML page, other for any other stored format (Markdown, code or text). Absent for every other type
isOwner, boolean required
Changes
- warning
removed the optional property
ownerfrom the response with the status - info
the endpoint scheme security
ManageKeywas added to the API - info
added the new optional
headerrequest parameterX-Manage-Key
2 more changes in this revision
- warning