When updating links for an entity via the API, there are important considerations to keep in mind:
- Full Links Block Requirement: Without using the
appendArrays=trueparameter, you must include the complete links block in your request. - Link Preservation: Any links not included in your update request will be removed from the entity.
- Modifying Specific Links: To change a specific link's name or type, you need to send the full links block with your modifications while preserving all other existing links.
If you want to add new links without affecting existing ones, you can use the append method:
- PATCH Endpoint with Parameter: Use the PATCH endpoint with the
appendArrays=trueparameter. - Selective Updates: This approach allows you to add new links without having to provide all existing links in your request.
- Simplified Requests: When using this method, you only need to include the new links you want to add, and all existing links will be preserved.