Skip to main content
POST
/
v1
/
projects
/
{project_id}
/
metadata
/
{metadata_id}
Update Metadata
curl --request POST \
  --url https://api.landing.ai/v1/projects/{project_id}/metadata/{metadata_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "allowMultiple": true,
  "predefinedChoicesAppend": [
    "<string>"
  ],
  "valueFlexible": true,
  "name": "<string>"
}
'
import requests

url = "https://api.landing.ai/v1/projects/{project_id}/metadata/{metadata_id}"

payload = {
"allowMultiple": True,
"predefinedChoicesAppend": ["<string>"],
"valueFlexible": True,
"name": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
allowMultiple: true,
predefinedChoicesAppend: ['<string>'],
valueFlexible: true,
name: '<string>'
})
};

fetch('https://api.landing.ai/v1/projects/{project_id}/metadata/{metadata_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "data": {
    "name": "<string>",
    "allowMultiple": true,
    "predefinedChoices": [
      "<string>"
    ],
    "id": 123,
    "valueFlexible": true
  }
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Headers

apikey
string | null

Path Parameters

metadata_id
integer
required
project_id
integer
required

Query Parameters

timeout
integer | null
default:60

Body

application/json
allowMultiple
boolean | null
required
predefinedChoicesAppend
string[] | null
required
valueFlexible
boolean | null
required
name
string | null

Response

Successful Response

data
MetadataItem · object | null
required