{"id":715,"date":"2025-06-25T15:20:52","date_gmt":"2025-06-25T15:20:52","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=715"},"modified":"2025-06-25T17:39:49","modified_gmt":"2025-06-25T17:39:49","slug":"url-field-and-the-schemas-api","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/06\/25\/url-field-and-the-schemas-api\/","title":{"rendered":"URL field and the schemas API"},"content":{"rendered":"

I’m encountering an issue with the URL<\/STRONG> field and the API.
I created a URL<\/STRONG> field for Contacts<\/STRONG> via the UI:
<\/SPAN><\/P>
\n

\"Sachavskyi_0-1750864151448.png\"<\/span><\/P>
\n

I’m trying to retrieve the Contacts schema using \/crm-object-schemas\/v3\/schemas\/0-1<\/CODE>, but I’m getting the following response:<\/P>
\n

\u00a0<\/P>
\n


\n
{
“updatedAt”: “2025-06-25T14:48:22.563Z”,
“createdAt”: “2025-06-25T14:48:22.563Z”,
“name”: “custom_url”,<\/STRONG>
“label”: “custom_url”,<\/STRONG>
“type”: “string”,<\/STRONG>
“fieldType”: “text”,<\/STRONG>
“description”: “”,
“groupName”: “contactinformation”,
“options”: [],
“createdUserId”: “7055693”,
“updatedUserId”: “7055693”,
“displayOrder”: -1,
“calculated”: false,
“externalOptions”: false,
“archived”: false,
“hasUniqueValue”: false,
“hidden”: false,
“modificationMetadata”: {
“archivable”: true,
“readOnlyDefinition”: false,
“readOnlyValue”: false
},
“formField”: false,
“dataSensitivity”: “non_sensitive”
}<\/PRE>
\n<\/DIV>
\n

This field behaves like a regular “Single-line Text” field in the API response.
How can I distinguish between a “URL” field and a standard “Single-line Text” field using the API?<\/STRONG><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

I’m encountering an issue with the URL field and the API.I created a URL field for Contacts via the UI: I’m trying to retrieve the Contacts schema using \/crm-object-schemas\/v3\/schemas\/0-1, but I’m getting the following response: \u00a0 { “updatedAt”: “2025-06-25T14:48:22.563Z”, “createdAt”: “2025-06-25T14:48:22.563Z”, “name”: “custom_url”, “label”: “custom_url”, “type”: “string”, “fieldType”: “text”, “description”: “”, “groupName”: “contactinformation”, “options”: [], […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/715"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=715"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/715\/revisions"}],"predecessor-version":[{"id":716,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/715\/revisions\/716"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=715"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}