---
updatedAt: 2025-02-14T21:23:21.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# Set Contact details for an App

Use this endpoint for Contact details.

### Parameters

| Key           | Description                                                             | Constraints                              |
| :------------ | :---------------------------------------------------------------------- | :--------------------------------------- |
| appId         | AppId of the app for which business contact details need to be updated. | Should be a valid appId for the account. |
| contactEmail  | Email id to contact business.                                           | Should be a valid email id.              |
| contactName   | Contact name for business                                               | Should be a valid name for business      |
| contactNumber | Phone number to contact business                                        | Should be a valid phone number.          |

### Sample Request

```curl
curl --location --request PUT '{{partner_portal_base_url}}/partner/app/:appId/onboarding/contact' \
--header 'token: {{PARTNER_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'contactEmail=&lt;contact_email_id&gt;' \
--data-urlencode 'contactName=&lt;contact_name&gt;' \
--data-urlencode 'contactNumber=&lt;contact_phone_number&gt;'
```

### Sample Response

```
{
	"status" : "success",
	"message" : "contact details updated successfully"
}
```

### Status Codes

| Status Code   | Response                                                                                       | Comment                                                             |
| :------------ | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------ |
| ***Success*** |                                                                                                |                                                                     |
| 200           | `{   	"status" : "success",   	"message" : "contact details updated         successfully"   }` | Successfully updated the contact details for the business.          |
| ***Error***   |                                                                                                |                                                                     |
| 400           | `{   	"status" : "error",   	"message" : "Invalid app id provided"   }`                        | Provided appId is incorrect.                                        |
| 400           | `{   	"status" : "error",   	"message" : "Please provide valid details"   }`                   | Provided contactEmail or contactName or contactNumber is not valid. |
| 401           | `{       "status": "error",       "message": "Authentication Failed"   }`                      | Either appId or partner\_token is incorrect.                        |
| 429           | `{     "status": "error",     "message": "Too Many Requests"   }`                              | When the request rate limit exceeds.                                |

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Partner Portal Public APIs",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io"
    }
  ],
  "tags": [
    {
      "name": "App > OnBoarding Api's"
    }
  ],
  "paths": {
    "/partner/app/{appId}/onboarding/contact": {
      "put": {
        "tags": [
          "App > OnBoarding Api's"
        ],
        "summary": "APP | Set contact details for an app",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "contactEmail": {
                    "type": "string",
                    "example": "test@gmail.com"
                  },
                  "contactName": {
                    "type": "string",
                    "example": "contact name"
                  },
                  "contactNumber": {
                    "type": "integer",
                    "example": "1234567890"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "{{PARTNER_TOKEN}}"
          },
          {
            "name": "appId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true,
            "example": "0ee06d0b-3816-4a44-9594-2eb970f175db"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {}
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```