> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mem.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Note Created At

> Set a note's visible creation timestamp without changing its content.
The supplied `created_at` must include a timezone offset and cannot be in the future.
It can only backdate the note: the timestamp cannot be later than
when the note was originally created.
This operation changes note metadata only.
Trashed notes must be restored before their creation date can be changed.



## OpenAPI

````yaml PATCH /v2/notes/{note_id}/created-at
openapi: 3.1.0
info:
  title: Mem API
  description: An API that allows you to interact with the Mem platform.
  version: 1.0.0
servers:
  - url: https://api.mem.ai
security:
  - bearerAuth: []
paths:
  /v2/notes/{note_id}/created-at:
    patch:
      tags:
        - external
        - external-v2
      summary: Set Note Created At
      description: >-
        Set a note's visible creation timestamp without changing its content.

        The supplied `created_at` must include a timezone offset and cannot be
        in the future.

        It can only backdate the note: the timestamp cannot be later than

        when the note was originally created.

        This operation changes note metadata only.

        Trashed notes must be restored before their creation date can be
        changed.
      operationId: app_src_api_routes_external_v2_notes_views_set_note_created_at
      parameters:
        - in: path
          name: note_id
          schema:
            description: >-
              UUID of the note whose visible creation timestamp should change.
              The caller must own this note.
            format: uuid
            title: Note Id
            type: string
          required: true
          description: >-
            UUID of the note whose visible creation timestamp should change. The
            caller must own this note.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetNoteCreatedAtRequestSchema'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetNoteCreatedAtResponseSchema'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >-
            curl
            "https://api.mem.ai/v2/notes/01961d40-7a67-7049-a8a6-d5638cbaaeb9/created-at"
            \
                 --header "Content-Type: application/json" \
                 --header "Authorization: Bearer $MEM_API_KEY" \
                 --request PATCH \
                 --data '{
                     "created_at": "2020-01-07T00:00:00Z"
                 }'
components:
  schemas:
    SetNoteCreatedAtRequestSchema:
      properties:
        created_at:
          description: |-
            New visible creation timestamp for the note (ISO 8601).
            It must include a timezone offset and cannot be in the future.
            It can only backdate the note: the timestamp cannot be later than
            when the note was originally created.
            This changes note metadata only; it does not update note content.
          examples:
            - '2020-01-07T00:00:00Z'
            - '2020-01-07T09:00:00+01:00'
          format: date-time
          title: Created At
          type: string
      required:
        - created_at
      title: SetNoteCreatedAtRequestSchema
      type: object
    SetNoteCreatedAtResponseSchema:
      example:
        collection_ids:
          - 59508b41-8770-4855-aa37-302b1e09aee7
        content: |-
          # Meeting with Bill

          Jan 7, 2020
        created_at: '2020-01-07T00:00:00.000Z'
        id: 5e29c8a2-c73b-476b-9311-e2579712d4b1
        request_id: api-request-036ed6c7-de00-459f-a89b-43d26aafe522
        title: Meeting with Bill
        trashed_at: null
        updated_at: '2026-05-15T10:15:00.000Z'
        version: 5
      properties:
        request_id:
          description: Identifier for this API request. Useful for tracing and support.
          title: Request Id
          type: string
        id:
          description: UUID of the updated note.
          format: uuid
          title: Id
          type: string
        title:
          description: Current note title.
          title: Title
          type: string
        content:
          description: Full markdown content stored for the note.
          title: Content
          type: string
        version:
          description: Current note content document version.
          title: Version
          type: integer
        collection_ids:
          description: Collection UUIDs currently associated with this note.
          items:
            format: uuid
            type: string
          title: Collection Ids
          type: array
        trashed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            Timestamp for when the note was moved to trash, or null when the
            note is active.
          title: Trashed At
        created_at:
          description: >-
            Creation timestamp for the note in ISO 8601 format after the
            metadata update.
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: >-
            Last modification timestamp after the metadata update in ISO 8601
            format.
          format: date-time
          title: Updated At
          type: string
      required:
        - request_id
        - id
        - title
        - content
        - version
        - collection_ids
        - trashed_at
        - created_at
        - updated_at
      title: SetNoteCreatedAtResponseSchema
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````