Skip to content

Not able to patch an SPO list item column of type URL field #687

Answered by beschick
beschick asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your response @baywet!

I think I am not even struggling specifically with Go in that matter, but more with the right method to Patch a list item in SharePoint with GRAPH REST API in general.

The endpoint to get a list item's field is:

GET https://graph.microsoft.com/v1.0/sites/:siteid/lists/:listId/items/:itemId?expand=fields

The payload of an existing item for that specific column, looks like that. The response object is truncated for clarity.

    "fields": {
        "Title": "GUEST WIFI access code hotspot 1",
        "Accesscode": "123456",
        "Region": "EMEA",
        "PortalLink": {
            "Description": "Portal 1",
            "Url": "https://guestportal1.compa…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@baywet
Comment options

baywet Apr 19, 2024
Collaborator

@beschick
Comment options

Answer selected by baywet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants