Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Upsert Meta CAPI connection (optional access_token on update)

PUT/v1/ctwa/meta-connections
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
access_tokenstring
capi_enabledbooleanrequired
dataset_idstring
pixel_idstring
test_event_codestring
waba_idstringrequired
Responses
200OK
capi_enabledbooleanrequired
created_atstring
dataset_idstring
has_access_tokenbooleanrequired
idstringrequired
pixel_idstring
test_event_codestring
updated_atstring
waba_idstringrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X PUT "/v1/ctwa/meta-connections" \
  -H "Content-Type: application/json" \
  -d '{
  "access_token": "string",
  "capi_enabled": true,
  "dataset_id": "string",
  "pixel_id": "string",
  "test_event_code": "string",
  "waba_id": "string"
}'
Response
{
  "capi_enabled": true,
  "created_at": "string",
  "dataset_id": "string",
  "has_access_token": true,
  "id": "string",
  "pixel_id": "string",
  "test_event_code": "string",
  "updated_at": "string",
  "waba_id": "string"
}