Regenerate key 1 of a test agent
Regenerates the first key of a test agent
PUT /manage/agents/{agentId}/key1
URI Parameters
Name | In | Type | Description |
---|---|---|---|
agentId |
Path |
|
Id of the test agent |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The modified test agent object |
Produces
-
application/json
Security
Every request requires a JWT access token for authentication in the Authorisation HTTP header. Please see the API authentication page for details about how to get a JWT token.
Authorization: Bearer {JWT_TOKEN}
Roles
-
Wenenu Owner
-
Wenenu Test Agent Administrator
Sample request
DELETE https://wenenu.com/manage/agents/20b050c1b115543a6d3634034f08f46c43b604b0a89bbb705363344289c40a80/key1 HTTP/1.1
Authorization: Bearer {jwt_token}
Sample Response
Status code: 200 OK
{
"id": "20b050c1b115543a6d3634034f08f46c43b604b0a89bbb705363344289c40a80",
"tenantId": "108365366dc9-88be-4c42-8329-55808630",
"name": "Wenenu agent 1",
"type": "user",
"key1": "20b050c1b115543a6d3634034f08f46c43b604b0a89bbb705363344289c40a80.Je/ZOdOqH2EQ5wEA8Z813ngQmsMpYKeKt5GIfRJjB0YAg0JSAD1WyVDitFjUqs+QNOOkW8u5r30r90qeFg/7nw==",
"key2": "20b050c1b115543a6d3634034f08f46c43b604b0a89bbb705363344289c40a80.+r/3g0VXl0ERYQn7nSyLTDexV9ZWbzzgEkgPOxaDpW4pb8FEBciyoYwQFM8n3AdpcT/NiD/OJ4u2tS7LNgLqGg=="
}
Definitions
Agent
Name | Type | Description |
---|---|---|
id |
|
Id of th test agent |
tenantId |
|
Version 4 UUID of the Wenenu tenant of the test agent |
name |
|
Arbitrary name of the test agent, length 1-256 |
type |
|
Type of the test agent, always 'user' for user-created agents |
key1 |
|
First API key of the test agent |
key2 |
|
Second API key of the test agent |