Agent definitions API#
Served by: GeoNeMo agent service API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
List agent definitions |
|
|
Get definition editor options |
|
|
Get agent definition |
|
|
Save agent definition |
|
|
Copy agent definition |
|
|
Download agent definition |
|
|
Get agent editor options |
|
|
Get launch requirements |
|
|
Set agent lifecycle state |
GET /v1/agent-definitions#
List agent definitions
Lists agent definitions. Archived ones are left out unless include_archived is true.
Operation:
list_agent_definitions_v1_agent_definitions_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-definitions" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
boolean |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-definitions/editor-options#
Get definition editor options
Lists the model IDs, skills and tools that can be chosen when editing any agent definition.
Operation:
definition_options_v1_agent_definitions_editor_options_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-definitions/editor-options" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-definitions/{agent_id}#
Get agent definition
Returns an agent’s definition for its current release, or for release_id when given. Returns 404 for an unknown agent.
Operation:
get_agent_definition_v1_agent_definitions__agent_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-definitions/<agent_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PUT /v1/agent-definitions/{agent_id}#
Save agent definition
Saves an edited definition by registering it as a new local release of the agent, and returns the resulting definition. Returns 404 for an unknown agent.
Operation:
save_agent_definition_v1_agent_definitions__agent_id__putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/agent-definitions/<agent_id>" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-definitions/{agent_id}/copy#
Copy agent definition
Creates a new agent from an existing one, with the given name and specialization, and returns the copy (201).
Operation:
copy_agent_definition_v1_agent_definitions__agent_id__copy_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-definitions/<agent_id>/copy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
POST /v1/agent-definitions/{agent_id}/download#
Download agent definition
Returns the edited definition as a YAML file with the profile metadata as leading comments. Nothing is saved.
Operation:
download_agent_definition_v1_agent_definitions__agent_id__download_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-definitions/<agent_id>/download" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-definitions/{agent_id}/editor-options#
Get agent editor options
Lists the same editor options for one agent, optionally for a specific release. Returns 404 for an unknown agent.
Operation:
agent_definition_options_v1_agent_definitions__agent_id__editor_options_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-definitions/<agent_id>/editor-options" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-definitions/{agent_id}/launch-requirements#
Get launch requirements
Lists the tools of an agent, or of one release, that require the launch to select imagery collections.
Operation:
launch_requirements_v1_agent_definitions__agent_id__launch_requirements_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-definitions/<agent_id>/launch-requirements" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PATCH /v1/agent-definitions/{agent_id}/profile#
Set agent lifecycle state
Sets an agent’s lifecycle state. New deployments and instances require an active agent. Returns 404 for an unknown agent.
Operation:
update_definition_profile_v1_agent_definitions__agent_id__profile_patchAccess: bearer token or console session cookie
curl -X PATCH "https://geonemo.example.com/v1/agent-definitions/<agent_id>/profile" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |