PATCH request for draft posts

Roeland Schoukens <[email protected]> Mon, 11 Jun 2018 04:29:49 -0700 (PDT)
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
------=_Part_60565_587652251.1528716589422
Content-Type: multipart/alternative; 
	boundary="----=_Part_60566_646767149.1528716589422"

------=_Part_60566_646767149.1528716589422
Content-Type: text/plain; charset="UTF-8"

Hi,

I ran into an issue using the patch verb to update a draft post. To get a 
draft via posts.get 
<https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.get>, 
I need to specify *view=admin*, but this field is missing for posts.patch 
<https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.patch> 
in both the APIs Explorer in the Python API signature. The call will thus 
return a 404 error.

However setting the view appears to be supported by the JSON API, and if 
you're using the Python client libs you can patch the URI:

r = postI.patch(blogId=myid, postId=mypostid, ...)
r.uri = r.uri + "&view=admin"
pDoc = r.execute()

So what's the status, is this supported?

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.

------=_Part_60566_646767149.1528716589422
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I ran into an issue usin=
g the patch verb to update a draft post. To get a draft via <a href=3D"http=
s://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.get">po=
sts.get</a>, I need to specify <i>view=3Dadmin</i>, but this field is missi=
ng for <a href=3D"https://developers.google.com/apis-explorer/#p/blogger/v3=
/blogger.posts.patch">posts.patch</a> in both the APIs Explorer in the Pyth=
on API signature. The call will thus return a 404 error.</div><div><br></di=
v><div>However setting the view appears to be supported by the JSON API, an=
d if you&#39;re using the Python client libs you can patch the URI:</div><d=
iv><br></div><div><span style=3D"font-family: courier new, monospace;">r =
=3D postI.patch(blogId=3Dmyid, postId=3Dmypostid, ...)<br>r.uri =3D r.uri +=
 &quot;&amp;view=3Dadmin&quot;<br>pDoc =3D r.execute()</span><br><br></div>=
<div>So what&#39;s the status, is this supported?<br></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Blogger Developer Group&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">bloggerd=
[email protected]</a>.<br />
To post to this group, send email to <a href=3D"mailto:bloggerdev@googlegro=
ups.com">[email protected]</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/group/bloggerdev">=
https://groups.google.com/group/bloggerdev</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_60566_646767149.1528716589422--

------=_Part_60565_587652251.1528716589422--