<div dir="ltr">Hi Frank, <div><br></div><div>1) Is the project version status "read-only" or "archived" before your REST request? Prior 4.0 (Openstack is running 3.9), the PUT command return 403 if the project version is not "Active" when performing the PUT command.</div><div><br></div><div>2) Since you got 401 (unauthorized), can you check if your username and API matches with information in <a href="https://translate.openstack.org/dashboard/settings/client">https://translate.openstack.org/dashboard/settings/client</a> (requires login).    </div><div><br></div><div><br></div><div><a href="https://translate.openstack.org/iteration/view/manila-ui/stable-newton">https://translate.openstack.org/iteration/view/manila-ui/stable-newton</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 17, 2017 at 2:18 AM, Frank Kloeker <span dir="ltr"><<a href="mailto:eumel@arcor.de" target="_blank">eumel@arcor.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
maybe someone can help with an authentification problem on Zanata REST API. I tried to switch the status of a version in a project with PUT request, described in [1]. I've setup a small ansible playbook as you can see in [2]. I've set X-Auth-User header and X-Auth-Token regarding my credentials. The account is maintainer of the project. What I've got if the status is already set is 200 OK what mean there is a good connection to API (I would expect another return code). When I send a request to change the status I became 401 not authorized what caused by wrong credentials or wrong X-Auth-Header settings. I didn't found any in documentation so maybe someone has an idea.<br>
<br>
thx Frank<br>
<br>
[1] <a href="https://zanata.ci.cloudbees.com/job/zanata-api-site/site/zanata-common-api/rest-api-docs/resource_ProjectVersionResource.html#resource_ProjectVersionResource_put_PUT" rel="noreferrer" target="_blank">https://zanata.ci.cloudbees.co<wbr>m/job/zanata-api-site/site/zan<wbr>ata-common-api/rest-api-docs/<wbr>resource_ProjectVersionResourc<wbr>e.html#resource_ProjectVersion<wbr>Resource_put_PUT</a><br>
[2] <a href="https://paste.fedoraproject.org/paste/OsdAmyIzXQXDLxgr62keMA" rel="noreferrer" target="_blank">https://paste.fedoraproject.or<wbr>g/paste/OsdAmyIzXQXDLxgr62keMA</a><br>
<br>
______________________________<wbr>_________________<br>
zanata-users mailing list<br>
<a href="mailto:zanata-users@redhat.com" target="_blank">zanata-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/zanata-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/zanata-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>ALEX</span> <span>ENG</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>SENIOR SOFTWARE ENGINEER, team lead</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>globalisation tooling, customer platform</span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank"><font color="#0088ce">Red Hat </font><span style="color:rgb(0,136,206);margin:0px">Asia-Pacific Pty Ltd</span></a></p><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"></span><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"><p style="font-size:10px;margin:0px;color:rgb(153,153,153)">Brisbane, Australia</p></span><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"></span><p style="font-family:overpass,sans-serif;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px"><a href="mailto:aeng@redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">aeng@redhat.com</a>   </span> <span>M: <a href="tel:+61423353457" style="color:rgb(0,136,206);font-size:11px;margin:0px" target="_blank">+61423353457</a>    </span> <span>IM: <span>aeng</span></span></p><table border="0" style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>