Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
Notion js SDK asks for title even after title is provided

I am trying to create a database using notion sdk and in this is what my payload looks like:

  parent: {
    type: "page_id",
    page_id: process.env.PAGE_ID,
  },
  icon: {
    type: "emoji",
    emoji: "🐽",
  },
  title: [
    {
      type: "text",
      text: {
        content: "DB Title",
      },
    },
  ],
  properties: {
    "Prop-1": {
      date: {},
    },
    "Prop-2": {
      multi_select: {
        options: [
          {
            name: "option-1",
            color: "green",
          },
          {
            name: "option-2",
            color: "gray",
          },
          {
            name: "option-3",
            color: "pink",
          },
        ],
      },
    },
    "prop-3": {
      multi_select: {
        options: [],
      },
    },
  },

I have already added title which can be seen above however the response give 400 status code.

@notionhq/client warn: request fail { code: 'validation_error', message: 'Title is not provided' }

Can't figure our where am I going wrong.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You also need to add a title column to your properties. Look at the example payload in the docs, you will see a "Name" title column. https://developers.notion.com/reference/create-a-database

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!