Update a capture link
PUT
/v1/capture-links/{id}
const url = 'https://api.replifier.com/v1/capture-links/ccl_01hx0000000000000000000000';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sourceName":"example","description":"example","status":"active","preMessage":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/capture-links/ccl_01hx0000000000000000000000 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sourceName": "example", "description": "example", "status": "active", "preMessage": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
ccl_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
sourceName
string
description
string
status
string
preMessage
string
Responses
Section titled “Responses”Capture link updated
Media typeapplication/json
object
id
required
string
organizationId
required
string
brandId
required
string
connectionId
required
string
channel
required
string
kind
required
string
preMessage
required
string
keyword
required
string
refCode
required
Unique link key (wa_me/sms_to): travels inside the prefilled message and ties the signup to its source
string
toAddress
required
string
sourceName
required
string
description
required
string
status
required
string
deepLink
required
string
createdAt
required
string
updatedAt
required
string
Example
{ "channel": "whatsapp", "kind": "wa_me", "status": "active"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}