Set an agent's dictionaries
curl --request PUT \
--url https://api.pineyard.ai/agents/{id}/dictionaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dictionaryIds": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dictionaryIds: ['<string>']})
};
fetch('https://api.pineyard.ai/agents/{id}/dictionaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/{id}/dictionaries"
payload = { "dictionaryIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Dictionaries
Set an agent's dictionaries
Replaces the list of dictionaries linked to the agent.
PUT
/
agents
/
{id}
/
dictionaries
Set an agent's dictionaries
curl --request PUT \
--url https://api.pineyard.ai/agents/{id}/dictionaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dictionaryIds": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dictionaryIds: ['<string>']})
};
fetch('https://api.pineyard.ai/agents/{id}/dictionaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/{id}/dictionaries"
payload = { "dictionaryIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
