# Update Custom Attributes

URL: https://www.inclamo.com/docs/api/application/conversations/update-custom-attributes-of-a-conversation

> Updates the custom attributes of a conversation

## POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/custom_attributes

Update Custom Attributes

Updates the custom attributes of a conversation

Base URL: https://helpdesk.inclamo.com

### Parameters

- `account_id` (path, required, integer): The numeric ID of the account
- `conversation_id` (path, required, integer): The numeric ID of the conversation

### Request body

`application/json` (required)

```json

{
  "type": "object",
  "required": [
    "custom_attributes"
  ],
  "properties": {
    "custom_attributes": {
      "type": "object",
      "description": "The custom attributes to be set for the conversation",
      "example": {
        "order_id": "12345",
        "previous_conversation": "67890"
      }
    },
    "merge": {
      "type": "boolean",
      "default": false,
      "description": "When true, only the keys sent in `custom_attributes` are updated and the remaining keys are kept intact. When false (default), the whole custom attributes hash is replaced. Use the destroy_custom_attributes endpoint to remove keys."
    }
  }
}

```

### Responses

- 200: Success
- 401: Unauthorized
- 404: Conversation not found

Schemas referenced with $ref are defined in the OpenAPI file: https://www.inclamo.com/docs/api/openapi.json
