Edits the metadata for the source.
Authorizations: Sources - EDIT
Requests
PUT /apis/sources/:sourceId/metadata
[{
"name": "calypso:creator",
"field": [
{
"fieldType": "STRING",
"valueString": "haiadmin7"
}]
},
{
"name": "calypso:category:Locations",
"field": [
{
"fieldType": "STRING",
"valueString": "Montreal"
}]
}]
Parameters
|
Property |
JSON Type |
Property Type |
Description |
|---|---|---|---|
|
name |
String |
Optional |
Name of metadata |
|
field |
Array of objects (fields) for these possible structures:
|
Optional |
Content of metadata. See (4.1) Fields. |
Response
Success
{
"data": [
{
"name": "calypso:creator",
"field": [
{
"fieldType": "STRING",
"valueString": "haiadmin7"
}]
},
{
"name": "calypso:category:Locations",
"field": [
{
"fieldType": "STRING",
"valueString": "Montreal"
}]
}]
}
Error
|
Code |
Payload |
Description |
|---|---|---|
|
|
|
Supplied data was insufficient or incorrect. |
|
|
|
Source with UUID |