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
| Name | Description |
|---|---|
nametype: String | Required. The name for the provider. |
typetype: String | Required. The name for the provider. |
configtype: 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
{"0"=>{"name"=>"<Provider Name>", "type"=>"www", "config"=>{"bearer"=>"<Bearer Auth Token>"}}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"meta":{"api_status":"stable","version":"v2.45.1"}}