Skip to content

Comments

Move "Refetch host by token" to public API#40017

Open
noahtalerman wants to merge 5 commits intomainfrom
noahtalerman-patch-74
Open

Move "Refetch host by token" to public API#40017
noahtalerman wants to merge 5 commits intomainfrom
noahtalerman-patch-74

Conversation

@noahtalerman
Copy link
Member

@noahtalerman noahtalerman commented Feb 18, 2026

fleet-release
fleet-release previously approved these changes Feb 18, 2026
@noahtalerman noahtalerman changed the title Move "Refetch by device token" to public API Move "Refetch host by token" to public API Feb 18, 2026
@noahtalerman noahtalerman marked this pull request as ready for review February 18, 2026 15:23
fleet-release
fleet-release previously approved these changes Feb 18, 2026
Comment on lines -3183 to -3190
#### 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>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! I broke them out.

noahtalerman pushed a commit that referenced this pull request Feb 20, 2026
fleet-release
fleet-release previously approved these changes Feb 20, 2026
fleet-release
fleet-release previously approved these changes Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants