Update tainacan-api.md

This commit is contained in:
Weryques 2018-02-14 14:41:48 -02:00 committed by GitHub
parent dd0d5c0377
commit b47d815a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -178,6 +178,15 @@ In body of requisition pass a JSON with values of metadata, like:
}
```
If you want to update a metadata with multiple values, you will need to pass a body like (attribute multiple with value 'yes'):
```javascript
{
"values": "[any, type]",
"multiple": "yes"
}
```
2. Route `wp-json/tainacan/v2/item/(?P<item_id>[\d]+)/metadata`
2.1. Enpoints supported: