Patch link
PATCH {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/content/links/:link_zuid
Updates an existing link record using one or more properties. Body must contain at least 1 updatable property.
Body: raw JSON
name | description |
---|---|
parentZUID | [string] A parent for your link. Accepts an item ZUID. |
label | [string] Navigation label. |
metaTitle | [string] Title of the meta. |
source | [string] Behavior of the link. Accepts "rel:true" and/or "target:_blank" . You can set it to a blank string "" if you don't want to use any of the behaviour and they will be set to their default values. If you want to use both, use a ";" separator. |
target | [string] Link to target. The value should be a full external URL. Example: [https://www.google.com](https://www.google.com) |
Request Body
{"parentZUID"=>"{{item_zuid}}", "label"=>"Internal Link Patched", "metaTitle"=>"Internal Link Patched", "target"=>"{{item_zuid}}"}
RESPONSES
status: OK
{"_meta":{"timestamp":"2024-03-22T16:17:06.009438608Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"17-b0ea81ccea-rk62tz","type":"internal","contentModelName":"zesty_link","parentZUID":"7-98b689bce5-c4zf6d","label":"Internal Link Patched","metaTitle":"Internal Link Patched","source":"","metaKeywords":null,"target":"7-e2d1f391ff-zxmcxs","langID":1,"createdByUserZUID":"5-bacaf1d2c8-xv9nx3","updatedByUserZUID":"5-8e92cfe2e6-d2s3bd","createdAt":"2023-02-20T17:58:49Z","updatedAt":"2024-03-22T16:17:06.000441802Z"}}