Updating LINK column syntax - same as EMAIL column?

Hello,

I’m trying to update a LINK column using PHP. I have successfully updated the email column and the two appear to be essentially the same.

Here’s what I am using for the EMAIL column:

'email__1' => ['email' => $contactEmail, 'text'  => $contactEmail]

I would expect the same would be true for ther LINK column. However, the syntax below throws an error. Any ideas why?

'link9__1' => ['link' => $contactWebSite, 'text' => $contactWebSite]

Does anyone have a working example?

Found the issue. I was using the column type ‘link’.

'link9__1' => ['link' => $contactWebSite, 'text' => $contactWebSite ]

When I should have been using the column. type ‘url

'link9__1' => ['url' => $contactWebSite, 'text' => $contactWebSite ]

It sounds like the syntax should be similar, but in some systems, link columns might expect slightly different key names. Try updating the LINK column using url instead of link:

php

Copy code

'link9__1' => ['url' => $contactWebSite, 'text' => $contactWebSite]

If that doesn’t work, consult your API documentation to confirm the exact key expected for link updates. Sometimes these fields are case-sensitive or require specific formats.