Skip to content

Document out of office API endpoints#387

Merged
jeremy merged 1 commit intobasecamp:masterfrom
robzolkos:api-out-of-office
Mar 20, 2026
Merged

Document out of office API endpoints#387
jeremy merged 1 commit intobasecamp:masterfrom
robzolkos:api-out-of-office

Conversation

@robzolkos
Copy link
Contributor

@robzolkos robzolkos commented Mar 11, 2026

Summary

  • Add sections/out_of_office.md with GET, PUT, DELETE endpoints nested under /people/:person_id/out_of_office
  • Note ISO 8601 date format for out_of_office in person JSON response (people.md)
  • Add Out of office to README endpoint index

Companion to basecamp/bc3#9925.

Copilot AI review requested due to automatic review settings March 11, 2026 13:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds documentation for the “out of office” API within the People section, describing how clients can read and update a user’s out-of-office status.

Changes:

  • Add “Get out of office” endpoint docs (GET /out_of_office.json) with example response.
  • Add “Update out of office” endpoint docs (PUT /out_of_office.json) with parameters and example request/cURL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 12, 2026 13:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

sections/out_of_office.md:106

  • The file defines a [1] footnote reference at the bottom, but [1] is never referenced in the document. Please remove the unused footnote or add a corresponding in-text reference so the link isn’t dead weight.
[1]: https://github.com/basecamp/bc3-api/blob/master/sections/people.md#get-person


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Add new out_of_office.md section with GET, PUT, DELETE endpoints nested
under people. Note ISO 8601 date format in person JSON response. Update
README endpoint index.
Copilot AI review requested due to automatic review settings March 20, 2026 05:08
@jeremy jeremy force-pushed the api-out-of-office branch from 96ec331 to bc30b33 Compare March 20, 2026 05:08
@jeremy jeremy merged commit 8285ca5 into basecamp:master Mar 20, 2026
2 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +43 to +47
* `POST /people/2/out_of_office.json` will enable or replace out of office for the person with the given ID.

Admins on accounts with a Pro Pack can enable out of office on behalf of other people. Otherwise, you can only manage your own out of office.

This endpoint will return `200 OK` with the current JSON representation of the out of office if the creation was a success. If the person already has an out of office set, it will be replaced.
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The PR description (and prior thread resolution) indicates this endpoint should be PUT, but this doc currently describes it as POST. Please align the HTTP verb here (and in the corresponding example markers/cURL) so the published contract is consistent.

Copilot uses AI. Check for mistakes.
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