Trial Links
FansMetric dataUpdate Trial Link
Partially updates FansMetric metadata on a trial link — hide state, note, custom name, source URL and promo cost. Requires permission api_trial_links_update.
https://public-api.fansmetric.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
link_id*integerTrial link platform ID.
Request Body
application/jsoncustom_namestringFansMetric display-name override. Max 64 characters. Send
nullto clear.notestringFree-text note. Max 2000 characters. Send
nullto clear.custom_source_urlstringTraffic-source URL. Max 2048 characters, must be an
http/httpsURL with a host and no whitespace. Sendnullto clear.promo_coststringPromo cost, between 0 and 99999. Send
nullto clear.is_hiddenstringFansMetric hide flag (the eye toggle). Boolean — not nullable;
nullreturns 400.
Response Fields
dataobjectThe full updated trial link, same shape as Get Trial Link.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data | object | The full updated trial link, same shape as Get Trial Link. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | Remaining requests in the current day window. |
curl --request PATCH "https://public-api.fansmetric.com/v1/100000001/trial-links/sample_link_id" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"note": null
}'Response
200Behavior
Merge-patch semantics. A key absent from the body is left untouched; a key sent as explicit null clears the column to SQL NULL; a key sent with a value is validated and set. The one exception is is_hidden, which is non-nullable — sending null returns 400.
The sample body above sends only {"note": null}: it clears the note and leaves custom_name, custom_source_url, promo_cost and is_hidden exactly as they were.
An empty body ({}) returns 400 — send at least one of the five fields. An unknown field name also returns 400 rather than being ignored, so typos surface immediately instead of silently doing nothing.
Writes FansMetric's own fields only — this endpoint never calls OnlyFans. A trial's name, length and claim limit are fixed on OnlyFans once created; set custom_name for a FansMetric-side rename.
custom_source_url is validated here even though the FansMetric web app historically accepted anything — a javascript: URL is rejected with 400.
The response is the full updated item, identical in shape to Get Trial Link, with all-time metrics (no date window is applied).