Skip to content

Commit 22e2ef2

Browse files
waleedlatif1claude
andcommitted
fix(box): remove unsupported reason param from cancel sign request
The Box Sign cancel endpoint (POST /sign_requests/{id}/cancel) does not accept a request body per the API specification. Remove the misleading reason parameter from the tool, types, block config, and docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8453d4b commit 22e2ef2

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

apps/docs/content/docs/en/tools/box_sign.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ With the Box Sign integration in Sim, you can:
2424
The Box Sign integration is ideal for automating document signing workflows such as offer letters, contracts, NDAs, and approval processes. Agents can create sign requests from documents already stored in Box, track completion, and trigger follow-up actions based on signing status.
2525
{/* MANUAL-CONTENT-END */}
2626

27+
2728
## Usage Instructions
2829

2930
Integrate Box Sign into your workflow to send documents for e-signature. Create sign requests with multiple signers, track signing status, list all requests, cancel pending requests, and resend reminders. Ideal for offer letters, contracts, and other documents requiring signatures.
@@ -144,7 +145,6 @@ Cancel a pending Box Sign request
144145
| Parameter | Type | Required | Description |
145146
| --------- | ---- | -------- | ----------- |
146147
| `signRequestId` | string | Yes | The ID of the sign request to cancel |
147-
| `reason` | string | No | Optional reason for cancellation |
148148

149149
#### Output
150150

apps/sim/blocks/blocks/box_sign.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,6 @@ export const BoxSignBlock: BlockConfig = {
186186
},
187187
},
188188

189-
// Cancel-specific fields
190-
{
191-
id: 'reason',
192-
title: 'Cancellation Reason',
193-
type: 'short-input',
194-
placeholder: 'Optional reason for cancellation',
195-
condition: { field: 'operation', value: 'cancel_request' },
196-
},
197-
198189
// List fields
199190
{
200191
id: 'limit',
@@ -259,7 +250,6 @@ export const BoxSignBlock: BlockConfig = {
259250
break
260251
case 'cancel_request':
261252
baseParams.signRequestId = rest.signRequestId
262-
if (rest.reason) baseParams.reason = rest.reason
263253
break
264254
case 'list_requests':
265255
if (rest.limit) baseParams.limit = Number(rest.limit)

apps/sim/tools/box_sign/cancel_request.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ export const boxSignCancelRequestTool: ToolConfig<BoxSignCancelRequestParams, Bo
2626
visibility: 'user-or-llm',
2727
description: 'The ID of the sign request to cancel',
2828
},
29-
reason: {
30-
type: 'string',
31-
required: false,
32-
visibility: 'user-or-llm',
33-
description: 'Optional reason for cancellation',
34-
},
3529
},
3630

3731
request: {
@@ -41,12 +35,7 @@ export const boxSignCancelRequestTool: ToolConfig<BoxSignCancelRequestParams, Bo
4135
Authorization: `Bearer ${params.accessToken}`,
4236
'Content-Type': 'application/json',
4337
}),
44-
body: (params) => {
45-
if (params.reason) {
46-
return { reason: params.reason }
47-
}
48-
return {}
49-
},
38+
body: () => ({}),
5039
},
5140

5241
transformResponse: async (response) => {

apps/sim/tools/box_sign/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export interface BoxSignListRequestsParams {
3434
export interface BoxSignCancelRequestParams {
3535
accessToken: string
3636
signRequestId: string
37-
reason?: string
3837
}
3938

4039
export interface BoxSignResendRequestParams {

0 commit comments

Comments
 (0)