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

191
Views
No se puede actualizar el estado en la propiedad de la página usando notion api

Estoy tratando de actualizar el estado de una página usando la API. Estoy usando el JS-sdk construido por noción.

Para actualizar el estado, debe actualizar el objeto de propiedades. No puedo hacer que funcione como se esperaba, siempre arroja un error.

He intentado usar el nombre de la propiedad ('Estado') y he intentado usar la identificación de la propiedad pero aparece el mismo error.

 const response = await notion.pages.update({ page_id: 'abc123', properties: { [statusProp.id]: { status: { title: 'Done' } } } })

El error que recibo es el siguiente:

 { object: 'error', status: 400, code: 'validation_error', message: 'body failed validation. Fix one:\nbody.properties.bSYl.title should be defined, instead was `undefined`.\nbody.properties.bSYl.rich_text should be defined, instead was `undefined`.\r\nbody.properties.bSYl.number should be defined, instead was `undefined`.\nbody.properties.bSYl.url should be defined, instead was `undefined`.\nbody.properties.bSYl.select should be defined, instead was `undefined`.\nbody.properties.bSYl.multi_select should be defined, instead was `undefined`.\nbody.properties.bSYl.people should be defined, instead was `undefined`.\nbody.properties.bSYl.email should be defined, instead was `undefined`.\nbody.properties.bSYl.phone_number should be defined, instead was `undefined`.\nbody.properties.bSYl.date should be defined, instead was `undefined`.\nbody.properties.bSYl.checkbox should be defined, instead was `undefined`.\nbody.properties.bSYl.relation should be defined, instead was `undefined`.\nbody.properties.bSYl.files should be defined, instead was `undefined`.\nbody.properties.bSYl.id should be defined, instead was `undefined`.\nbody.properties.bSYl.name should be defined, instead was `undefined`.\nbody.properties.bSYl.start should be defined, instead was `undefined`.'

}

Su documentación dice: Not currently editable. .
Aunque no estoy seguro de si se refieren solo a la propiedad 'color' de la propiedad de estado o si se refieren a la propiedad de estado.
Imagen de su doc.

about 4 years ago · Santiago Trujillo
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!