Update Media Providers

POST {{URL}}/v1/settings/application/media/providers

To configure providers for the WhatsApp Business API Client, use the /v1/settings/application/media/providers endpoint with the provider's information. Currently, you can only set up one provider at a time. Also, you can only use these provider objects for sending media messages using HTTP/HTTPS links that rely on either basic authentication or bearer token authentication.

Request Parameters

NameDescription
name
type: String
Required.
The name for the provider.
type
type: String
Required.
The name for the provider.
config
type: config object
Required.
The config object.

Response

A successful request returns the HTTP Status Code 200 OK and either null or {}.

An unsuccessful response contains an error message. For more information on errors, see Error and Status Codes.

Request Body

[{"name"=>"<Provider Name>", "type"=>"www", "config"=>{"bearer"=>"<Bearer Auth Token>"}}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{&quot;meta&quot;:{&quot;api_status&quot;:&quot;stable&quot;,&quot;version&quot;:&quot;v2.45.1&quot;}}