[GH-ISSUE #1318] Endpoint /api/v1/documents/{id}/fields/{fieldId} returns Unauthorized #372

Closed
opened 2026-02-26 18:46:44 +03:00 by kerem · 1 comment
Owner

Originally created by @Etrenak on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/documenso/documenso/issues/1318

Issue Description

Calling the PATCH /api/v1/documents/{id}/fields/{fieldId} with a non-null fieldMeta results in an Unauthorized response from the server.

Example payload :

{
  "recipientId": 3,
  "fieldMeta": {
    "text": "my super text"
  }
}

Steps to Reproduce

  1. Create a template with a field
  2. Create a document from the template
  3. Get the ID of the field from /documents/:id (With #1317)
  4. Try to update the field with a new fieldMeta

Expected Behavior

200 OK

Current Behavior

{"message":"Unauthorized"}

Screenshots (optional)

No response

Operating System [e.g., Windows 10]

No response

Browser [e.g., Chrome, Firefox]

No response

Version [e.g., 2.0.1]

No response

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @Etrenak on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/documenso/documenso/issues/1318 ### Issue Description Calling the PATCH `/api/v1/documents/{id}/fields/{fieldId}` with a non-null `fieldMeta` results in an Unauthorized response from the server. Example payload : ``` { "recipientId": 3, "fieldMeta": { "text": "my super text" } } ``` ### Steps to Reproduce 1. Create a template with a field 2. Create a document from the template 3. Get the ID of the field from /documents/:id (With #1317) 4. Try to update the field with a new fieldMeta ### Expected Behavior 200 OK ### Current Behavior {"message":"Unauthorized"} ### Screenshots (optional) _No response_ ### Operating System [e.g., Windows 10] _No response_ ### Browser [e.g., Chrome, Firefox] _No response_ ### Version [e.g., 2.0.1] _No response_ ### Please check the boxes that apply to this issue report. - [X] I have searched the existing issues to make sure this is not a duplicate. - [X] I have provided steps to reproduce the issue. - [X] I have included relevant environment information. - [X] I have included any relevant screenshots. - [X] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [X] I want to work on creating a PR for this issue if approved
kerem 2026-02-26 18:46:44 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2024):

Thank you for opening your first issue and for being a part of the open signing revolution!

One of our team members will review it and get back to you as soon as it possible 💚

Meanwhile, please feel free to hop into our community in Discord

<!-- gh-comment-id:2325335796 --> @github-actions[bot] commented on GitHub (Sep 2, 2024): Thank you for opening your first issue and for being a part of the open signing revolution! <br /> One of our team members will review it and get back to you as soon as it possible 💚 <br /> Meanwhile, please feel free to hop into our community in [Discord](https://documen.so/discord)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#372
No description provided.