Omeka SのREST APIを使用してプロパティを新規に登録しようとしたところ、以下のエラーが発生しました。
{ errors: { 'o:vocabulary': [ 'A vocabulary must be set.' ] } }
すると、以下の記事がみつかり、REST APIを使用したプロパティ追加はできない、とのことでした。

Programmatically adding properties with REST API
Hello, I would like to add properties to an existing vocabulary with the REST API, but don’t understand how I must define the vocabulary in the payload. I tried this structure: { 'o:local_name': 'blablabla', 'o:label': 'blablabla', 'o:vocabulary': { 'o:id': <vocabulary_id> } } … but get the error: { errors: { 'o:vocabulary': [ 'A vocabulary must be set.' ] } } Thank you all for any help you can offer 🙂
同様のことでお困りの方の参考になりましたら幸いです。




コメント
…