Install a complete plugin bundle
curl --request PUT \
--url https://api.matrices.com/v1/plugins/{pluginName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"content": "<string>",
"path": "<string>"
}
],
"expectedVersion": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [{content: '<string>', path: '<string>'}], expectedVersion: '<string>'})
};
fetch('https://api.matrices.com/v1/plugins/{pluginName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.matrices.com/v1/plugins/{pluginName}"
payload = {
"files": [
{
"content": "<string>",
"path": "<string>"
}
],
"expectedVersion": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.matrices.com/v1/plugins/{pluginName}"
payload := strings.NewReader("{\n \"files\": [\n {\n \"content\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"expectedVersion\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"description": "<string>",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 123
}
],
"issues": [
{
"message": "<string>",
"path": "<string>"
}
],
"name": "<string>",
"requires": [
{
"namespace": "<string>",
"url": "<string>"
}
],
"scope": "workspace",
"skills": [
{
"description": "<string>",
"files": [
"<string>"
],
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"version": "<string>",
"writer": {
"id": "<string>",
"type": "user",
"identity": "<string>",
"origin": {
"provider": "slack",
"senderId": "<string>",
"tenantId": "<string>",
"channelId": "<string>",
"messageId": "<string>",
"threadId": "<string>"
},
"sourceThreadId": "<string>"
},
"identity": "<string>"
}{
"operation": {
"action": "<string>",
"agentId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"state": "pending",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedBy": {
"id": "<string>",
"type": "user",
"identity": "<string>",
"origin": {
"provider": "slack",
"senderId": "<string>",
"tenantId": "<string>",
"channelId": "<string>",
"messageId": "<string>",
"threadId": "<string>"
},
"sourceThreadId": "<string>"
},
"result": {
"status": 349,
"body": "<unknown>"
}
}
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"currentVersion": "<string>",
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}Plugins
Install a complete plugin bundle
Replaces one exact scoped bundle. An empty expectedVersion creates only if absent. A 4 MiB text bundle may need up to 25 MiB on the wire due to JSON escaping.
PUT
/
v1
/
plugins
/
{pluginName}
Install a complete plugin bundle
curl --request PUT \
--url https://api.matrices.com/v1/plugins/{pluginName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"content": "<string>",
"path": "<string>"
}
],
"expectedVersion": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [{content: '<string>', path: '<string>'}], expectedVersion: '<string>'})
};
fetch('https://api.matrices.com/v1/plugins/{pluginName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.matrices.com/v1/plugins/{pluginName}"
payload = {
"files": [
{
"content": "<string>",
"path": "<string>"
}
],
"expectedVersion": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.matrices.com/v1/plugins/{pluginName}"
payload := strings.NewReader("{\n \"files\": [\n {\n \"content\": \"<string>\",\n \"path\": \"<string>\"\n }\n ],\n \"expectedVersion\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"description": "<string>",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 123
}
],
"issues": [
{
"message": "<string>",
"path": "<string>"
}
],
"name": "<string>",
"requires": [
{
"namespace": "<string>",
"url": "<string>"
}
],
"scope": "workspace",
"skills": [
{
"description": "<string>",
"files": [
"<string>"
],
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"version": "<string>",
"writer": {
"id": "<string>",
"type": "user",
"identity": "<string>",
"origin": {
"provider": "slack",
"senderId": "<string>",
"tenantId": "<string>",
"channelId": "<string>",
"messageId": "<string>",
"threadId": "<string>"
},
"sourceThreadId": "<string>"
},
"identity": "<string>"
}{
"operation": {
"action": "<string>",
"agentId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"state": "pending",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedBy": {
"id": "<string>",
"type": "user",
"identity": "<string>",
"origin": {
"provider": "slack",
"senderId": "<string>",
"tenantId": "<string>",
"channelId": "<string>",
"messageId": "<string>",
"threadId": "<string>"
},
"sourceThreadId": "<string>"
},
"result": {
"status": 349,
"body": "<unknown>"
}
}
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"currentVersion": "<string>",
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"attemptsRemaining": 123,
"code": "<string>",
"retryAfterSeconds": 123
}Authorizations
APIKeyBearerAgentLeaseBearer
Headers
Query Parameters
Body
application/json
Response
Installed plugin and nonfatal parse issues.