Skip to content

Commit 40b116d

Browse files
authored
Document callback URI application updates (#543)
1 parent fad2887 commit 40b116d

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Added Workspaces resource for managing workspaces, auto-grouping, manual assignment, `default`, `policy_id`, and `rule_ids`
88
* Added Domains resource and `ServiceAccountSigner` support for signed Service Account Manage Domains requests, including canonical signed bodies, encoded domain paths, info, and verify operations
99
* Added Applications update support (PATCH /v3/applications)
10+
* Documented Applications update `callback_uris` ID preservation and Workspaces `auto_group` filters
1011
* Corrected RedirectUris update verb from PUT to PATCH
1112
* Fixed HTTParty content type issue when request body is nil - POST, PUT, PATCH, and DELETE now default to empty object to ensure Content-Type: application/json is sent (#536)
1213
* Added support for request_body parameter on DELETE (e.g. cancellation_reason for bookings) (#536)

‎lib/nylas/resources/applications.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def get_details
2727

2828
# Update application details.
2929
#
30-
# @param request_body [Hash] The values to update the application with.
30+
# @param request_body [Hash] The values to update the application with. Include
31+
# +callback_uris+ entries with +id+ when preserving or updating existing
32+
# callback URIs.
3133
# @return [Array(Hash, String)] The updated application details and API Request ID.
3234
def update(request_body:)
3335
patch(

‎lib/nylas/resources/workspaces.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def destroy(workspace_id:)
8383
# Runs as a background job and returns immediately with a job ID. Rate limited to one
8484
# call per minute per application.
8585
#
86-
# @param request_body [Hash] Optional filters to scope which grants are grouped.
86+
# @param request_body [Hash] Optional filters to scope which grants are grouped,
87+
# including +after_created_at+, +invalid_also+, and +specific_domain+.
8788
# @return [Array(Hash, String, Hash)] The job info, API Request ID, and response headers.
8889
def auto_group(request_body: nil)
8990
post(

‎spec/nylas/resources/applications_spec.rb‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@
7777
subtitle: "string",
7878
background_color: "#003400",
7979
spacing: 5
80-
}
80+
},
81+
callback_uris: [
82+
{
83+
id: "0556d035-6cb6-4262-a035-6b77e11cf8fc",
84+
url: "https://example.com/callback",
85+
platform: "web"
86+
}
87+
]
8188
}
8289
path = "#{api_uri}/v3/applications"
8390
allow(application).to receive(:patch)

0 commit comments

Comments
 (0)