This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true
to the request query parameters.
Get version details for an AIP Agent.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:aip-agents-read
.
string
An RID identifying an AIP Agent created in AIP Agent Studio.
string
The semantic version of the Agent, formatted as "majorVersion.minorVersion".
object
string
The semantic version of the Agent, formatted as "majorVersion.minorVersion".
object
Semantic version details of the Agent.
1
2
3
curl \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/aipAgents/agents/ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1/agentVersions/1.0?preview=true"
1
2
3
4
5
6
7
{
"string": "1.0",
"version": {
"major": 1,
"minor": 2
}
}
Error Name | ||
---|---|---|
Invalid | Error Code | INVALID_ARGUMENT |
Status Code | 400 | |
Description | The provided version string is not a valid format for an Agent version. | |
Parameters | agentRid, version | |
No | Error Code | INVALID_ARGUMENT |
Status Code | 400 | |
Description | Failed to retrieve the latest published version of the Agent because the Agent has no published versions. Try publishing the Agent in AIP Agent Studio to use the latest published version, or specify the version of the Agent to use. | |
Parameters | agentRid | |
Agent | Error Code | NOT_FOUND |
Status Code | 404 | |
Description | The given AgentVersion could not be found. | |
Parameters | agentRid, agentVersionString | |
Agent | Error Code | NOT_FOUND |
Status Code | 404 | |
Description | The given Agent could not be found. | |
Parameters | agentRid |
See Errors for a general overview of errors in the platform.