> Hi. Thanks for the response. I did update the url used to use
> review-requests and I'm getting a different error. To recap, I am trying
> to generate a new review request via REST using a post. Can someone tell
> me what I am doing wrong? I am new to reviewboard. Thanks.
> apaladino$ curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy="
> -X POST "<review board url>/api/review-requests/" -d "{ \"repository\": 1,
> \"changenum\": 678516 }"
> {"fields": {"{ \"repository\": 1, \"changenum\": 678516 }": ["Field is not
> supported"], "repository": ["This field is required"]}, "stat": "fail",
> "err": {"msg": "One or more fields had errors", "code": 105}}
> Andy P
> From: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>
> Reply-To: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>
> Date: Monday, October 1, 2012 12:56 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>
> Subject: Re: REST API call to create a new review request
> __________________________________
> Type your response ABOVE THIS LINE to reply
> ________________________________
> Andy P
> Subject: REST API call to create a new review request
> ________________________________
> OCT 01, 2012 | 12:56PM PDT
> Christian Hammond replied:
> Hi Andy,
> Looks like you probably want the /api/review-requests/ path. Note the -.
> The reviewboard-dev mailing list may be useful to you for further
> questions, as there are several people on there who make use of the API.
> - Christian
> ________________________________
> OCT 01, 2012 | 09:32AM PDT
> Original message
> Andy wrote:
> Hi. Is there a way to create a new review request using REST? We are using
> version 1.6.3. I tried something like this but doesn't work.
> ________________________________
> This message was sent to andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com> in reference to Case #: 203.
> Andy P
> From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com>>
> Date: Monday, October 1, 2012 1:34 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>
> Cc: "reviewboard-dev@googlegroups.com<mailto:
> reviewboard-dev@googlegroups.com>" <reviewboard-dev@googlegroups.com
> <mailto:reviewboard-dev@googlegroups.com>>
> Subject: Re: REST API call to create a new review request
> Oh, you're uploading as JSON data. We require HTTP POST data. That's your
> biggest problem.
> On Mon, Oct 1, 2012 at 1:16 PM, Andy Paladino <Andy.Palad...@citrix.com
> <mailto:Andy.Palad...@citrix.com>> wrote:
> Hi. Thanks for the response. I did update the url used to use
> review-requests and I'm getting a different error. To recap, I am trying
> to generate a new review request via REST using a post. Can someone tell
> me what I am doing wrong? I am new to reviewboard. Thanks.
> apaladino$ curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy="
> -X POST "<review board url>/api/review-requests/" -d "{ \"repository\": 1,
> \"changenum\": 678516 }"
> {"fields": {"{ \"repository\": 1, \"changenum\": 678516 }": ["Field is not
> supported"], "repository": ["This field is required"]}, "stat": "fail",
> "err": {"msg": "One or more fields had errors", "code": 105}}
> Andy P
> From: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com
> ><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>
> Reply-To: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com
> ><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>
> Date: Monday, October 1, 2012 12:56 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>>
> Subject: Re: REST API call to create a new review request
> __________________________________
> Type your response ABOVE THIS LINE to reply
> ________________________________
> Andy P
> Subject: REST API call to create a new review request
> ________________________________
> OCT 01, 2012 | 12:56PM PDT
> Christian Hammond replied:
> Hi Andy,
> Looks like you probably want the /api/review-requests/ path. Note the -.
> The reviewboard-dev mailing list may be useful to you for further
> questions, as there are several people on there who make use of the API.
> - Christian
> ________________________________
> OCT 01, 2012 | 09:32AM PDT
> Original message
> Andy wrote:
> Hi. Is there a way to create a new review request using REST? We are using
> version 1.6.3. I tried something like this but doesn't work.
> ________________________________
> This message was sent to andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com>> in reference to Case #: 203.
Thanks. I did get this to work using your suggestion. However, I am unable to do a PUT using Java now. I tried to create a new topic for this in good reviewboard-dev groups but I don't think it went through.
Andy P
From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com>>
Date: Monday, October 1, 2012 2:05 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>
Cc: "reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>" <reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>>
Subject: Re: REST API call to create a new review request
The ?blah is GET query args. You can specify HTTP POST form data using:
Andy P
From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com><mailto:chip...@chipx86.com<mailto:chip...@chipx86.com>>>
Date: Monday, October 1, 2012 1:34 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>>
Cc: "reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>< mailto:reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups .com>>" <reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com>< mailto:reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups .com>>>
Subject: Re: REST API call to create a new review request
Oh, you're uploading as JSON data. We require HTTP POST data. That's your biggest problem.
On Mon, Oct 1, 2012 at 1:16 PM, Andy Paladino <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>> wrote:
Hi. Thanks for the response. I did update the url used to use review-requests and I'm getting a different error. To recap, I am trying to generate a new review request via REST using a post. Can someone tell me what I am doing wrong? I am new to reviewboard. Thanks.
apaladino$ curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy=" -X POST "<review board url>/api/review-requests/" -d "{ \"repository\": 1, \"changenum\": 678516 }"
{"fields": {"{ \"repository\": 1, \"changenum\": 678516 }": ["Field is not supported"], "repository": ["This field is required"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
Andy P
From: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
Reply-To: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
Date: Monday, October 1, 2012 12:56 PM
To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:Andy.Palad...@citrix.com>>>>
Subject: Re: REST API call to create a new review request
__________________________________
Type your response ABOVE THIS LINE to reply
________________________________
Andy P
Subject: REST API call to create a new review request
________________________________
OCT 01, 2012 | 12:56PM PDT
Christian Hammond replied:
Hi Andy,
Looks like you probably want the /api/review-requests/ path. Note the -.
The reviewboard-dev mailing list may be useful to you for further questions, as there are several people on there who make use of the API.
- Christian
________________________________
OCT 01, 2012 | 09:32AM PDT
Original message
Andy wrote:
Hi. Is there a way to create a new review request using REST? We are using version 1.6.3. I tried something like this but doesn't work.
________________________________
This message was sent to andy.palad...@citrix.com<mailto:andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com>><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:andy.palad...@citrix.com>>> in reference to Case #: 203.
> Thanks. I did get this to work using your suggestion. However, I am unable
> to do a PUT using Java now. I tried to create a new topic for this in good
> reviewboard-dev groups but I don't think it went through.
> Andy P
> From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com>>
> Date: Monday, October 1, 2012 2:05 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>
> Cc: "reviewboard-dev@googlegroups.com<mailto:
> reviewboard-dev@googlegroups.com>" <reviewboard-dev@googlegroups.com
> <mailto:reviewboard-dev@googlegroups.com>>
> Subject: Re: REST API call to create a new review request
> The ?blah is GET query args. You can specify HTTP POST form data using:
> On Mon, Oct 1, 2012 at 1:54 PM, Andy Paladino <Andy.Palad...@citrix.com
> <mailto:Andy.Palad...@citrix.com>> wrote:
> Ah, I see. Should this work then?
> Andy P
> From: Christian Hammond <chip...@chipx86.com<mailto:chip...@chipx86.com
> ><mailto:chip...@chipx86.com<mailto:chip...@chipx86.com>>>
> Date: Monday, October 1, 2012 1:34 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>>
> Cc: "reviewboard-dev@googlegroups.com<mailto:
> reviewboard-dev@googlegroups.com><mailto:reviewboard-dev@googlegroups.com
> <mailto:reviewboard-dev@googlegroups.com>>" <
> reviewboard-dev@googlegroups.com<mailto:reviewboard-dev@googlegroups.com
> ><mailto:reviewboard-dev@googlegroups.com<mailto:
> reviewboard-dev@googlegroups.com>>>
> Subject: Re: REST API call to create a new review request
> Oh, you're uploading as JSON data. We require HTTP POST data. That's your
> biggest problem.
> On Mon, Oct 1, 2012 at 1:16 PM, Andy Paladino <Andy.Palad...@citrix.com
> <mailto:Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>> wrote:
> Hi. Thanks for the response. I did update the url used to use
> review-requests and I'm getting a different error. To recap, I am trying
> to generate a new review request via REST using a post. Can someone tell
> me what I am doing wrong? I am new to reviewboard. Thanks.
> apaladino$ curl -k -H "Authorization: Basic YXBhbGFkaW5vOkNpdHJpeDExBHy="
> -X POST "<review board url>/api/review-requests/" -d "{ \"repository\": 1,
> \"changenum\": 678516 }"
> {"fields": {"{ \"repository\": 1, \"changenum\": 678516 }": ["Field is not
> supported"], "repository": ["This field is required"]}, "stat": "fail",
> "err": {"msg": "One or more fields had errors", "code": 105}}
> Andy P
> From: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com
> ><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:
> supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:
> supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
> Reply-To: Support <supp...@beanbaginc.com<mailto:supp...@beanbaginc.com
> ><mailto:supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>><mailto:
> supp...@beanbaginc.com<mailto:supp...@beanbaginc.com><mailto:
> supp...@beanbaginc.com<mailto:supp...@beanbaginc.com>>>>
> Date: Monday, October 1, 2012 12:56 PM
> To: Microsoft Office User <Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com><mailto:Andy.Palad...@citrix.com<mailto:
> Andy.Palad...@citrix.com>>>>
> Subject: Re: REST API call to create a new review request
> __________________________________
> Type your response ABOVE THIS LINE to reply
> ________________________________
> Andy P
> Subject: REST API call to create a new review request
> ________________________________
> OCT 01, 2012 | 12:56PM PDT
> Christian Hammond replied:
> Hi Andy,
> Looks like you probably want the /api/review-requests/ path. Note the -.
> The reviewboard-dev mailing list may be useful to you for further
> questions, as there are several people on there who make use of the API.
> - Christian
> ________________________________
> OCT 01, 2012 | 09:32AM PDT
> Original message
> Andy wrote:
> Hi. Is there a way to create a new review request using REST? We are using
> version 1.6.3. I tried something like this but doesn't work.
> ________________________________
> This message was sent to andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com>><mailto:andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com><mailto:andy.palad...@citrix.com<mailto:
> andy.palad...@citrix.com>>> in reference to Case #: 203.