---
updatedAt: 2026-10-15T14:23:04.000Z
agentTools:
  projectIndex: https://developer.daylite.app/llms.txt
---

# Email

Modify an email

See [Email](https://developer.daylite.app/reference/email) for the attributes. Attributes you leave out are not changed.

`subject`, `from`, `to`, `cc` and `bcc` can only be changed when the Daylite setting that allows editing email content is on; otherwise each returns `read_only`. Categories, keywords, links and the owner can always be changed:

```json
{ "keywords": { "add": ["Follow up"] }, "contacts": { "add": [{ "contact": "/v1/contacts/1000" }] } }
```

An email in the trash can't be edited (`404` with `{"error":"trashed_object"}`) until you restore it with `{"trashed": false}`. A successful update returns `204 No Content`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.marketcircle.net/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/emails/{id}": {
      "patch": {
        "summary": "Email",
        "description": "Update an email",
        "operationId": "email-1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The email ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string",
                    "description": "Subject (max 512 characters). Only editable when the Daylite setting that allows editing email content is on; otherwise the update returns `read_only` for this attribute."
                  },
                  "from": {
                    "type": "string",
                    "description": "Sender, e.g. `Jane Smith <jane@example.com>`. Only editable when the Daylite setting that allows editing email content is on; otherwise the update returns `read_only` for this attribute."
                  },
                  "to": {
                    "type": "string",
                    "description": "Recipients as one comma-separated string, e.g. `a@example.com, Bob <b@example.com>`. Only editable when the Daylite setting that allows editing email content is on; otherwise the update returns `read_only` for this attribute."
                  },
                  "cc": {
                    "type": "string",
                    "description": "CC recipients as one comma-separated string. Only editable when the Daylite setting that allows editing email content is on; otherwise the update returns `read_only` for this attribute."
                  },
                  "bcc": {
                    "type": "string",
                    "description": "BCC recipients as one comma-separated string. Only editable when the Daylite setting that allows editing email content is on; otherwise the update returns `read_only` for this attribute."
                  },
                  "message_id": {
                    "type": "string",
                    "description": "The email's `Message-ID` header, e.g. `<CAF5678@mail.example.com>`. Must be unique for each email: the Daylite app and Daylite Mail Assistant rely on it to identify emails, and replies refer to it through `parent_message_id`. The API does not check this, so make sure you don't reuse a value."
                  },
                  "parent_message_id": {
                    "type": "string",
                    "description": "The `Message-ID` of the email this one replies to."
                  },
                  "category": {
                    "type": "string",
                    "description": "[Category](ref:categories) name. Created if it does not exist. Send `null` or `\"\"` to clear."
                  },
                  "keywords": {
                    "description": "List of [keyword](ref:keywords) names (max 64). Keywords that do not exist are created. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "string"
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Keyword names to remove",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "appointments": {
                    "description": "Appointments linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "appointment": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/appointments/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "appointment": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/appointments/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "appointment": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/appointments/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "contacts": {
                    "description": "Contacts linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "contact": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/contacts/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "contact": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/contacts/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "contact": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/contacts/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "companies": {
                    "description": "Companies linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "company": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/companies/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "company": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/companies/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "company": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/companies/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "opportunities": {
                    "description": "Opportunities linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "opportunity": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/opportunities/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "opportunity": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/opportunities/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "opportunity": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/opportunities/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "projects": {
                    "description": "Projects linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "project": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/projects/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "project": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/projects/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "project": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/projects/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "tasks": {
                    "description": "Tasks linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "task": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/tasks/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "task": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/tasks/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "task": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/tasks/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "groups": {
                    "description": "Groups linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "group": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/groups/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "group": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/groups/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "group": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/groups/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "notes": {
                    "description": "Notes linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "note": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/notes/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "note": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/notes/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "note": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/notes/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "forms": {
                    "description": "Forms linked to the email. Send an array to replace the list, or `{\"add\": [...], \"remove\": [...]}` to change only some entries.",
                    "oneOf": [
                      {
                        "title": "Replace the list",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "form": {
                              "type": "string",
                              "description": "Reference, e.g. `/v1/forms/1000`."
                            }
                          }
                        }
                      },
                      {
                        "title": "Add or remove entries",
                        "type": "object",
                        "properties": {
                          "add": {
                            "type": "array",
                            "description": "Entries to add. Entries already in the list are skipped",
                            "items": {
                              "type": "object",
                              "properties": {
                                "form": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/forms/1000`."
                                }
                              }
                            }
                          },
                          "remove": {
                            "type": "array",
                            "description": "Links to remove, matched by reference (and `role`, if you include it)",
                            "items": {
                              "type": "object",
                              "properties": {
                                "form": {
                                  "type": "string",
                                  "description": "Reference, e.g. `/v1/forms/1000`."
                                }
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "owner": {
                    "type": "string",
                    "description": "Reference to the [user](ref:user-details) responsible for the email, e.g. `/v1/users/1000`. Defaults to the user making the request."
                  },
                  "trashed": {
                    "type": "boolean",
                    "description": "Set to `false` to restore the email from the trash. Use DELETE to move it to the trash."
                  }
                }
              },
              "examples": {
                "replace": {
                  "summary": "Replace the keywords",
                  "value": {
                    "keywords": [
                      "VIP",
                      "Newsletter"
                    ]
                  }
                },
                "add_remove": {
                  "summary": "Add and remove keywords",
                  "value": {
                    "keywords": {
                      "add": [
                        "VIP"
                      ],
                      "remove": [
                        "Newsletter"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "204 No Content"
          },
          "400": {
            "description": "400 Bad Request",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"subject\": [\n    {\n      \"error\": \"read_only\"\n    }\n  ]\n}"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404 Not Found",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"invalid_id\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```