Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
How to update post_meta using rest-api?

I'm trying to update attachment metadata using the default rest API, in the documentation it says it supports the meta field. But when I'm trying to update the artist or album field for an audio file using REST API, it doesn't save the data.

Payload:

{
    meta: {artist: "Mons"}
    artist: "Mons"
    title: "Hello world"
}

Also tried with:

{
    meta: _wp_attachment_metadata: { {artist: "Mons"} }
    artist: "Mons"
    title: "Hello world"
}

Endpont: /wp-json/api/v2/media/__ID__/

Here title gets updated but artist doesn't.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda