Move "Refetch host by token" to public API#40017
Conversation
- Users/customers use it:
| #### Request headers | ||
|
|
||
| This endpoint accepts the `X-Client-Cert-Serial` header for authentication in addition to device token authentication. | ||
|
|
||
| The `Authorization` header must be formatted as follows: | ||
|
|
||
| ``` | ||
| X-Client-Cert-Serial: <fleet_identity_scep_cert_serial> |
There was a problem hiding this comment.
@marko-lisica this isn't relevant anymore right? IIRC we were going to use this when we required a SCEP cert for the iOS/iPadOS My device page. I think that's not the case anymore.
docs/REST API/rest-api.md
Outdated
| Flags the host details, labels and policies to be refetched the next time the host checks in for distributed queries. Note that we cannot be certain when the host will actually check in and update the query results. Further requests to the host APIs will indicate that the refetch has been requested through the `refetch_requested` field on the host object. | ||
|
|
||
| `POST /api/v1/fleet/hosts/:id/refetch` | ||
| `POST /api/v1/fleet/hosts/:id/refetch` or `POST /api/v1/fleet/device/:token/refetch` |
There was a problem hiding this comment.
@noahtalerman these are still separate endpoints, right? Even though it's duplicative, I think we should document these separately. (Maybe "Refetch host" and "Refetch host by Fleet Desktop token"?) It'd be easier to parse as a reader of the docs (likely to be referencing a single endpoint at a time). Less cognitive load to focus on 1 endpoint URL with 1 required parameter, versus 2 URLs and 2 parameters that may or may not be required depending on which URL you use.
There was a problem hiding this comment.
Makes sense! I broke them out.
To be consistent with naming in @noahtalerman's PR: #40017
Uh oh!
There was an error while loading. Please reload this page.