I am trying to upload a diff via the REST API (https://www.reviewboard.org/docs/manual/2.5/webapi/2.0/resources/diff-list/#webapi2.0-diff-list-resource). As per the documentation, I am sending a POST request to /api/review-requests/####/diffs/ with multipart/form-data content. The content of the "path" field is my full context unified diff. However, I am getting a 400 response back with this body: {"fields": {"path": ["Unable to determine diff type from header"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}.
I don't see any reference to a "diff type header" anywhere in the REST API documentation. Where do I specify this? What are valid values? Thanks for pointing me in the right direction, KPF -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
