curl --request PUT \
--url https://api.withampersand.com/v1/projects/{projectIdOrName}/providers/{provider}/object-metadata \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"fields": {
"Account": [
{
"fieldName": "Industry",
"displayName": "Industry Sector",
"description": "The industry this account operates in",
"valueType": "string",
"required": false,
"stringOptions": {
"length": 255,
"defaultValue": "Technology"
}
},
{
"fieldName": "Company_Size",
"displayName": "Company Size",
"valueType": "string",
"stringOptions": {
"values": [
"Small",
"Medium",
"Large",
"Enterprise"
],
"valuesRestricted": true
}
}
],
"Contact": [
{
"fieldName": "Seniority_Level",
"displayName": "Seniority Level",
"valueType": "string",
"stringOptions": {
"values": [
"Junior",
"Mid",
"Senior",
"Executive"
],
"valuesRestricted": true
}
}
]
}
}'