Jump to content

Update Geocache Log, /v1/geocachelogs/{referenceCode} does not return all requested fields


Recommended Posts

Posted (edited)

The documentation says that the response to request: Update Geocache Log /v1/geocachelogs/{referenceCode} is a "GeocacheLog" object and the "fields" parameter in the request tells which properties should be returned.

 

Among these properties we find:

 

ianaTimezoneId

upvoteTypeCounts

 

If these properties are included in "fields", they are not returned correctly

 

ianaTimezoneId is NULL

upvoteTypeCounts is [ ] (an empty array)

 

Update: The same problem occurs when doing a CreateGeocacheLog(). So now in both scenarios, as a circumvention of the problem I do the following:

 

response = CreateGeocacheLog( ... )

response = GetGeocacheLog(response.referenceCode) // this request should not be necessary if the initial response were correct

 

and:

 

response = UpdateGeocacheLog( ... )

response = GetGeocacheLog(response.referenceCode) // this request should not be necessary if the initial response were correct

Edited by hxdimpf
adding more information
Posted
38 minutes ago, hxdimpf said:

If these properties are included in "fields", they are not returned correctly

Right, it gives a 401. Seems you're not authorized to do this call.

Posted
1 hour ago, HHL said:

Right, it gives a 401. Seems you're not authorized to do this call.

I am not getting a 401. I am getting a valid geocacheLog object, except that these two properties do not have correct values.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...