Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
The exact request to send here depends on the specific meta field type that is updated, so each field type is documented as a separate request. The meta field type does not need to be passed in a meta field type as the type is inferred based on the target field.
All the requests go to the same endpoint, and requests can be bulked by passing multiple updates in the updates array.
If the response is successful, a status code of 204 No Content status code is returned.
Request properties available on all metafield types:
Name
Type
Description
Name
Type
Description
targetItemIds
list of ints
The itemIds of the assets to update with this update request part.
metaFieldLabelId
int
The metafieldLabelId of the metafield in a specific language to update.
Either this or metaFieldItemGuid should be specified
metaFieldItemGuid
guid
The itemGuid of the meta field to update. This always updates the value in the current access key language if used.
Either this or metaFieldLabelId should be specified.
If you want to select existing tree nodes, pass their ids.
If you want to create new ones on-the-fly, you can pass an object. This object can be recursive to specify nodes further down in the tree.
treeValues.label
string
The name/title/label of the tree value.
treeValues.optionValue
string
The option value of the tree value
treeValues.select
bool
If this value should be selected or if it is just for reference. Useful if you only want to select the leaf node in a tree, and not any of the nodes on the way.
treeValues.children
array of objects
This can be specified recursively. See the request examples.
updateMethod
enum/string, of
Set
Merge
Unset
How the values should be updated.
Set: The values are assigned, and all other values are removed.
Merge: The values are added to the existing values.
Unset: The values are removed from the existing values.
This example will set the title of 2 assets to different values. The description to the same, but in separate parts, and same keywords for each asset in one part: