Skip to main content

Agent templates

OpenAPI Specification

Public API (0.0.0)

2GIS GeoFlow Public API

agent-templates

Getting a list of agent templates

Returns a page with a list of agent templates.

Authorizations:
BearerAuth
query Parameters
limit
required
integer

Maximum number of templates in the response, from 1 to 100.

cursor
string

Cursor for getting the next or previous page of results.

Responses

Response Schema: application/json
required
object (CursorResponse)

Cursors for the next and previous result pages.

required
Array of objects (AgentTemplateResponse)

Current page items.

Response samples

Content type
application/json
{
  • "cursor": {
    • "next": "string",
    • "prev": "string"
    },
  • "items": [
    • {
      }
    ]
}

Getting an agent template

Returns an agent template by its identifier.

Authorizations:
BearerAuth
path Parameters
id
required
string <uuid>

Agent template identifier.

Responses

Response Schema: application/json
required
Array of objects (TemplateAttribute)

Agent template attributes.

created_at
required
string <date-time>

Date and time of template creation in RFC 3339 format.

required
object (AgentTemplateIconResponse)

Agent icon on the map.

id
required
string <uuid>

Agent template identifier.

name
required
string

Agent template name.

updated_at
required
string <date-time>

Date and time of the template last update in RFC 3339 format.

Response samples

Content type
application/json
{
  • "attributes": [
    • {
      }
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "icon": {
    • "color": "string",
    • "name": "walk"
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}