I want to update items in a link list. Part of is automatic generation of an URL. That URL should provide an alternative text. So I know, I have to formulate an http request instead of the update item action.
I read through different websites and followed the instruction here:
Update hyperlink column on tachytelic.net
List name is "DCDC-RMTick".
I formulated a POST request:
{
"__metadata": {
"type": "SP.Data.DCDC-RMTickListItem"
},
"URL": {
"Description": "#0000",
"Url": "https://smt-redmine.mycompany.com/redmine/issues/0000"
}
}
I get an error (unfortunately for you in German) complaining that the type could not be resolved by the model (if I translated it correctly).
The error code:
{
"status": 400,
"message": "Ein Typ mit dem Namen \"SP.Data.DCDC-RMTickListItem\" konnte vom Modell nicht aufgelöst
werden. Wenn ein Modell verfügbar ist, muss jeder Typname in einen gültigen Typ aufgelöst werden können.\r\nclientRequestId: b6ec4ad8-7a0d-48a5-890a-2b001a76e34f\r\nserviceRequestId: 0f1fc79f-d067-c000-0106-3de89df59262",
"source": "https://mycompany.sharepoint.com/sites/O3.33400Illu/_api/web/lists/GetByTitle('DCDC-RMTick')/items(19)",
"errors": [
"-1",
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]
}
For the sake of completeness some screenshots:
Do I have to supply a different content type than "ListItem"?
The content type of the URL list is "Verknüpfung" (probably link in English), which is the standard for link lists in SP. Or is there something different I have botched?


