Update link
PUT {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/content/links/{{link_zuid}}
Updates an existing link record.
Body: raw JSON
name | description |
---|---|
type | [string] Required. Type of link. Right now, updating external type links are not available. So this will only accepts "internal" . |
parentZUID | [string] Required. A parent for your link. Accepts an item ZUID. |
label | [string] Required. Navigation label. |
metaTitle | [string] Required. 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] Required. Link to target. The value should be a full external URL. Example: [https://www.google.com](https://www.google.com) |
Request Body
{"type"=>"internal", "parentZUID"=>"{{item_zuid}}", "label"=>"Internal Link Updated", "metaTitle"=>"Internal Link Updated", "target"=>"{{item_zuid}}"}
RESPONSES
status: OK
{"_meta":{"timestamp":"2023-02-20T23:12:44.465904086Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"17-90d9cd919a-lvh9l6","type":"external","contentModelName":"zesty_link","parentZUID":"7-e2d1f391ff-zxmcxs","label":"Test ext 1 Update","metaTitle":"Test ext 1 Update","source":null,"metaKeywords":null,"target":"https://www.facebook.com","langID":1,"createdByUserZUID":"5-8e92cfe2e6-d2s3bd","updatedByUserZUID":"5-8e92cfe2e6-d2s3bd","createdAt":"2023-02-20T17:53:29Z","updatedAt":"2023-02-20T23:12:44.45645302Z"}}