# Updates a sender in project Updates a sender in project. Endpoint: PATCH /v1/projects/{projectId}/whatsapp/senders/{senderId} Version: 1.2.36 Security: BasicAuth, BearerAuth, OAuth2Staging, OAuth2Production, OAuth2StagingAdmin, OAuth2ProductionAdmin ## Path parameters: - `projectId` (string, required) The unique ID of the project. You can find this on the Sinch Dashboard. - `senderId` (string, required) The unique ID of the sender. ## Request fields (application/json): - `status` (string) Create as draft or submit. Defaults to draft. Enum: "DRAFT", "SUBMIT" - `details` (object) - `details.displayName` (string) Sender display name within WhatsApp. - `details.description` (string,null) Description of the sender displayed in the Business Info within WhatsApp. If null the value will be deleted. - `details.vertical` (string) Category of the sender displayed in the Business Info within WhatsApp. Enum: "ALCOHOL", "AUTOMOTIVE", "BEAUTY_SPA_SALON", "CLOTHING_AND_APPAREL", "EDUCATION", "ENTERTAINMENT", "EVENT_PLANNING_AND_SERVICE", "FINANCE_AND_BANKING", "FOOD_AND_GROCERY", "HOTEL_AND_LODGING", "MEDICAL_AND_HEALTH", "NON_PROFIT", "ONLINE_GAMBLING", "OTC_DRUGS", "OTHER", "PHYSICAL_GAMBLING", "PROFESSIONAL_SERVICES", "PUBLIC_SERVICE", "RESTAURANT", "SHOPPING_AND_RETAIL", "TRAVEL_AND_TRANSPORTATION" - `details.email` (string,null) Contact email displayed in the Business Info within WhatsApp. If null the value will be deleted. - `details.address` (string,null) Business address displayed in the Business Info within WhatsApp. If null the value will be deleted. - `details.websiteOne` (string,null) Business website displayed in the Business Info within WhatsApp. If null the value will be deleted. - `details.websiteTwo` (string,null) Second business website displayed in the Business Info within WhatsApp. If null the value will be deleted. - `details.about` (string,null) About text displayed in the Business Info within WhatsApp. - Hyperlinks can be included but will not render as clickable links. - Markdown is not supported. If null the value will be deleted. - `details.photoUrl` (string,null) URL to the sender image displayed in WhatsApp. - Supported mime types: image/jpeg, image/png or image/webp. - Maximum file size: 5MB. - Minimum image dimensions: 192 x 192 px. - Maximum image dimensions: 640 x 640 px. - Image will be cropped to maximum image dimensions. - If you submit a PNG image with a transparent background, the background will be rendered as black. If null the value will be deleted. ## Response 200 fields (application/json): - `id` (string, required) The unique ID of the sender. - `region` (string, required) Region sender is provisioned in. Enum: "BR", "EU", "US", "UNRECOGNIZED" - `metaLocalStorage` (string, required) Region sender store the data in Meta. Enum: "AE", "AU", "BH", "BR", "CA", "CH", "DE", "GB", "ID", "IN", "JP", "KR", "SG", "US", "ZA", "UNRECOGNIZED", "UNSPECIFIED" - `businessManager` (string, required) Business manager. Enum: "SINCH_AMERICA", "SINCH_BR", "SINCH_MX", "SINCH_SEP", "SINCH_UK", "UNRECOGNIZED" - `compatibleRegions` (array, required) Conversation API app regions the sender can be used for. Enum: "br", "eu", "us" - `state` (string) The current state of the sender. Enum: "ACTIVE", "IN_PROGRESS", "INACTIVE", "PENDING_VERIFICATION", "SUSPENDED", "ERROR" - `changes` (object) Any pending changes to the sender. - `changes.status` (string, required) Current status of the pending changes. Enum: "DRAFT", "ERROR", "IN_PROGRESS", "MULTIPLE_WABA_ERROR", "REJECTED" - `changes.details` (array) The pending changes to sender details and information - `changes.errorReason` (string) Error reason if sender is in state ERROR. - `changes.errorCode` (string) Error code if sender is in state ERROR. Enum: "CANNOT_ASSIGN_CREDIT_LINE", "CANNOT_ASSIGN_SYSTEM_USER", "CANNOT_CREATE_NEW_WHATSAPP_SENDER", "CANNOT_CREATE_WABA_FOR_BUSINESS", "CANNOT_GET_DETAILS_FOR_CLOUD_API", "CANNOT_GET_WABA_DETAILS", "CANNOT_REGISTER_NEW_WHATSAPP_SENDER", "CANNOT_REGISTER_TO_CLOUD_API", "CANNOT_SUBSCRIBE_TO_CLOUD_API", "CANNOT_SUBSCRIBE_TO_WEBHOOK", "DUPLICATES_ON_SENDER_PHONE_NUMBER", "FAILED_TO_FETCH_APPROVED_MESSAGE_TEMPLATES", "MULTIPLE_WABA_FOR_PROJECT_ID", "NO_CERTIFICATE_AVAILABLE", "NO_NOVA_ACCOUNT_ID", "NO_PRICING_PLAN", "NO_PROJECT_ID", "NO_VERIFIED_PHONE_NUMBER", "NOT_VERIFIED_REQUESTED_PHONE_NUMBER", "NOT_VERIFY_BUSINESS_VIA_WHATSAPP", "NOVA_ACCOUNT_ID_CONFLICT", "PROJECT_ID_CONFLICT", "SENDER_HAS_BEEN_DELETED", "WABA_CONNECTED_TO_ANOTHER_PROJECT", "UNKNOWN_ERROR", "UNRECOGNIZED" - `details` (object) Sender details and information. - `details.displayName` (string, required) Sender display name within WhatsApp. - `details.vertical` (string, required) Category of the sender displayed in the Business Info within WhatsApp. Enum: "ALCOHOL", "AUTOMOTIVE", "BEAUTY_SPA_SALON", "CLOTHING_AND_APPAREL", "EDUCATION", "ENTERTAINMENT", "EVENT_PLANNING_AND_SERVICE", "FINANCE_AND_BANKING", "FOOD_AND_GROCERY", "HOTEL_AND_LODGING", "MEDICAL_AND_HEALTH", "NON_PROFIT", "ONLINE_GAMBLING", "OTC_DRUGS", "OTHER", "PHYSICAL_GAMBLING", "PROFESSIONAL_SERVICES", "PUBLIC_SERVICE", "RESTAURANT", "SHOPPING_AND_RETAIL", "TRAVEL_AND_TRANSPORTATION", "UNRECOGNIZED" - `details.description` (string) Description of the sender displayed in the Business Info within WhatsApp. - `details.email` (string) Contact email displayed in the Business Info within WhatsApp. - `details.address` (string) Business address displayed in the Business Info within WhatsApp. - `details.websiteOne` (string) Business website displayed in the Business Info within WhatsApp. - `details.websiteTwo` (string) Second business website displayed in the Business Info within WhatsApp. - `details.about` (string) About text displayed in the Business Info within WhatsApp. - Hyperlinks can be included but will not render as clickable links. - Markdown is not supported. - `details.photoUrl` (string) URL to the sender image displayed in WhatsApp. - Supported mime types: image/jpeg, image/png or image/webp. - Maximum file size: 5MB. - Minimum image dimensions: 192 x 192 px. - Maximum image dimensions: 640 x 640 px. - Image will be cropped to maximum image dimensions. - If you submit a PNG image with a transparent background, the background will be rendered as black. - `conversationApiAppDetails` (object) If set, the details of the Conversation API App the sender is connected to. - `conversationApiAppDetails.id` (string, required) ID of the app - `conversationApiAppDetails.projectId` (string, required) ID of the app project - `conversationApiAppDetails.region` (string, required) App region. Enum: "BR", "EU", "US", "UNRECOGNIZED" - `maxTps` (number) Maximum sender TPS. - `qualityRating` (string) Current quality rating of the sender. Enum: "GREEN", "RED", "YELLOW", "UNKNOWN", "UNRECOGNIZED" - `dailyLimit` (string) Current daily message limit of the sender. Enum: "NOT_SET", "TIER_100K", "TIER_10K", "TIER_1K", "TIER_250", "TIER_2K", "TIER_50", "TIER_UNLIMITED", "UNRECOGNIZED" - `bearerToken` (string) Bearer token of the sender. The bearer token is needed to connect the sender to a Conversation API App. - `created` (string) The UTC Date Time in ISO 8601 for when the sender was created. - `modified` (string) The UTC Date Time in ISO 8601 for when the sender was last modified. - `countryCode` (string) Country code of sender phone number. - `phoneNumber` (string) Sender phone number without country code. - `numberProvider` (string) Provider for phone number. Enum: "CUSTOMER", "SINCH", "UNRECOGNIZED" - `cloudApi` (boolean, required) True if the sender is hosted in WhatsApp Cloud API. - `conversationApiApp` (string) If set, the Conversation API App ID the sender is connected to. - `wabaBanState` (string) Please use get account endpoint for this information. Enum: "DISABLE", "REINSTATE", "SCHEDULE_FOR_DISABLE", "UNRECOGNIZED" - `wabaBanDate` (string) Please use get account endpoint for this information. ## Response 401 fields (application/json): - `errorCode` (string) Error code allows to programmatically handle errors. Example: "unauthorized_error" - `message` (string) Human readable message. Example: "Unauthorized error." - `resolution` (string) Human readable message with an explanation of how to solve the error. Example: "Verify that projectId is correct." ## Response 404 fields (application/json): - `errorCode` (string) Error code allows to programmatically handle errors. Example: "sender_not_found" - `message` (string) Human readable message. Example: "Sender not found." - `resolution` (string) Human readable message with an explanation of how to solve the error. Example: "Verify that the parameters are correct." ## Response 500 fields (application/json): - `errorCode` (string) Error code allows to programmatically handle errors. Example: "internal_error" - `message` (string) Human readable message. Example: "Internal server error." - `resolution` (string) Human readable message with an explanation of how to solve the error. Example: "Please wait and try again, if the error persist please contact support."