When I tried to register a new property using the Omeka S REST API, the following error occurred.
{ errors: { 'o:vocabulary': [ 'A vocabulary must be set.' ] } }
I then found the following thread, which mentions that adding properties through the REST API is not supported.

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 ๐
I hope this helps anyone else running into the same issue.




Comments
โฆ