Skip to main content

Timeline for Sharepoint metadata URL

Current License: CC BY-SA 4.0

13 events
when toggle format what by license comment
Mar 14, 2019 at 16:26 comment added Jacobo Rodríguez Thank you, it worked.
Mar 14, 2019 at 16:17 comment added Anon Try adding the header "IF-MATCH": "*". It seams to have to do with the ETag which is used to determine the sequence for and managing of concurrent updates. Providing a wildcard * will ignore the ETag. Marc Anderson (SPServices author) wrote a blog post about that.
Mar 14, 2019 at 15:56 comment added Jacobo Rodríguez It shows me a "412 Precondition Failed" Error
Mar 14, 2019 at 15:40 comment added Jacobo Rodríguez I've done it, but I can´t upload metadata to that url. My problem is uploading metadata to a document hosted in a document library. If I create a list, I am able to upload metadata, but not in a document library. I think it's a problem with the URL, or the type of metadata
Feb 28, 2019 at 16:57 comment added Anon For updates, you have to provide the X-RequestDigest header as well, containing a valid form digest. A valid form digest for the site can be retrieved using the _api/contextinfo endpoint, e.g.: /my/personal/KIEWB/_api/contextinfo. The info you need is then available in the response at <responsedata>.d.GetContextWebInformation.FormDigestValue. Have a look at this Microsoft documentation.
Feb 28, 2019 at 16:43 vote accept Jacobo Rodríguez
Feb 28, 2019 at 15:36 comment added Jacobo Rodríguez String datos="{'__metadata': {'type':'SP.ListItem'},'Equipo':'Miequipo','Departamento':'Sistemas'}"; request2.addHeader("Accept","application/json;odata=verbose"); request2.addHeader("content-Type","application/json;odata=verbose"); request2.setEntity(new StringEntity(datos));
Feb 28, 2019 at 15:35 comment added Jacobo Rodríguez HttpPut request2 = new HttpPut("win-7n6eol508f6/my/personal/KIEWB/_api/web/…);
Feb 28, 2019 at 15:34 comment added Jacobo Rodríguez I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
Feb 25, 2019 at 15:34 comment added vol7ron You will need the request/form digest and it would need a two-phase approach to update the data.
Feb 25, 2019 at 11:00 comment added Anon Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
Feb 25, 2019 at 10:52 comment added Jacobo Rodríguez ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
Feb 25, 2019 at 10:39 history answered Anon CC BY-SA 4.0