Update a Short URL
https://api2.protexting.com/v1/shorturl/updateUse Authorization: Bearer with your server-side token. Legacy access_token URLs remain supported. Replace sample values with your own. Authentication & setup →
Use your existing OAuth access_token query parameter, with the Short URL API app active. Send Accept: application/json and Content-Type: application/json for JSON writes. Action-scoped tokens can call only the permitted action. Every link action is limited to your owned, public, non-deleted parent links. Smart URLs is a separate system.
All supported methods update supplied fields only, preserving omitted fields. You cannot change the account, slug, generated short URL, issued host or public/private state. A source-app-managed destination (Can_Edit_Url=0) cannot be changed here, including its protocol setting. active=0 pauses a link; inactive_text is persisted while paused. active=1 resumes it. exclude_optouts changes only reporting visibility; raw click events remain intact.
PATCH /v1/shorturl/update
Update supplied fields only. Slug, issued host, ownership and visibility are read-only.
Request parameters
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
JSON body
| Field | Type | Details |
|---|---|---|
| original_url | string | Optional. Max 8192 characters. |
| title | string | Optional. Max 255 characters. |
| inactive_text | string | Optional. Max 10000 characters. |
| track_numbers | 0/1 or boolean | Optional. |
| add_number | 0/1 or boolean | Optional. |
| no_protocol | 0/1 or boolean | Optional. |
| active | 0/1 or boolean | Optional. |
| exclude_optouts | 0/1 or boolean | Optional. |
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request PATCH \ "https://api2.protexting.com/v1/shorturl/update?id=123" \ --header 'Accept: application/json' \ --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \ --header 'Content-Type: application/json' \ --data '{ "active": 0, "inactive_text": "This offer has ended.", "exclude_optouts": 1}'Response parameters
| Field | Type | Details |
|---|---|---|
| Id | integer | |
| Track_Numbers | integer | |
| Add_Number | integer | |
| No_Protocol | integer | |
| Active | integer | |
| Exclude_Optouts | integer | |
| Custom_Url | integer | |
| Can_Edit_Url | integer | |
| Title | string | |
| Short_Url | string | |
| Original_Url | string | |
| Date_Created | string | |
| Keyword | string | |
| Inactive_Text | string |
Response example
Illustrative values only; replace IDs and URLs with your saved records.
{ "Id": 123, "Title": "Example offer", "Short_Url": "https://ptxt.io/example123", "Original_Url": "https://example.com/offer", "Date_Created": "2026-01-01 10:00:00", "Track_Numbers": 0, "Add_Number": 0, "No_Protocol": 0, "Active": 0, "Exclude_Optouts": 1, "Keyword": "example123", "Custom_Url": 0, "Can_Edit_Url": 1, "Inactive_Text": "This offer has ended."}PUT alternative
PUT /v1/shorturl/update
Update supplied fields only. Slug, issued host, ownership and visibility are read-only.
Request parameters
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
JSON body
| Field | Type | Details |
|---|---|---|
| original_url | string | Optional. Max 8192 characters. |
| title | string | Optional. Max 255 characters. |
| inactive_text | string | Optional. Max 10000 characters. |
| track_numbers | 0/1 or boolean | Optional. |
| add_number | 0/1 or boolean | Optional. |
| no_protocol | 0/1 or boolean | Optional. |
| active | 0/1 or boolean | Optional. |
| exclude_optouts | 0/1 or boolean | Optional. |
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request PUT \ "https://api2.protexting.com/v1/shorturl/update?id=123" \ --header 'Accept: application/json' \ --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \ --header 'Content-Type: application/json' \ --data '{ "active": 0, "inactive_text": "This offer has ended.", "exclude_optouts": 1}'POST alternative
POST /v1/shorturl/update
Update supplied fields only. Slug, issued host, ownership and visibility are read-only.
Request parameters
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
JSON body
| Field | Type | Details |
|---|---|---|
| original_url | string | Optional. Max 8192 characters. |
| title | string | Optional. Max 255 characters. |
| inactive_text | string | Optional. Max 10000 characters. |
| track_numbers | 0/1 or boolean | Optional. |
| add_number | 0/1 or boolean | Optional. |
| no_protocol | 0/1 or boolean | Optional. |
| active | 0/1 or boolean | Optional. |
| exclude_optouts | 0/1 or boolean | Optional. |
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request POST \ "https://api2.protexting.com/v1/shorturl/update?id=123" \ --header 'Accept: application/json' \ --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \ --header 'Content-Type: application/json' \ --data '{ "active": 0, "inactive_text": "This offer has ended.", "exclude_optouts": 1}'HTTP status codes
200 success; create/add return 201; link deletion returns 204 without a body. 401: missing/invalid token or disabled API app. 403: denied scope or tracking entitlement. 404: unavailable link or disabled domain feature. 405: wrong HTTP method. 409: reset already in progress. 422: invalid input, invalid dates or unavailable/foreign domain. 503: allocation/custom-deletion failure or unavailable reset signing. Other database/provider failures remain server errors.
Related Short URL reference
Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.