> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/018_rcs_and_ai_suggestions/002__upsert_company_rcs_information.md).

# Upsert Company RCS Information

GraphQL endpoint: `/company`

Creates the company's RCS agent information, or updates it when it already exists; only the provided fields change. Passing suggested replies/actions replaces the existing lists.

## Query

```graphql
mutation (
  $countryOfIncorporation: String
  $agentLogoUrl: String
  $agentName: String
  $agentDescription: String
  $agentColorSchemaPrimary: String
  $agentColorSchemaSecondary: String
  $agentCapabilities: String
  $agentRegion: String
  $welcomeMessage: String
  $richMediaSupport: Boolean
  $suggestedReplies: [RcsSuggestedReplyInput!]
  $suggestedActions: [RcsSuggestedActionInput!]
) {
  upsertCompanyRcsInformation (
    countryOfIncorporation: $countryOfIncorporation
    agentLogoUrl: $agentLogoUrl
    agentName: $agentName
    agentDescription: $agentDescription
    agentColorSchemaPrimary: $agentColorSchemaPrimary
    agentColorSchemaSecondary: $agentColorSchemaSecondary
    agentCapabilities: $agentCapabilities
    agentRegion: $agentRegion
    welcomeMessage: $welcomeMessage
    richMediaSupport: $richMediaSupport
    suggestedReplies: $suggestedReplies
    suggestedActions: $suggestedActions
  ) {
    id
    countryOfIncorporation
    agentName
    agentDescription
    agentColorSchemaPrimary
    agentColorSchemaSecondary
    richMediaSupport
    suggestedReplies {
      id
      name
    }
    suggestedActions {
      id
      name
    }
  }
}

```

## Variables

```json
{
  "agentColorSchemaPrimary": "#FF0000",
  "agentDescription": "Test agent description",
  "agentLogoUrl": "https://example.com/logo.png",
  "agentName": "My Agent",
  "countryOfIncorporation": "US",
  "richMediaSupport": true
}
```

## Response

```json
{
  "data": {
    "upsertCompanyRcsInformation": {
      "agentColorSchemaPrimary": "#FF0000",
      "agentColorSchemaSecondary": null,
      "agentDescription": "Test agent description",
      "agentName": "My Agent",
      "countryOfIncorporation": "US",
      "id": "00000000-0000-4000-8000-000000000001",
      "richMediaSupport": true,
      "suggestedActions": [],
      "suggestedReplies": []
    }
  }
}
```
