Skip to main content
Question

Box Sign - BadRequest (roles are not working) - .NET

  • May 22, 2025
  • 2 replies
  • 25 views

Forum|alt.badge.img

Hello,

I have a problem with the BoxSignRequestSignerCreate object. It works only if I don't provide a Role parameter (default null). When I'm trying to use either BoxSignRequestSignerRole.signer or BoxSignRequestSignerRole.approver it doesn't work. What could be the reason for that behavior?

Code:

var signers = new List<BoxSignRequestSignerCreate>
                {
                    new BoxSignRequestSignerCreate()
                    {
                        Email = "xxxxxxxxxxxx",
                        Role = BoxSignRequestSignerRole.signer,
                    },
                    new BoxSignRequestSignerCreate()
                    {
                        Email = "yyyyyyyyyyy",
                        Role = BoxSignRequestSignerRole.approver,
                    },
                };

Error:

Box.V2.Exceptions.BoxAPIException: 'The API returned an error [BadRequest | 0ca9be4cc604db7b49c8d1333955f9761.0ca9be4cc604db7b49c8d1333955f9761] bad_request - Bad request'

Thanks

2 replies

Forum|alt.badge.img

Request via Postman works fine.


Forum|alt.badge.img

Our SDK team is looking into this! Thanks for the alert.