Upsert a link for a partner
upsert_partner_linkCreate or update a short link for an enrolled partner; if the URL already exists, return or update it instead of creating a duplicate.
Instructions
Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The short link slug. If not provided, a random 7-character slug will be generated. | |
| url | No | The URL to upsert for. | |
| account | No | Exact configured private workspace profile label; not a tenant or provider account ID. | |
| confirm | No | Must be true for the requested mutation or exclusive private output file. | |
| payload | No | Complete native JSON body; do not mix with body flags or payload_file. Arrays use repeated JSON object flags or a whole native array in a private file. | |
| comments | No | The comments for the short link. | |
| tenantId | No | The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown. | |
| linkProps | No | Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner. | |
| partnerId | No | The ID of the partner to create a link for. Will take precedence over `tenantId` if provided. | |
| payload_file | No | Absolute regular non-symlink JSON body file, at most 1 MiB. Cannot mix with payload/body flags. |